public class MappedLicense extends Object
| Constructor and Description |
|---|
MappedLicense(String reason) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOver(MappedLicense other) |
void |
addOverFrom(MappedLicense other) |
MappedLicense |
addReason(String more) |
static MappedLicense |
empty() |
static MappedLicense |
empty(String s) |
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) |
<U> U |
orElse(Function<LicenseID,U> f,
U els) |
LicenseID |
orElseThrow(Supplier<Exception> ex) |
String |
toString() |
public MappedLicense(String reason)
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()
public static MappedLicense empty(String s)
public void addOver(MappedLicense other)
public void addOverFrom(MappedLicense other)
Copyright © 2016. All rights reserved.