Package hydra.pg.model
Class LazyGraph<V>
- java.lang.Object
-
- hydra.pg.model.LazyGraph<V>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LazyGraph<V>>
public class LazyGraph<V> extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<LazyGraph<V>>
A graph which does not assume that vertex or edge ids are unique. This is useful in mappings because the id specifications for vertices and/or edges may be non-unique.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLazyGraph.Builder<V>A fluent builder forLazyGraph.
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Edge<V>>edgesstatic NameEDGESName of thehydra.pg.model.LazyGraph.edgesfield.static NameTYPE_Name of thehydra.pg.model.LazyGraphtype.java.util.List<Vertex<V>>verticesstatic NameVERTICESName of thehydra.pg.model.LazyGraph.verticesfield.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V> LazyGraph.Builder<V>builder()Creates a new fluent builder forLazyGraph.intcompareTo(LazyGraph other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()LazyGraphwithEdges(java.util.List<Edge<V>> edges)Returns a copy of thisLazyGraphwithedgesreplaced.LazyGraphwithVertices(java.util.List<Vertex<V>> vertices)Returns a copy of thisLazyGraphwithverticesreplaced.
-
-
-
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(LazyGraph other)
- Specified by:
compareToin interfacejava.lang.Comparable<V>
-
withVertices
public LazyGraph withVertices(java.util.List<Vertex<V>> vertices)
Returns a copy of thisLazyGraphwithverticesreplaced.
-
withEdges
public LazyGraph withEdges(java.util.List<Edge<V>> edges)
Returns a copy of thisLazyGraphwithedgesreplaced.
-
builder
public static <V> LazyGraph.Builder<V> builder()
Creates a new fluent builder forLazyGraph.
-
-