Interface Stream.ElementType<E>

Type Parameters:
E - type of elements held by this stream
All Known Implementing Classes:
Lexer.Token.Type, VersionParser.CharType
Enclosing class:
Stream<E>

public static interface Stream.ElementType<E>
The ElementType interface represents types of the elements held by this stream and can be used for stream filtering.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isMatchedBy(E element)
    Checks if the specified element matches this type.
  • Method Details

    • isMatchedBy

      boolean isMatchedBy(E element)
      Checks if the specified element matches this type.
      Parameters:
      element - the element to be tested
      Returns:
      true if the element matches this type or false otherwise