Class GraphMLMetadata<T>

java.lang.Object
edu.uci.ics.jung.io.GraphMLMetadata<T>

public class GraphMLMetadata<T> extends Object
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 Details

    • description

      public String description
      The description of this data type.
    • default_value

      public String default_value
      The default value for objects of this type.
    • transformer

      public com.google.common.base.Function<T,String> 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 object
      default_value - the default value for the object, as a String
      function - maps objects of this type to string representations