Package net.time4j.calendar
Interface StdCalendarElement<V,T>
- Type Parameters:
V
- generic type of element valuesT
- generic type of target entity an operator is applied to
- All Superinterfaces:
ChronoElement<V>
,Comparator<ChronoDisplay>
- All Known Subinterfaces:
OrdinalWeekdayElement<T>
Extends a chronological element by some standard ways of manipulation.
- Since:
- 3.5/4.3
- Author:
- Meno Hochschild
-
Method Summary
Modifier and TypeMethodDescriptionRounds up an entity by setting all child elements to maximum.atFloor()
Rounds down an entity by setting all child elements to minimum.Adjusts any local entity such that this element gets the previous value.Adjusts any local entity such that this element gets the next value.Sets any local entity to the maximum of this element.Sets any local entity to the minimum of this element.Methods inherited from interface net.time4j.engine.ChronoElement
compare, getDefaultMaximum, getDefaultMinimum, getDisplayName, getSymbol, getType, isDateElement, isLenient, isTimeElement, name
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
minimized
ChronoOperator<T> minimized()Sets any local entity to the minimum of this element.
- Returns:
- ChronoOperator
- Since:
- 3.5/4.3
-
maximized
ChronoOperator<T> maximized()Sets any local entity to the maximum of this element.
- Returns:
- ChronoOperator
- Since:
- 3.5/4.3
-
decremented
ChronoOperator<T> decremented()Adjusts any local entity such that this element gets the previous value.
The operator throws a
ChronoException
if there is no base unit available for this element.- Returns:
- ChronoOperator
- Since:
- 3.5/4.3
-
incremented
ChronoOperator<T> incremented()Adjusts any local entity such that this element gets the next value.
The operator throws a
ChronoException
if there is no base unit available for this element.- Returns:
- ChronoOperator
- Since:
- 3.5/4.3
-
atFloor
ChronoOperator<T> atFloor()Rounds down an entity by setting all child elements to minimum.
- Returns:
- ChronoOperator
- Since:
- 3.5/4.3
-
atCeiling
ChronoOperator<T> atCeiling()Rounds up an entity by setting all child elements to maximum.
- Returns:
- ChronoOperator
- Since:
- 3.5/4.3
-