ContractIntConditionTypepublic final class ContractIntCondition extends Object implements ContractIntConditionType
int specialized version of the ContractConditionType
type.| Modifier and Type | Class | Description |
|---|---|---|
static class |
ContractIntCondition.Builder |
Builds instances of type
ContractIntCondition. |
| Modifier and Type | Method | Description |
|---|---|---|
static ContractIntCondition.Builder |
builder() |
Creates a builder for
ContractIntCondition. |
static ContractIntCondition |
copyOf(ContractIntConditionType instance) |
Creates an immutable copy of a
ContractIntConditionType value. |
IntFunction<String> |
describer() |
|
boolean |
equals(Object another) |
This instance is equal to all instances of
ContractIntCondition that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
predicate, describer. |
static ContractIntCondition |
of(IntPredicate predicate,
IntFunction<String> describer) |
Construct a new immutable
ContractIntCondition instance. |
IntPredicate |
predicate() |
|
String |
toString() |
Prints the immutable value
ContractIntCondition with attribute values. |
ContractIntCondition |
withDescriber(IntFunction<String> value) |
Copy the current immutable object by setting a value for the
describer attribute. |
ContractIntCondition |
withPredicate(IntPredicate value) |
Copy the current immutable object by setting a value for the
predicate attribute. |
public IntPredicate predicate()
predicate in interface ContractIntConditionTypetrue for the contract to
holdpublic IntFunction<String> describer()
describer in interface ContractIntConditionTypepublic final ContractIntCondition withPredicate(IntPredicate 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 ContractIntCondition withDescriber(IntFunction<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)
ContractIntCondition that have equal attribute values.public int hashCode()
predicate, describer.public String toString()
ContractIntCondition with attribute values.public static ContractIntCondition of(IntPredicate predicate, IntFunction<String> describer)
ContractIntCondition instance.predicate - The value for the predicate attributedescriber - The value for the describer attributepublic static ContractIntCondition copyOf(ContractIntConditionType instance)
ContractIntConditionType 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 ContractIntCondition.Builder builder()
ContractIntCondition.Copyright © 2017 <code@io7m.com> http://io7m.com