Record Class InvoiceUpdate.ItemsUpdate
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.billing.InvoiceUpdate.ItemsUpdate
- Enclosing class:
- InvoiceUpdate
public static record InvoiceUpdate.ItemsUpdate(int itemsAdded, int itemsRemoved, int itemsModified)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionItemsUpdate(int itemsAdded, int itemsRemoved, int itemsModified) Creates an instance of aItemsUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InvoiceUpdate.ItemsUpdateempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()intReturns the value of theitemsAddedrecord component.intReturns the value of theitemsModifiedrecord component.intReturns the value of theitemsRemovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemsUpdate
public ItemsUpdate(int itemsAdded, int itemsRemoved, int itemsModified) Creates an instance of aItemsUpdaterecord class.- Parameters:
itemsAdded- the value for theitemsAddedrecord componentitemsRemoved- the value for theitemsRemovedrecord componentitemsModified- the value for theitemsModifiedrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
empty
-
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 with '=='. -
itemsAdded
public int itemsAdded()Returns the value of theitemsAddedrecord component.- Returns:
- the value of the
itemsAddedrecord component
-
itemsRemoved
public int itemsRemoved()Returns the value of theitemsRemovedrecord component.- Returns:
- the value of the
itemsRemovedrecord component
-
itemsModified
public int itemsModified()Returns the value of theitemsModifiedrecord component.- Returns:
- the value of the
itemsModifiedrecord component
-