Record Class StoryAreaTypeLocation
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.StoryAreaTypeLocation
- All Implemented Interfaces:
Serializable,ApiResult,StoryAreaType
public record StoryAreaTypeLocation(float latitude, float longitude, @Nullable LocationAddress address)
extends Record
implements StoryAreaType
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.StoryAreaType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionStoryAreaTypeLocation(float latitude, float longitude, @Nullable LocationAddress address) Creates an instance of aStoryAreaTypeLocationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable LocationAddressaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlatitude()Returns the value of thelatituderecord component.floatReturns the value of thelongituderecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
StoryAreaTypeLocation
public StoryAreaTypeLocation(float latitude, float longitude, @Nullable @Nullable LocationAddress address) Creates an instance of aStoryAreaTypeLocationrecord class.- Parameters:
latitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componentaddress- the value for theaddressrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceStoryAreaType
-
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 '=='. -
latitude
public float latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
public float longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-