| Constructor and Description |
|---|
OptionalLazyQuery(UriEncoded uriEncoded)
Creates an
Optional lazily evaluated Query. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent() |
int |
parsedLength()
The length of the component in the source.
|
Query |
value() |
Query |
value(Query defaultValue) |
public OptionalLazyQuery(UriEncoded uriEncoded)
Optional lazily evaluated Query. The given input is considered to contain a Query if it starts with a "?"
character. The "?" will not be part of the Query.
If the input doesn't start with a "?", the optional Query will not be "present".
uriEncoded - public boolean isPresent()
isPresent in interface org.dmfs.jems.optional.Optional<Query>public Query value() throws java.util.NoSuchElementException
value in interface org.dmfs.jems.optional.Optional<Query>java.util.NoSuchElementExceptionpublic int parsedLength()
ParsedparsedLength in interface Parsed