java.lang.Object
de.agilecoders.wicket.jquery.Key<T>
- All Implemented Interfaces:
IKey<T>
Default
IKey implementation- Author:
- Michael Haitz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDefaultValue(T value) checks if given value is equal to default valuekey()
-
Constructor Details
-
Key
Construct.- Parameters:
name- string representation of this keydefaultValue- The default value
-
Key
Construct. Uses `null` as default value- Parameters:
name- string representation of this key
-
-
Method Details
-
key
-
isDefaultValue
Description copied from interface:IKeychecks if given value is equal to default value- Specified by:
isDefaultValuein interfaceIKey<T>- Parameters:
value- The value to check.- Returns:
- true, if given value is equal to default value
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceIKey<T>- Returns:
- the default value
-