Record Class ArchitecturalModel.Ray
java.lang.Object
java.lang.Record
org.episteme.social.architecture.ArchitecturalModel.Ray
- All Implemented Interfaces:
Serializable
- Enclosing class:
ArchitecturalModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.x1()Returns the value of thex1record component.x2()Returns the value of thex2record component.y1()Returns the value of they1record component.y2()Returns the value of they2record component.
-
Constructor Details
-
Ray
Creates an instance of aRayrecord class.- Parameters:
x1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record componenttype- the value for thetyperecord component
-
-
Method Details
-
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). -
x1
Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
Returns the value of they2record component.- Returns:
- the value of the
y2record component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-