Package io.higson.runtime.core
Class EmptyParamValue
java.lang.Object
io.higson.runtime.core.EmptyParamValue
- All Implemented Interfaces:
ParamValue,Iterable<MultiValue>
This class represents empty parameter's value. It is mostly used, when engine
HigsonEngine is defined in a way that,
it should never return null for missing parameter's value. The usage of this class depends on setup done through
HigsonEngineFactory.setValueNeverNull(boolean) set to true.
Most values will be either null, 0, true.
- Author:
- przemek hertel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tget()Always returnsnull.<T> Tget(int colNo) Always returnsnull.<T> Tget(int rowNo, int colNo) Always returnsnull.<T> TAlways returnsnull.<T> TAlways returnsnull.<T> TAlways returnsnull.<T> TAlways returnsnull.<T> TAlways returnsnull.<T> TAlways returnsnull.<T> TAlways returnsnull.Always returnsnull.getBigDecimal(String name) Always returnsnull.Always returnsnull.getBoolean(String name) Always returnsnull.getDate()Always returnsnull.Always returnsnull.Always returnsnull.getDatetime(String name) Always returnsnull.<T extends Enum<T>>
TAlways returnsnull.<T extends Enum<T>>
TAlways returnsnull.getEnumSet(Class<T> enumClass) getEnumSet(String name, Class<T> enumClass) Always returnsnull.getHolder(int colNo) Always returnsnull.getHolder(int rowNo, int colNo) Always returnsnull.Always returnsnull.Always returnsnull.Always returnsnull.getInteger(String name) Always returnsnull.Always returnsnull.getLocalDate(String name) Always returnsnull.Always returnsnull.getLocalDatetime(String name) Always returnsnull.getLong()Always returnsnull.Always returnsnull.Always returnsnull.Always returnsnull.Always returnsnull.booleanisBlank()Always returnstrue.booleanisEmpty()Always returnstrue.iterator()Always returns iterator of empty list.row()Always returnsnull.row(int rowNo) Always returnsnull.rows()Returns empty list of rows.intsize()Always return 0.stream()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EmptyParamValue
public EmptyParamValue()
-
-
Method Details
-
row
Always returnsnull.- Specified by:
rowin interfaceParamValue- Parameters:
rowNo- row index- Returns:
null
-
row
Always returnsnull.- Specified by:
rowin interfaceParamValue- Returns:
null
-
rows
Returns empty list of rows.- Specified by:
rowsin interfaceParamValue- Returns:
- empty list
-
getHolder
Always returnsnull.- Specified by:
getHolderin interfaceParamValue- Parameters:
rowNo- row indexcolNo- column index- Returns:
null
-
get
public <T> T get(int rowNo, int colNo) Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
rowNo- row indexcolNo- column index- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
rowNo- row indexcolNo- column indexclazz- class of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getHolder
Always returnsnull.- Specified by:
getHolderin interfaceParamValue- Parameters:
rowNo- row indexname- level name as column indicator- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
rowNo- row indexname- level name as column indicator- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
rowNo- row indexname- level name as column indicatorclazz- class of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getHolder
Always returnsnull.- Specified by:
getHolderin interfaceParamValue- Parameters:
colNo- column index- Returns:
null
-
get
public <T> T get(int colNo) Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
colNo- column index- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
colNo- column indexclazz- class of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getHolder
Always returnsnull.- Specified by:
getHolderin interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
name- level name as column indicator- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
name- level name as column indicatorclazz- class of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getString
Always returnsnull.- Specified by:
getStringin interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getBigDecimal
Always returnsnull.- Specified by:
getBigDecimalin interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getDate
Always returnsnull.- Specified by:
getDatein interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getDatetime
Always returnsnull.- Specified by:
getDatetimein interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getLocalDate
Always returnsnull.- Specified by:
getLocalDatein interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getLocalDatetime
Always returnsnull.- Specified by:
getLocalDatetimein interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getInteger
Always returnsnull.- Specified by:
getIntegerin interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getLong
Always returnsnull.- Specified by:
getLongin interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getBoolean
Always returnsnull.- Specified by:
getBooleanin interfaceParamValue- Parameters:
name- level name as column indicator- Returns:
null
-
getEnum
Always returnsnull.- Specified by:
getEnumin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
name- level name as column indicatorenumClass- enum of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getEnumSet
- Specified by:
getEnumSetin interfaceParamValue- Type Parameters:
T- type of return value- Parameters:
name- level name as column indicatorenumClass- enum of return object- Returns:
- empty set
-
getHolder
Always returnsnull.- Specified by:
getHolderin interfaceParamValue- Returns:
null
-
get
public <T> T get()Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Returns:
null
-
get
Always returnsnull.- Specified by:
getin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
clazz- class of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getString
Always returnsnull.- Specified by:
getStringin interfaceParamValue- Returns:
null
-
getBigDecimal
Always returnsnull.- Specified by:
getBigDecimalin interfaceParamValue- Returns:
null
-
getDate
Always returnsnull.- Specified by:
getDatein interfaceParamValue- Returns:
null
-
getDatetime
Always returnsnull.- Specified by:
getDatetimein interfaceParamValue- Returns:
null
-
getLocalDate
Always returnsnull.- Specified by:
getLocalDatein interfaceParamValue- Returns:
null
-
getLocalDatetime
Always returnsnull.- Specified by:
getLocalDatetimein interfaceParamValue- Returns:
null
-
getInteger
Always returnsnull.- Specified by:
getIntegerin interfaceParamValue- Returns:
null
-
getLong
Always returnsnull.- Specified by:
getLongin interfaceParamValue- Returns:
null
-
getEnum
Always returnsnull.- Specified by:
getEnumin interfaceParamValue- Type Parameters:
T- type of return value, but it doesn't matter since it returnsnull- Parameters:
enumClass- enum of return object, but it doesn't matter since it returnsnull- Returns:
null
-
getEnumSet
- Specified by:
getEnumSetin interfaceParamValue- Type Parameters:
T- type- Parameters:
enumClass- enum of return object- Returns:
- empty set
-
size
public int size()Always return 0.- Specified by:
sizein interfaceParamValue- Returns:
- size of 0
-
getMetadata
Always returnsnull.- Specified by:
getMetadatain interfaceParamValue- Returns:
null
-
getBoolean
Always returnsnull.- Specified by:
getBooleanin interfaceParamValue- Returns:
null
-
isEmpty
public boolean isEmpty()Always returnstrue.- Specified by:
isEmptyin interfaceParamValue- Returns:
true
-
isBlank
public boolean isBlank()Always returnstrue.- Specified by:
isBlankin interfaceParamValue- Returns:
true
-
stream
- Specified by:
streamin interfaceParamValue- Returns:
- always returns empty Stream
-
iterator
Always returns iterator of empty list.- Specified by:
iteratorin interfaceIterable<MultiValue>- Returns:
- instance of
Iterator<MultiValue> - See Also:
-