Package edu.uci.ics.jung.io
Class GraphMLMetadata<T>
java.lang.Object
edu.uci.ics.jung.io.GraphMLMetadata<T>
Maintains information relating to data for the specified type.
This includes a Function from objects to their values,
a default value, and a description.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe default value for objects of this type.The description of this data type.A Function mapping objects to string representations of their values. -
Constructor Summary
ConstructorsConstructorDescriptionGraphMLMetadata
(String description, String default_value, com.google.common.base.Function<T, String> function) Creates a new instance with the specified description, default value, and function. -
Method Summary
-
Field Details
-
description
The description of this data type. -
default_value
The default value for objects of this type. -
transformer
A Function mapping objects to string representations of their values.
-
-
Constructor Details
-
GraphMLMetadata
public GraphMLMetadata(String description, String default_value, com.google.common.base.Function<T, String> function) Creates a new instance with the specified description, default value, and function.- Parameters:
description
- a textual description of the objectdefault_value
- the default value for the object, as a Stringfunction
- maps objects of this type to string representations
-