public class MappedLicense extends Object
| Modifier and Type | Method and Description |
|---|---|
MappedLicense |
addReason(String more) |
static MappedLicense |
empty() |
boolean |
equals(Object o) |
String |
getReason() |
int |
hashCode() |
void |
ifPresent(de.pfabulist.unchecked.functiontypes.ConsumerE<LicenseID,Exception> con) |
boolean |
isPresent() |
Optional<LicenseID> |
noReason() |
static MappedLicense |
of(LicenseID licenseID,
String reason) |
static MappedLicense |
of(Optional<LicenseID> licenseID,
String reason) |
LicenseID |
orElseThrow(Supplier<Exception> ex) |
String |
toString() |
public static MappedLicense empty()
public static MappedLicense of(LicenseID licenseID, String reason)
public static MappedLicense of(Optional<LicenseID> licenseID, String reason)
public boolean isPresent()
public void ifPresent(de.pfabulist.unchecked.functiontypes.ConsumerE<LicenseID,Exception> con)
public MappedLicense addReason(String more)
public String getReason()
Copyright © 2016. All rights reserved.