Class YearHolder
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.types.data.date.DateHolder<Year>
-
- it.bancaditalia.oss.vtl.impl.types.data.date.YearHolder
-
- All Implemented Interfaces:
TimeHolder
,Serializable
,Comparable<DateHolder<?>>
,TemporalAccessor
public class YearHolder extends DateHolder<Year> implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description YearHolder(int year)
protected
YearHolder(Year year)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DateHolder<?> other)
boolean
equals(Object obj)
long
getLong(TemporalField field)
int
hashCode()
YearHolder
increment(long amount)
boolean
isSupported(TemporalField field)
String
toString()
-
Methods inherited from class it.bancaditalia.oss.vtl.impl.types.data.date.DateHolder
of
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.time.temporal.TemporalAccessor
get, query, range
-
-
-
-
Constructor Detail
-
YearHolder
public YearHolder(int year)
-
YearHolder
protected YearHolder(Year year)
-
-
Method Detail
-
getLong
public long getLong(TemporalField field)
- Specified by:
getLong
in interfaceTemporalAccessor
-
isSupported
public boolean isSupported(TemporalField field)
- Specified by:
isSupported
in interfaceTemporalAccessor
-
compareTo
public int compareTo(DateHolder<?> other)
- Specified by:
compareTo
in interfaceComparable<DateHolder<?>>
-
toString
public String toString()
- Specified by:
toString
in classDateHolder<Year>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classDateHolder<Year>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classDateHolder<Year>
-
increment
public YearHolder increment(long amount)
- Specified by:
increment
in classDateHolder<Year>
-
-