Package hydra.pg.model
Class ElementType.Vertex<T>
- java.lang.Object
-
- hydra.pg.model.ElementType<T>
-
- hydra.pg.model.ElementType.Vertex<T>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ElementType<T>>
- Enclosing class:
- ElementType<T>
public static final class ElementType.Vertex<T> extends ElementType<T> implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.pg.model.ElementType
ElementType.Edge<T>, ElementType.PartialVisitor<T,R>, ElementType.Vertex<T>, ElementType.Visitor<T,R>
-
-
Field Summary
Fields Modifier and Type Field Description VertexType<T>value-
Fields inherited from class hydra.pg.model.ElementType
EDGE, TYPE_, VERTEX
-
-
Constructor Summary
Constructors Constructor Description Vertex(VertexType<T> value)Constructs an immutableElementType.Vertex.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(ElementType.Visitor<T,R> visitor)Dispatch tovisitor.intcompareTo(ElementType other)booleanequals(java.lang.Object other)inthashCode()inthydraOrdinal()java.lang.StringtoString()
-
-
-
Field Detail
-
value
public final VertexType<T> value
-
-
Constructor Detail
-
Vertex
public Vertex(VertexType<T> value)
Constructs an immutableElementType.Vertex.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ElementType other)
- Specified by:
compareToin interfacejava.lang.Comparable<T>
-
hydraOrdinal
public int hydraOrdinal()
- Specified by:
hydraOrdinalin classElementType<T>
-
accept
public <R> R accept(ElementType.Visitor<T,R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classElementType<T>
-
-