ContractLongConditionTypepublic final class ContractLongCondition extends Object implements ContractLongConditionType
long specialized version of the ContractConditionType
type.| Modifier and Type | Class | Description |
|---|---|---|
static class |
ContractLongCondition.Builder |
Builds instances of type
ContractLongCondition. |
| Modifier and Type | Method | Description |
|---|---|---|
static ContractLongCondition.Builder |
builder() |
Creates a builder for
ContractLongCondition. |
static ContractLongCondition |
copyOf(ContractLongConditionType instance) |
Creates an immutable copy of a
ContractLongConditionType value. |
LongFunction<String> |
describer() |
|
boolean |
equals(Object another) |
This instance is equal to all instances of
ContractLongCondition that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
predicate, describer. |
static ContractLongCondition |
of(LongPredicate predicate,
LongFunction<String> describer) |
Construct a new immutable
ContractLongCondition instance. |
LongPredicate |
predicate() |
|
String |
toString() |
Prints the immutable value
ContractLongCondition with attribute values. |
ContractLongCondition |
withDescriber(LongFunction<String> value) |
Copy the current immutable object by setting a value for the
describer attribute. |
ContractLongCondition |
withPredicate(LongPredicate value) |
Copy the current immutable object by setting a value for the
predicate attribute. |
public LongPredicate predicate()
predicate in interface ContractLongConditionTypetrue for the contract to
holdpublic LongFunction<String> describer()
describer in interface ContractLongConditionTypepublic final ContractLongCondition withPredicate(LongPredicate value)
predicate attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for predicatethis objectpublic final ContractLongCondition withDescriber(LongFunction<String> value)
describer attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for describerthis objectpublic boolean equals(Object another)
ContractLongCondition that have equal attribute values.public int hashCode()
predicate, describer.public String toString()
ContractLongCondition with attribute values.public static ContractLongCondition of(LongPredicate predicate, LongFunction<String> describer)
ContractLongCondition instance.predicate - The value for the predicate attributedescriber - The value for the describer attributepublic static ContractLongCondition copyOf(ContractLongConditionType instance)
ContractLongConditionType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ContractLongCondition.Builder builder()
ContractLongCondition.Copyright © 2017 <code@io7m.com> http://io7m.com