@Generated(value={"Immutables.generator","JCameraSphericalMouseRegionType"}) public final class JCameraSphericalMouseRegion extends Object implements JCameraSphericalMouseRegionType
| Modifier and Type | Class and Description |
|---|---|
static class |
JCameraSphericalMouseRegion.Builder
Builds instances of type
JCameraSphericalMouseRegion. |
| Modifier and Type | Method and Description |
|---|---|
static JCameraSphericalMouseRegion.Builder |
builder()
Creates a builder for
JCameraSphericalMouseRegion. |
double |
centerX() |
double |
centerY() |
static JCameraSphericalMouseRegion |
copyOf(JCameraSphericalMouseRegionType instance)
Creates an immutable copy of a
JCameraSphericalMouseRegionType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCameraSphericalMouseRegion that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
origin, width, height, centerX, centerY. |
double |
height() |
static JCameraSphericalMouseRegion |
of(JCameraScreenOrigin origin,
double width,
double height)
Construct a new immutable
JCameraSphericalMouseRegion instance. |
JCameraScreenOrigin |
origin() |
String |
toString()
Prints the immutable value
JCameraSphericalMouseRegion with attribute values. |
double |
width() |
JCameraSphericalMouseRegion |
withHeight(double value)
Copy the current immutable object by setting a value for the
height attribute. |
JCameraSphericalMouseRegion |
withOrigin(JCameraScreenOrigin value)
Copy the current immutable object by setting a value for the
origin attribute. |
JCameraSphericalMouseRegion |
withWidth(double value)
Copy the current immutable object by setting a value for the
width attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditions, positionpublic JCameraScreenOrigin origin()
origin in interface JCameraSphericalMouseRegionTypepublic double width()
width in interface JCameraSphericalMouseRegionTypepublic double height()
height in interface JCameraSphericalMouseRegionTypepublic double centerX()
centerX in interface JCameraSphericalMouseRegionTypepublic double centerY()
centerY in interface JCameraSphericalMouseRegionTypepublic final JCameraSphericalMouseRegion withOrigin(JCameraScreenOrigin value)
origin attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for originthis objectpublic final JCameraSphericalMouseRegion withWidth(double value)
width attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for widththis objectpublic final JCameraSphericalMouseRegion withHeight(double value)
height attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for heightthis objectpublic boolean equals(Object another)
JCameraSphericalMouseRegion that have equal attribute values.public int hashCode()
origin, width, height, centerX, centerY.public String toString()
JCameraSphericalMouseRegion with attribute values.public static JCameraSphericalMouseRegion of(JCameraScreenOrigin origin, double width, double height)
JCameraSphericalMouseRegion instance.origin - The value for the origin attributewidth - The value for the width attributeheight - The value for the height attributepublic static JCameraSphericalMouseRegion copyOf(JCameraSphericalMouseRegionType instance)
JCameraSphericalMouseRegionType 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 JCameraSphericalMouseRegion.Builder builder()
JCameraSphericalMouseRegion.Copyright © 2017 <code@io7m.com> http://io7m.com