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 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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-