Class Linkable
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Describes a property that be accessed through a URL.
- Since:
- 1.0
- Version:
- $Id$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
KEY_VALUE
The key identifying the value property of the linkable item.- See Also:
-
KEY_LOCATION
The key identifying the value property of the linkable item.- See Also:
-
-
Constructor Details
-
Linkable
public Linkable()Default constructor. -
Linkable
- Parameters:
value- the value this object wraps.location- the location where the resource represented by this object can be accessed.
-
-
Method Details
-
getLocation
- Returns:
- the location where this object can be accessed. i.e. the url to a user profile.
-
setLocation
- Parameters:
location- seegetLocation().
-
getValue
- Returns:
- the value of this property. i.e. a username.
-
setValue
- Parameters:
value- seegetValue().
-