Package com.apicatalog.rdf.primitive.set
Class OrderedQuadSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<RdfQuad>
-
- com.apicatalog.rdf.primitive.set.OrderedQuadSet
-
- All Implemented Interfaces:
RdfQuadSet,java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<RdfQuad>,java.util.Collection<RdfQuad>,java.util.Set<RdfQuad>
public final class OrderedQuadSet extends java.util.LinkedHashSet<RdfQuad> implements RdfQuadSet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OrderedQuadSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(RdfQuad quad)Checks if the set contains the specifiedRdfQuad.booleanremove(RdfQuad quad)RemovesRdfQuadfrom the RDF graph.java.util.stream.Stream<RdfQuad>stream()Returns aStreamof the RDF quads in this set.-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.apicatalog.rdf.model.RdfQuadSet
add
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
stream
public java.util.stream.Stream<RdfQuad> stream()
Description copied from interface:RdfQuadSetReturns aStreamof the RDF quads in this set.The stream can be used for operations such as filtering or mapping over the quads.
- Specified by:
streamin interfacejava.util.Collection<RdfQuad>- Specified by:
streamin interfaceRdfQuadSet- Returns:
- a stream of
RdfQuadobjects in the set
-
contains
public boolean contains(RdfQuad quad)
Description copied from interface:RdfQuadSetChecks if the set contains the specifiedRdfQuad.- Specified by:
containsin interfaceRdfQuadSet- Parameters:
quad- theRdfQuadto check- Returns:
trueif the set contains the specified quad,falseotherwise
-
remove
public boolean remove(RdfQuad quad)
Description copied from interface:RdfQuadSetRemovesRdfQuadfrom the RDF graph.This operation is unsupported by default and will throw an
UnsupportedOperationException. Implementations that support removal of quads should override this method.- Specified by:
removein interfaceRdfQuadSet- Parameters:
quad- theRdfQuadto remove- Returns:
trueif the quad was successfully removed (implementation dependent)
-
-