Interface GraphLike<T extends TripleLike>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(T statement)
      Add a statement.
      void clear()
      Remove all statements.
      boolean contains​(T statement)
      Check if statement is contained.
      java.lang.Iterable<T> iterate()
      Iterate over contained statements.
      void remove​(T statement)
      Add a statement.
      long size()
      Number of statements.
      java.util.stream.Stream<? extends T> stream()
      Return a Stream of contained statements.
    • Method Detail

      • add

        void add​(T statement)
        Add a statement.
        Parameters:
        statement - The TripleLike statement to add
      • contains

        boolean contains​(T statement)
        Check if statement is contained.
        Parameters:
        statement - The TripleLike statement to check
        Returns:
        True if the statement is contained
      • remove

        void remove​(T statement)
        Add a statement.
        Parameters:
        statement - The TripleLike statement to add
      • clear

        void clear()
        Remove all statements.
      • size

        long size()
        Number of statements.
        Returns:
        Number of statements
      • stream

        java.util.stream.Stream<? extends T> stream()
        Return a Stream of contained statements.
        Returns:
        A Stream of TripleLike statements.
      • iterate

        java.lang.Iterable<T> iterate()
                               throws java.util.ConcurrentModificationException,
                                      java.lang.IllegalStateException
        Iterate over contained statements.
        Returns:
        An Iterable of TripleLike statements.
        Throws:
        java.lang.IllegalStateException - if the Iterable has been reused
        java.util.ConcurrentModificationException - if a concurrency conflict occurs while the Iterator is active.