java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Filter
public record Filter(String id, String title, List<String> context, ZonedDateTime expires_at, String filter_action, List<FilterKeyword> keywords, List<FilterStatus> statuses)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFilter(String id, String title, List<String> context, ZonedDateTime expires_at, String filter_action, List<FilterKeyword> keywords, List<FilterStatus> statuses) Creates an instance of aFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpires_atrecord component.Returns the value of thefilter_actionrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.keywords()Returns the value of thekeywordsrecord component.statuses()Returns the value of thestatusesrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Filter
public Filter(String id, String title, List<String> context, ZonedDateTime expires_at, String filter_action, List<FilterKeyword> keywords, List<FilterStatus> statuses) Creates an instance of aFilterrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentcontext- the value for thecontextrecord componentexpires_at- the value for theexpires_atrecord componentfilter_action- the value for thefilter_actionrecord componentkeywords- the value for thekeywordsrecord componentstatuses- the value for thestatusesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
expires_at
Returns the value of theexpires_atrecord component.- Returns:
- the value of the
expires_atrecord component
-
filter_action
Returns the value of thefilter_actionrecord component.- Returns:
- the value of the
filter_actionrecord component
-
keywords
Returns the value of thekeywordsrecord component.- Returns:
- the value of the
keywordsrecord component
-
statuses
Returns the value of thestatusesrecord component.- Returns:
- the value of the
statusesrecord component
-