Package com.apicatalog.rdf.primitive.set
Class OrderedTripleSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<RdfTriple>
-
- com.apicatalog.rdf.primitive.set.OrderedTripleSet
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OrderedTripleSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(RdfTriple triple)Checks if the RDF graph contains the specified triple.booleanremove(RdfTriple triple)Removes a triple from the RDF graph.java.util.stream.Stream<RdfTriple>stream()Returns a stream of all the triples in the RDF graph.-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
stream
public java.util.stream.Stream<RdfTriple> stream()
Description copied from interface:RdfGraphReturns a stream of all the triples in the RDF graph.This method provides a convenient way to iterate over all the triples in the graph. It can be used with Java Streams API to process the triples in a functional manner.
-
contains
public boolean contains(RdfTriple triple)
Description copied from interface:RdfGraphChecks if the RDF graph contains the specified triple.This method allows you to verify whether a specific RDF triple is present in the graph.
-
-