Class OrderedQuadSet

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedQuadSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(RdfQuad quad)
      Checks if the set contains the specified RdfQuad.
      boolean remove​(RdfQuad quad)
      Removes RdfQuad from the RDF graph.
      java.util.stream.Stream<RdfQuad> stream()
      Returns a Stream of the RDF quads in this set.
      • Methods inherited from class java.util.LinkedHashSet

        spliterator
      • Methods inherited from class java.util.HashSet

        add, clear, clone, contains, isEmpty, iterator, remove, size
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • 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 java.util.Collection

        parallelStream, removeIf, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface com.apicatalog.rdf.model.RdfQuadSet

        add
      • Methods inherited from interface java.util.Set

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
    • Constructor Detail

      • OrderedQuadSet

        public OrderedQuadSet()
    • Method Detail

      • stream

        public java.util.stream.Stream<RdfQuad> stream()
        Description copied from interface: RdfQuadSet
        Returns a Stream of the RDF quads in this set.

        The stream can be used for operations such as filtering or mapping over the quads.

        Specified by:
        stream in interface java.util.Collection<RdfQuad>
        Specified by:
        stream in interface RdfQuadSet
        Returns:
        a stream of RdfQuad objects in the set
      • contains

        public boolean contains​(RdfQuad quad)
        Description copied from interface: RdfQuadSet
        Checks if the set contains the specified RdfQuad.
        Specified by:
        contains in interface RdfQuadSet
        Parameters:
        quad - the RdfQuad to check
        Returns:
        true if the set contains the specified quad, false otherwise
      • remove

        public boolean remove​(RdfQuad quad)
        Description copied from interface: RdfQuadSet
        Removes RdfQuad from 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:
        remove in interface RdfQuadSet
        Parameters:
        quad - the RdfQuad to remove
        Returns:
        true if the quad was successfully removed (implementation dependent)