Interface Registry<T>

Type Parameters:
T - The type of elements stored in a registry.
All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
SyntaxRegistry

@Experimental public interface Registry<T> extends Iterable<T>
A registry maintains a collection of elements. It is up to individual implementations as to how they may be modified.
  • Method Details

    • elements

      Collection<T> elements()
      Returns:
      A collection of all elements in this registry.
    • iterator

      default Iterator<T> iterator()
      By default, this is a wrapper for elements().iterator().
      Specified by:
      iterator in interface Iterable<T>
      Returns:
      An iterator over all elements in this registry.
      See Also: