public abstract class AbstractImmutableGraph extends AbstractGraph implements ImmutableGraph
AbstractGraph is an abstract implementation of ImmutableGraph
implementing the equals and the hashCode methods.| Constructor and Description |
|---|
AbstractImmutableGraph() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Triple e) |
boolean |
addAll(Collection<? extends Triple> c) |
void |
clear() |
boolean |
equals(Object obj)
Returns true if
other describes the same graph and will
always describe the same graph as this instance, false otherwise. |
ImmutableGraph |
getImmutableGraph()
Returns an ImutableGraph describing the graph at the current point in
time.
|
int |
hashCode()
Return the sum of the blank-nodes independent hashes of the triples.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
contains, containsAll, filter, getLock, isEmpty, iterator, performAdd, performAddAll, performClear, performContains, performContainsAll, performFilter, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performSize, performToArray, performToArray, retainAll, size, toArray, toArraytoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, isEmpty, iterator, parallelStream, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic final int hashCode()
ImmutableGraphhashCode in interface Collection<Triple>hashCode in interface ImmutableGraphhashCode in class Objectpublic boolean add(Triple e)
add in interface Collection<Triple>add in class AbstractGraphpublic boolean addAll(Collection<? extends Triple> c)
addAll in interface Collection<Triple>addAll in class AbstractGraphpublic boolean remove(Object o)
remove in interface Collection<Triple>remove in class AbstractGraphpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Triple>removeAll in class AbstractGraphpublic void clear()
clear in interface Collection<Triple>clear in class AbstractGraphpublic ImmutableGraph getImmutableGraph()
Graphthis is an instance of ImmutableGraph this can
safely return this.getImmutableGraph in interface GraphgetImmutableGraph in class AbstractGraphpublic boolean equals(Object obj)
Graphother describes the same graph and will
always describe the same graph as this instance, false otherwise.
It returns true if this == other or if it
is otherwise guaranteed that changes to one of the instances are
immediately reflected in the other or if both graphs are immutable.equals in interface Collection<Triple>equals in interface Graphequals in interface ImmutableGraphequals in class AbstractGraphCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.