@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableVerticesAndEdges<V,E> extends Object implements VerticesAndEdges<V,E>
VerticesAndEdges.
Use the builder to create immutable instances:
ImmutableVerticesAndEdges.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableVerticesAndEdges.Builder<V,E>
Builds instances of type
ImmutableVerticesAndEdges. |
| Modifier and Type | Method and Description |
|---|---|
static <V,E> ImmutableVerticesAndEdges.Builder<V,E> |
builder()
Creates a builder for
ImmutableVerticesAndEdges. |
static <V,E> ImmutableVerticesAndEdges<V,E> |
copyOf(VerticesAndEdges<V,E> instance)
Creates an immutable copy of a
VerticesAndEdges value. |
Set<Edge<V,E>> |
edges() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVerticesAndEdges that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
vertices, edges, loops. |
Set<Loop<V,E>> |
loops() |
String |
toString()
Prints the immutable value
VerticesAndEdges with attribute values. |
Set<V> |
vertices() |
ImmutableVerticesAndEdges<V,E> |
withEdges(Edge<V,E>... elements)
Copy the current immutable object with elements that replace the content of
edges. |
ImmutableVerticesAndEdges<V,E> |
withEdges(Iterable<? extends Edge<V,E>> elements)
Copy the current immutable object with elements that replace the content of
edges. |
ImmutableVerticesAndEdges<V,E> |
withLoops(Iterable<? extends Loop<V,E>> elements)
Copy the current immutable object with elements that replace the content of
loops. |
ImmutableVerticesAndEdges<V,E> |
withLoops(Loop<V,E>... elements)
Copy the current immutable object with elements that replace the content of
loops. |
ImmutableVerticesAndEdges<V,E> |
withVertices(Iterable<? extends V> elements)
Copy the current immutable object with elements that replace the content of
vertices. |
ImmutableVerticesAndEdges<V,E> |
withVertices(V... elements)
Copy the current immutable object with elements that replace the content of
vertices. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckpublic Set<V> vertices()
vertices in interface VerticesAndEdges<V,E>vertices attributepublic Set<Edge<V,E>> edges()
edges in interface VerticesAndEdges<V,E>edges attributepublic Set<Loop<V,E>> loops()
loops in interface VerticesAndEdges<V,E>loops attribute@SafeVarargs public final ImmutableVerticesAndEdges<V,E> withVertices(V... elements)
vertices.elements - The elements to setthis objectpublic final ImmutableVerticesAndEdges<V,E> withVertices(Iterable<? extends V> elements)
vertices.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of vertices elements to setthis object@SafeVarargs public final ImmutableVerticesAndEdges<V,E> withEdges(Edge<V,E>... elements)
edges.elements - The elements to setthis objectpublic final ImmutableVerticesAndEdges<V,E> withEdges(Iterable<? extends Edge<V,E>> elements)
edges.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of edges elements to setthis object@SafeVarargs public final ImmutableVerticesAndEdges<V,E> withLoops(Loop<V,E>... elements)
loops.elements - The elements to setthis objectpublic final ImmutableVerticesAndEdges<V,E> withLoops(Iterable<? extends Loop<V,E>> elements)
loops.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of loops elements to setthis objectpublic boolean equals(Object another)
ImmutableVerticesAndEdges that have equal attribute values.public int hashCode()
vertices, edges, loops.public String toString()
VerticesAndEdges with attribute values.public static <V,E> ImmutableVerticesAndEdges<V,E> copyOf(VerticesAndEdges<V,E> instance)
VerticesAndEdges value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.V - generic parameter VE - generic parameter Einstance - The instance to copypublic static <V,E> ImmutableVerticesAndEdges.Builder<V,E> builder()
ImmutableVerticesAndEdges.
ImmutableVerticesAndEdges.<V, E>builder()
.addVertices|addAllVertices(V) // vertices elements
.addEdges|addAllEdges(de.flapdoodle.graph.Edge<V, E>) // edges elements
.addLoops|addAllLoops(de.flapdoodle.graph.Loop<V, E>) // loops elements
.build();
V - generic parameter VE - generic parameter ECopyright © 2019. All rights reserved.