Class NullDomain
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.types.domain.NullDomain
-
- All Implemented Interfaces:
ValueDomain
,ValueDomainSubset<NullDomain,ValueDomain>
,Serializable
public class NullDomain extends Object implements ValueDomainSubset<NullDomain,ValueDomain>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullDomain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarValue<?,?,NullDomain,ValueDomain>
cast(ScalarValue<?,?,?,?> value)
Casts the given ScalarValue to this ValueDomainSubsetboolean
equals(Object obj)
Object
getCriterion()
ValueDomain
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 ValueDomain
-
-
-
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
-
getCriterion
public Object getCriterion()
- Specified by:
getCriterion
in interfaceValueDomainSubset<NullDomain,ValueDomain>
- Returns:
- A criterion, if defined, to limit the admissible values from the parent
ValueDomain
-
getParentDomain
public ValueDomain getParentDomain()
- Specified by:
getParentDomain
in interfaceValueDomainSubset<NullDomain,ValueDomain>
- Returns:
- the parent
ValueDomain
-
cast
public ScalarValue<?,?,NullDomain,ValueDomain> cast(ScalarValue<?,?,?,?> value)
Description copied from interface:ValueDomainSubset
Casts the given ScalarValue to this ValueDomainSubset- Specified by:
cast
in interfaceValueDomainSubset<NullDomain,ValueDomain>
- Parameters:
value
- theScalarValue
to cast- Returns:
- the casted
ScalarValue
-
getVarName
public String getVarName()
- Specified by:
getVarName
in interfaceValueDomain
- Returns:
- the default variable name for
DataStructureComponent
s of this ValueDomain
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceValueDomainSubset<NullDomain,ValueDomain>
- Overrides:
hashCode
in classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceValueDomainSubset<NullDomain,ValueDomain>
- Overrides:
equals
in classObject
-
-