Package org.opfab.cards.model
Class CardOperation
java.lang.Object
org.opfab.cards.model.CardOperation
Operation to do: Add, Update or Delete a card
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCard()Card object to be added or updated.ID of card to be deleted.getType()Get typeinthashCode()voidvoidvoidsetType(CardOperationTypeEnum type) toString()type(CardOperationTypeEnum type)
-
Constructor Details
-
CardOperation
public CardOperation()
-
-
Method Details
-
type
-
getType
Get type- Returns:
- type
-
setType
-
cardId
-
getCardId
ID of card to be deleted. Only used for CardOperations of DELETE type.- Returns:
- cardId
-
setCardId
-
card
-
getCard
Card object to be added or updated. Only used for CardOperations of ADD or UPDATE type.- Returns:
- card
-
setCard
-
equals
-
hashCode
public int hashCode() -
toString
-