java.lang.Object
org.jgrapht.nio.DefaultAttribute<T>
- Type Parameters:
T
- the underlying type
- All Implemented Interfaces:
Serializable
,Attribute
Default implementation of an attribute.
- Author:
- Dimitrios Michail
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
createAttribute
(Boolean value) Create a boolean attributestatic Attribute
createAttribute
(Double value) Create a double attributestatic Attribute
createAttribute
(Float value) Create a float attributestatic Attribute
createAttribute
(Integer value) Create an integer attributestatic Attribute
createAttribute
(Long value) Create a long attributestatic Attribute
createAttribute
(String value) Create a string attributeboolean
getType()
Get the type of the attributegetValue()
Get the string value of the attributeint
hashCode()
toString()
-
Field Details
-
NULL
The null attribute.
-
-
Constructor Details
-
DefaultAttribute
Create a new attribute- Parameters:
value
- the valuetype
- the type
-
-
Method Details
-
getValue
Get the string value of the attribute -
toString
-
getType
Get the type of the attribute -
createAttribute
Create a boolean attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
Create an integer attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
Create a long attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
Create a float attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
Create a double attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
Create a string attribute- Parameters:
value
- the value- Returns:
- the attribute
-
hashCode
public int hashCode() -
equals
-