Record Class WebsocketBeans.DeletionStartData
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.spi.delete.beans.WebsocketBeans.DeletionStartData
- All Implemented Interfaces:
WebsocketBeans.DeleteActionEvent
- Enclosing class:
WebsocketBeans
public static record WebsocketBeans.DeletionStartData(int toDeleteCount, WebsocketBeans.UpdateDataType type)
extends Record
implements WebsocketBeans.DeleteActionEvent
-
Constructor Summary
ConstructorsConstructorDescriptionDeletionStartData(int toDeleteCount) DeletionStartData(int toDeleteCount, WebsocketBeans.UpdateDataType type) Creates an instance of aDeletionStartDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thetoDeleteCountrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
DeletionStartData
public DeletionStartData(int toDeleteCount) -
DeletionStartData
Creates an instance of aDeletionStartDatarecord class.- Parameters:
toDeleteCount- the value for thetoDeleteCountrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
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. -
toDeleteCount
public int toDeleteCount()Returns the value of thetoDeleteCountrecord component.- Returns:
- the value of the
toDeleteCountrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-