Class DefaultAttribute<T>
java.lang.Object
org.jgrapht.nio.DefaultAttribute<T>
- Type Parameters:
T- the underlying type
- All Implemented Interfaces:
Serializable, Attribute
Default implementation of an attribute.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeThe null attribute.private static final longprivate AttributeTypeprivate T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributecreateAttribute(Boolean value) Create a boolean attributestatic AttributecreateAttribute(Double value) Create a double attributestatic AttributecreateAttribute(Float value) Create a float attributestatic AttributecreateAttribute(Integer value) Create an integer attributestatic AttributecreateAttribute(Long value) Create a long attributestatic AttributecreateAttribute(String value) Create a string attributebooleangetType()Get the type of the attributegetValue()Get the string value of the attributeinthashCode()toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NULL
The null attribute. -
value
-
type
-
-
Constructor Details
-
DefaultAttribute
Create a new attribute- Parameters:
value- the valuetype- the type
-
-
Method Details