Package | Description |
---|---|
com.github.zafarkhaja.semver.util |
This package provides some useful utility classes.
|
Modifier and Type | Method and Description |
---|---|
<T extends Stream.ElementType<E>> |
Stream.consume(T... expected)
Consumes the next element in this stream
only if it is of the expected types.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookahead(T... expected)
Checks if the next element in this stream is of the expected types.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookaheadBefore(Stream.ElementType<E> before,
T... expected)
Checks if there exists an element in this stream of
the expected types before the specified type.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookaheadUntil(int until,
T... expected)
Checks if there is an element in this stream of
the expected types until the specified position.
|
Modifier and Type | Method and Description |
---|---|
Stream.ElementType<?>[] |
UnexpectedElementException.getExpectedElementTypes()
Gets the expected element types.
|
Modifier and Type | Method and Description |
---|---|
<T extends Stream.ElementType<E>> |
Stream.consume(T... expected)
Consumes the next element in this stream
only if it is of the expected types.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookahead(T... expected)
Checks if the next element in this stream is of the expected types.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookaheadBefore(Stream.ElementType<E> before,
T... expected)
Checks if there exists an element in this stream of
the expected types before the specified type.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookaheadBefore(Stream.ElementType<E> before,
T... expected)
Checks if there exists an element in this stream of
the expected types before the specified type.
|
<T extends Stream.ElementType<E>> |
Stream.positiveLookaheadUntil(int until,
T... expected)
Checks if there is an element in this stream of
the expected types until the specified position.
|
Copyright © 2015. All rights reserved.