Package org.jgrapht.io
Class DefaultAttribute<T>
- java.lang.Object
-
- org.jgrapht.io.DefaultAttribute<T>
-
- Type Parameters:
T- the underlying type
- All Implemented Interfaces:
java.io.Serializable,Attribute
@Deprecated public class DefaultAttribute<T> extends java.lang.Object implements Attribute, java.io.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 AttributecreateAttribute(java.lang.Boolean value)Deprecated.Create a boolean attributestatic AttributecreateAttribute(java.lang.Double value)Deprecated.Create a double attributestatic AttributecreateAttribute(java.lang.Float value)Deprecated.Create a float attributestatic AttributecreateAttribute(java.lang.Integer value)Deprecated.Create an integer attributestatic AttributecreateAttribute(java.lang.Long value)Deprecated.Create a long attributestatic AttributecreateAttribute(java.lang.String value)Deprecated.Create a string attributebooleanequals(java.lang.Object obj)Deprecated.AttributeTypegetType()Deprecated.Get the type of the attributejava.lang.StringgetValue()Deprecated.Get the string value of the attributeinthashCode()Deprecated.java.lang.StringtoString()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 java.lang.String getValue()
Deprecated.Get the string value of the attribute
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
getType
public AttributeType getType()
Deprecated.Get the type of the attribute
-
createAttribute
public static Attribute createAttribute(java.lang.Boolean value)
Deprecated.Create a boolean attribute- Parameters:
value- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(java.lang.Integer value)
Deprecated.Create an integer attribute- Parameters:
value- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(java.lang.Long value)
Deprecated.Create a long attribute- Parameters:
value- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(java.lang.Float value)
Deprecated.Create a float attribute- Parameters:
value- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(java.lang.Double value)
Deprecated.Create a double attribute- Parameters:
value- the value- Returns:
- the attribute
-
createAttribute
public static Attribute createAttribute(java.lang.String value)
Deprecated.Create a string attribute- Parameters:
value- the value- Returns:
- the attribute
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
-