Package org.jgrapht.io
Class DefaultAttribute<T>
- java.lang.Object
-
- org.jgrapht.io.DefaultAttribute<T>
-
- Type Parameters:
T
- the underlying type
- All Implemented Interfaces:
Serializable
,Attribute
@Deprecated public class DefaultAttribute<T> extends Object implements Attribute, Serializable
Deprecated.In favor of nio package.Default implementation of an attribute.- Author:
- Dimitrios Michail
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultAttribute(T value, AttributeType type)
Deprecated.Create a new attribute
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Attribute
createAttribute(Boolean value)
Deprecated.Create a boolean attributestatic Attribute
createAttribute(Double value)
Deprecated.Create a double attributestatic Attribute
createAttribute(Float value)
Deprecated.Create a float attributestatic Attribute
createAttribute(Integer value)
Deprecated.Create an integer attributestatic Attribute
createAttribute(Long value)
Deprecated.Create a long attributestatic Attribute
createAttribute(String value)
Deprecated.Create a string attributeboolean
equals(Object obj)
Deprecated.AttributeType
getType()
Deprecated.Get the type of the attributeString
getValue()
Deprecated.Get the string value of the attributeint
hashCode()
Deprecated.String
toString()
Deprecated.
-
-
-
Field Detail
-
NULL
public static Attribute NULL
Deprecated.The null attribute.
-
-
Constructor Detail
-
DefaultAttribute
public DefaultAttribute(T value, AttributeType type)
Deprecated.Create a new attribute- Parameters:
value
- the valuetype
- the type
-
-
Method Detail
-
getValue
public String getValue()
Deprecated.Get the string value of the attribute
-
getType
public AttributeType getType()
Deprecated.Get the type of the attribute
-
createAttribute
public static Attribute createAttribute(Boolean value)
Deprecated.Create a boolean attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(Integer value)
Deprecated.Create an integer attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(Long value)
Deprecated.Create a long attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(Float value)
Deprecated.Create a float attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(Double value)
Deprecated.Create a double attribute- Parameters:
value
- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(String value)
Deprecated.Create a string attribute- Parameters:
value
- the value- Returns:
- the attribute
-
-