java.lang.Object
java.lang.Record
dev.secondsun.geometry.Texture
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intimageId()Returns the value of theimageIdrecord component.origin()Returns the value of theoriginrecord component.toString()Returns a string representation of this record class.intu()Returns the value of theurecord component.intv()Returns the value of thevrecord component.
-
Constructor Details
-
Texture
Creates an instance of aTexturerecord class.- Parameters:
imageId- the value for theimageIdrecord componentorigin- the value for theoriginrecord componentu- the value for theurecord componentv- the value for thevrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
imageId
public int imageId()Returns the value of theimageIdrecord component.- Returns:
- the value of the
imageIdrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
u
public int u()Returns the value of theurecord component.- Returns:
- the value of the
urecord component
-
v
public int v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-