Package org.localify.user.support
Record Class EventRecRequest
java.lang.Object
java.lang.Record
org.localify.user.support.EventRecRequest
- Record Components:
sortBy- The sort setting for the recommendations.timeFrame- The time frame for the recommendations.start- The start time for the recommendations.end- The end time for the recommendations.
public record EventRecRequest(RecSortSetting sortBy, CitySelectionTimeFrame timeFrame, Long start, Long end)
extends Record
Represents a request for event recommendations.
-
Constructor Summary
ConstructorsConstructorDescriptionEventRecRequest(RecSortSetting sortBy, CitySelectionTimeFrame timeFrame, Long start, Long end) Creates an instance of aEventRecRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sortBy()Returns the value of thesortByrecord component.start()Returns the value of thestartrecord component.Returns the value of thetimeFramerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventRecRequest
public EventRecRequest(@Nullable RecSortSetting sortBy, @Nullable CitySelectionTimeFrame timeFrame, @Nullable Long start, @Nullable Long end) Creates an instance of aEventRecRequestrecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sortBy
Returns the value of thesortByrecord component.- Returns:
- the value of the
sortByrecord component
-
timeFrame
Returns the value of thetimeFramerecord component.- Returns:
- the value of the
timeFramerecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-