Record Class SyShapeComposite<T extends SySpaceType>
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.rendering.SyShapeComposite<T>
- Type Parameters:
T- The coordinate space type- Record Components:
shapes- The set of shapes
- All Implemented Interfaces:
SyShapeType<T>
public record SyShapeComposite<T extends SySpaceType>(List<SyShapeType<T extends SySpaceType>> shapes)
extends Record
implements SyShapeType<T>
A composite shape.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.io7m.jregions.core.parameterized.areas.PAreaI<T> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<SyShapeType<T>> shapes()Returns the value of theshapesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyShapeComposite
A composite shape.- Parameters:
shapes- The set of shapes
-
-
Method Details
-
boundingArea
- Specified by:
boundingAreain interfaceSyShapeType<T extends SySpaceType>- Returns:
- The size of the shape
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
shapes
-