Class AbstractAttribute<V extends Serializable>
- java.lang.Object
-
- com.levigo.jadice.document.font.attribute.api.AbstractAttribute<V>
-
- Type Parameters:
V- type of value carried by this instance
- All Implemented Interfaces:
Attribute<V>,Serializable
- Direct Known Subclasses:
BooleanAttribute,IntegerAttribute,StringAttribute
public abstract class AbstractAttribute<V extends Serializable> extends Object implements Attribute<V>
Abstract base implementation ofAttribute.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAttribute(V value)Create a new instance holding the given value as its payload.
-
-
-
Constructor Detail
-
AbstractAttribute
protected AbstractAttribute(V value)
Create a new instance holding the given value as its payload.- Parameters:
value- the payload to be carried by this instance. Must not benull.
-
-
Method Detail
-
value
public V value()
- Specified by:
valuein interfaceAttribute<V extends Serializable>- Returns:
- the payload carried by this instance
-
-