Class VolumeSizeBD
java.lang.Object
com.io7m.jregions.core.unparameterized.sizes.VolumeSizeBD
- All Implemented Interfaces:
VolumeSizeBDType,VolumeSizeValuesBDType
The size of a volume with
BigDecimal coordinates.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeSizeBD.Builderbuilder()Creates a builder forVolumeSizeBD.static VolumeSizeBDcopyOf(VolumeSizeBDType instance) Creates an immutable copy of aVolumeSizeBDTypevalue.booleanThis instance is equal to all instances ofVolumeSizeBDthat have equal attribute values.inthashCode()Computes a hash code from attributes:sizeX,sizeY,sizeZ.static VolumeSizeBDof(BigDecimal sizeX, BigDecimal sizeY, BigDecimal sizeZ) Construct a new immutableVolumeSizeBDinstance.sizeX()sizeY()sizeZ()toString()Prints the immutable valueVolumeSizeBDwith attribute values.final VolumeSizeBDwithSizeX(BigDecimal value) Copy the current immutable object by setting a value for thesizeXattribute.final VolumeSizeBDwithSizeY(BigDecimal value) Copy the current immutable object by setting a value for thesizeYattribute.final VolumeSizeBDwithSizeZ(BigDecimal value) Copy the current immutable object by setting a value for thesizeZattribute.
-
Method Details
-
sizeX
- Specified by:
sizeXin interfaceVolumeSizeBDType- Specified by:
sizeXin interfaceVolumeSizeValuesBDType- Returns:
- The value of the
sizeXattribute
-
sizeY
- Specified by:
sizeYin interfaceVolumeSizeBDType- Specified by:
sizeYin interfaceVolumeSizeValuesBDType- Returns:
- The value of the
sizeYattribute
-
sizeZ
- Specified by:
sizeZin interfaceVolumeSizeBDType- Specified by:
sizeZin interfaceVolumeSizeValuesBDType- Returns:
- The value of the
sizeZattribute
-
withSizeX
Copy the current immutable object by setting a value for thesizeXattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sizeX- Returns:
- A modified copy of the
thisobject
-
withSizeY
Copy the current immutable object by setting a value for thesizeYattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sizeY- Returns:
- A modified copy of the
thisobject
-
withSizeZ
Copy the current immutable object by setting a value for thesizeZattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sizeZ- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofVolumeSizeBDthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:sizeX,sizeY,sizeZ. -
toString
Prints the immutable valueVolumeSizeBDwith attribute values. -
of
Construct a new immutableVolumeSizeBDinstance.- Parameters:
sizeX- The value for thesizeXattributesizeY- The value for thesizeYattributesizeZ- The value for thesizeZattribute- Returns:
- An immutable VolumeSizeBD instance
-
copyOf
Creates an immutable copy of aVolumeSizeBDTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VolumeSizeBD instance
-
builder
Creates a builder forVolumeSizeBD.VolumeSizeBD.builder() .setSizeX(java.math.BigDecimal) // requiredsizeX.setSizeY(java.math.BigDecimal) // requiredsizeY.setSizeZ(java.math.BigDecimal) // requiredsizeZ.build();- Returns:
- A new VolumeSizeBD builder
-