Package pl.decerto.hyperon.runtime.model
Class ObjectValueHolder
java.lang.Object
org.smartparam.engine.core.type.AbstractValueHolder
pl.decerto.hyperon.runtime.model.ObjectValueHolder
- All Implemented Interfaces:
Comparable<ValueHolder>,ValueHolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns boolean value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.doubleReturns double value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.Returns BigDecimal value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.Returns Boolean value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.getDate()Returns Date value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.Returns Double value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.Returns Integer value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.getLong()Returns Long value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.Returns String representation of held object (by using toString).intintValue()Returns int value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.booleanDoes held value implementComparableinterface.longReturns long value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.Methods inherited from class org.smartparam.engine.core.type.AbstractValueHolder
compareTo, equals, getDatetime, getLocalDate, getLocalDateTime, hashCode, isBlank, isNotNull, isNull, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.smartparam.engine.core.type.ValueHolder
getValue
-
Constructor Details
-
ObjectValueHolder
-
-
Method Details
-
isComparable
public boolean isComparable()Description copied from interface:ValueHolderDoes held value implementComparableinterface.- Specified by:
isComparablein interfaceValueHolder- Overrides:
isComparablein classAbstractValueHolder- Returns:
- boolean value
-
intValue
public int intValue()Description copied from class:AbstractValueHolderReturns int value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
intValuein interfaceValueHolder- Overrides:
intValuein classAbstractValueHolder- Returns:
- int value
-
longValue
public long longValue()Description copied from class:AbstractValueHolderReturns long value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
longValuein interfaceValueHolder- Overrides:
longValuein classAbstractValueHolder- Returns:
- long value
-
doubleValue
public double doubleValue()Description copied from class:AbstractValueHolderReturns double value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
doubleValuein interfaceValueHolder- Overrides:
doubleValuein classAbstractValueHolder- Returns:
- double value
-
getInteger
Description copied from class:AbstractValueHolderReturns Integer value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
getIntegerin interfaceValueHolder- Overrides:
getIntegerin classAbstractValueHolder- Returns:
- Integer value
-
getLong
Description copied from class:AbstractValueHolderReturns Long value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
getLongin interfaceValueHolder- Overrides:
getLongin classAbstractValueHolder- Returns:
- Long value
-
getDouble
Description copied from class:AbstractValueHolderReturns Double value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
getDoublein interfaceValueHolder- Overrides:
getDoublein classAbstractValueHolder- Returns:
- Double value
-
getBoolean
Description copied from class:AbstractValueHolderReturns Boolean value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
getBooleanin interfaceValueHolder- Overrides:
getBooleanin classAbstractValueHolder- Returns:
- Boolean value
-
booleanValue
public boolean booleanValue()Description copied from class:AbstractValueHolderReturns boolean value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
booleanValuein interfaceValueHolder- Overrides:
booleanValuein classAbstractValueHolder- Returns:
- boolean value
-
getBigDecimal
Description copied from class:AbstractValueHolderReturns BigDecimal value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
getBigDecimalin interfaceValueHolder- Overrides:
getBigDecimalin classAbstractValueHolder- Returns:
- BigDecimal value
-
getDate
Description copied from class:AbstractValueHolderReturns Date value if holder is capable of doing it, otherwise UnsupportedOperationException is thrown.- Specified by:
getDatein interfaceValueHolder- Overrides:
getDatein classAbstractValueHolder- Returns:
- Date value
-
getString
Description copied from class:AbstractValueHolderReturns String representation of held object (by using toString).- Specified by:
getStringin interfaceValueHolder- Overrides:
getStringin classAbstractValueHolder- Returns:
- toString value or null if none value held
-