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, toArray
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, containsAll, isEmpty, iterator, parallelStream, removeIf, retainAll, size, spliterator, stream, toArray, toArray
public final int hashCode()
ImmutableGraph
hashCode
in interface Collection<Triple>
hashCode
in interface ImmutableGraph
hashCode
in class Object
public boolean add(Triple e)
add
in interface Collection<Triple>
add
in class AbstractGraph
public boolean addAll(Collection<? extends Triple> c)
addAll
in interface Collection<Triple>
addAll
in class AbstractGraph
public boolean remove(Object o)
remove
in interface Collection<Triple>
remove
in class AbstractGraph
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Triple>
removeAll
in class AbstractGraph
public void clear()
clear
in interface Collection<Triple>
clear
in class AbstractGraph
public ImmutableGraph getImmutableGraph()
Graph
this
is an instance of ImmutableGraph this can
safely return this
.getImmutableGraph
in interface Graph
getImmutableGraph
in class AbstractGraph
public boolean equals(Object obj)
Graph
other
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 Graph
equals
in interface ImmutableGraph
equals
in class AbstractGraph
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.