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