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
Fields -
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
-
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
-