de.agilecoders.wicket.jquery
Interface IKey<T>

All Known Implementing Classes:
Key

public interface IKey<T>

Simple interface to enrich the Map key with some functionality like assertion of value type and default value handling.


Method Summary
 T getDefaultValue()
           
 boolean isDefaultValue(T value)
          checks if given value is equal to default value
 String key()
           
 

Method Detail

key

String key()
Returns:
the key to use in Map

isDefaultValue

boolean isDefaultValue(T value)
checks if given value is equal to default value

Parameters:
value - The value to check.
Returns:
true, if given value is equal to default value

getDefaultValue

T getDefaultValue()
Returns:
the default value


Copyright © 2017. All Rights Reserved.