@Generated(value={"Immutables.generator","BoxHorizontalSplitType<S>"}) public final class BoxHorizontalSplit<S> extends Object implements BoxHorizontalSplitType<S>
BoxHorizontalSplitType.
Use the builder to create immutable instances:
BoxHorizontalSplit.<S>builder().
Use the static factory method to create immutable instances:
BoxHorizontalSplit.<S>of().
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxHorizontalSplit.Builder<S>
Builds instances of type
BoxHorizontalSplit. |
| Modifier and Type | Method and Description |
|---|---|
static <S> BoxHorizontalSplit.Builder<S> |
builder()
Creates a builder for
BoxHorizontalSplit. |
static <S> BoxHorizontalSplit<S> |
copyOf(BoxHorizontalSplitType<S> instance)
Creates an immutable copy of a
BoxHorizontalSplitType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
BoxHorizontalSplit that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
upper, lower. |
BoxType<S> |
lower() |
static <S> BoxHorizontalSplit<S> |
of(BoxType<S> upper,
BoxType<S> lower)
Construct a new immutable
BoxHorizontalSplit instance. |
String |
toString()
Prints the immutable value
BoxHorizontalSplit with attribute values. |
BoxType<S> |
upper() |
BoxHorizontalSplit<S> |
withLower(BoxType<S> lower)
Copy the current immutable object by setting a value for the
lower attribute. |
BoxHorizontalSplit<S> |
withUpper(BoxType<S> upper)
Copy the current immutable object by setting a value for the
upper attribute. |
public BoxType<S> upper()
upper in interface BoxHorizontalSplitType<S>public BoxType<S> lower()
lower in interface BoxHorizontalSplitType<S>public final BoxHorizontalSplit<S> withUpper(BoxType<S> upper)
upper attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.upper - A new value for upperthis objectpublic final BoxHorizontalSplit<S> withLower(BoxType<S> lower)
lower attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.lower - A new value for lowerthis objectpublic boolean equals(Object another)
BoxHorizontalSplit that have equal attribute values.public int hashCode()
upper, lower.public String toString()
BoxHorizontalSplit with attribute values.public static <S> BoxHorizontalSplit<S> of(BoxType<S> upper, BoxType<S> lower)
BoxHorizontalSplit instance.upper - The value for the upper attributelower - The value for the lower attributepublic static <S> BoxHorizontalSplit<S> copyOf(BoxHorizontalSplitType<S> instance)
BoxHorizontalSplitType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.S - generic parameter Sinstance - The instance to copypublic static <S> BoxHorizontalSplit.Builder<S> builder()
BoxHorizontalSplit.S - generic parameter SCopyright © 2016 <code@io7m.com> http://io7m.com