Package dev.reuss.tmdb.common.change
Record Class ChangeItem
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.change.ChangeItem
- Record Components:
id- change item idaction- change actiontime- change timestampiso6391- ISO 639-1 language codeiso31661- ISO 3166-1 region codevalue- changed valueoriginalValue- previous value, if provided by the endpoint
- All Implemented Interfaces:
TmdbModel,Serializable
public record ChangeItem(String id, String action, String time, String iso6391, String iso31661, Object value, Object originalValue)
extends Record
implements TmdbModel
Single change item for a TMDB resource field.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.iso31661()Returns the value of theiso31661record component.iso6391()Returns the value of theiso6391record component.Returns the value of theoriginalValuerecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ChangeItem
public ChangeItem(String id, String action, String time, String iso6391, String iso31661, Object value, Object originalValue) Creates an instance of aChangeItemrecord class.- Parameters:
id- the value for theidrecord componentaction- the value for theactionrecord componenttime- the value for thetimerecord componentiso6391- the value for theiso6391record componentiso31661- the value for theiso31661record componentvalue- the value for thevaluerecord componentoriginalValue- the value for theoriginalValuerecord 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
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
iso6391
Returns the value of theiso6391record component.- Returns:
- the value of the
iso6391record component
-
iso31661
Returns the value of theiso31661record component.- Returns:
- the value of the
iso31661record component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
originalValue
Returns the value of theoriginalValuerecord component.- Returns:
- the value of the
originalValuerecord component
-