public class TOptionalLong extends Object
Modifier and Type | Method and Description |
---|---|
static TOptionalLong |
empty() |
boolean |
equals(Object obj) |
long |
getAsLong() |
int |
hashCode() |
void |
ifPresent(LongConsumer consumer) |
boolean |
isPresent() |
static TOptionalLong |
of(long value) |
long |
orElse(long other) |
long |
orElseGet(LongSupplier other) |
<X extends Throwable> |
orElseThrow(Supplier<? extends X> exceptionSupplier) |
String |
toString() |
public static TOptionalLong empty()
public static TOptionalLong of(long value)
public long getAsLong()
public boolean isPresent()
public void ifPresent(LongConsumer consumer)
public long orElse(long other)
public long orElseGet(LongSupplier other)
public <X extends Throwable> long orElseThrow(Supplier<? extends X> exceptionSupplier) throws X extends Throwable
X extends Throwable
Copyright © 2019. All rights reserved.