public final class OptionalLazyScheme extends java.lang.Object implements org.dmfs.optional.Optional<Scheme>, Parsed
Optional Scheme of a UriEncoded URI.
Note that the presence of a Scheme in the result doesn't guarantee a valid URI. It only guarantees, if the input data represents a valid URI, this is
the Scheme of it.
| Constructor and Description |
|---|
OptionalLazyScheme(UriEncoded uriEncoded) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent() |
int |
parsedLength()
The length of the component in the source.
|
Scheme |
value() |
Scheme |
value(Scheme defaultValue) |
public OptionalLazyScheme(UriEncoded uriEncoded)
public boolean isPresent()
isPresent in interface org.dmfs.jems.optional.Optional<Scheme>public Scheme value() throws java.util.NoSuchElementException
value in interface org.dmfs.jems.optional.Optional<Scheme>java.util.NoSuchElementExceptionpublic int parsedLength()
ParsedparsedLength in interface Parsed