Class EntireDurationDomainSubset
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.types.domain.EntireDurationDomainSubset
-
- All Implemented Interfaces:
ValueDomain
,ValueDomainSubset<EntireDurationDomainSubset,DurationDomain>
,DurationDomain
,DurationDomainSubset<EntireDurationDomainSubset>
,Serializable
public class EntireDurationDomainSubset extends Object implements DurationDomainSubset<EntireDurationDomainSubset>, Serializable
Must be in period-length order- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EntireDurationDomainSubset
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarValue<?,?,EntireDurationDomainSubset,DurationDomain>
cast(ScalarValue<?,?,?,?> value)
Casts the given ScalarValue to this ValueDomainSubsetboolean
equals(Object obj)
Object
getCriterion()
DurationDomain
getParentDomain()
String
getVarName()
int
hashCode()
boolean
isAssignableFrom(ValueDomain other)
Check if a value of a given ValueDomain can be converted to a value of this ValueDomainboolean
isComparableWith(ValueDomain other)
Check if a value of a given ValueDomain can be compared to a value of this ValueDomainString
toString()
-
-
-
Field Detail
-
INSTANCE
public static final EntireDurationDomainSubset INSTANCE
-
-
Method Detail
-
isAssignableFrom
public boolean isAssignableFrom(ValueDomain other)
Description copied from interface:ValueDomain
Check if a value of a given ValueDomain can be converted to a value of this ValueDomain- Specified by:
isAssignableFrom
in interfaceValueDomain
- Parameters:
other
- the otherValueDomain
- Returns:
- true if the conversion is possible
-
isComparableWith
public boolean isComparableWith(ValueDomain other)
Description copied from interface:ValueDomain
Check if a value of a given ValueDomain can be compared to a value of this ValueDomain- Specified by:
isComparableWith
in interfaceValueDomain
- Parameters:
other
- the otherValueDomain
- Returns:
- true if the comparison is possible
-
getVarName
public String getVarName()
- Specified by:
getVarName
in interfaceValueDomain
- Returns:
- the default variable name for
DataStructureComponent
s of this ValueDomain
-
getCriterion
public Object getCriterion()
- Specified by:
getCriterion
in interfaceValueDomainSubset<EntireDurationDomainSubset,DurationDomain>
- Returns:
- A criterion, if defined, to limit the admissible values from the parent
ValueDomain
-
cast
public ScalarValue<?,?,EntireDurationDomainSubset,DurationDomain> cast(ScalarValue<?,?,?,?> value)
Description copied from interface:ValueDomainSubset
Casts the given ScalarValue to this ValueDomainSubset- Specified by:
cast
in interfaceValueDomainSubset<EntireDurationDomainSubset,DurationDomain>
- Parameters:
value
- theScalarValue
to cast- Returns:
- the casted
ScalarValue
-
getParentDomain
public DurationDomain getParentDomain()
- Specified by:
getParentDomain
in interfaceValueDomainSubset<EntireDurationDomainSubset,DurationDomain>
- Returns:
- the parent
ValueDomain
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceValueDomainSubset<EntireDurationDomainSubset,DurationDomain>
- Overrides:
hashCode
in classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceValueDomainSubset<EntireDurationDomainSubset,DurationDomain>
- Overrides:
equals
in classObject
-
-