Class RequestDraw

  • All Implemented Interfaces:
    IComponentAction

    public class RequestDraw
    extends java.lang.Object
    implements IComponentAction
    Java class for concept RequestDraw of blackjack_beans ontology.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List cards
      Attribute for slot cards.
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestDraw()
      Default Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCard​(Card card)
      Add a card to this RequestDraw.
      Card getCard​(int idx)
      Get an cards of this RequestDraw.
      Card[] getCards()
      Get the cards of this RequestDraw.
      boolean removeCard​(Card card)
      Remove a card from this RequestDraw.
      void setCard​(int idx, Card card)
      Set a card to this RequestDraw.
      void setCards​(Card[] cards)
      Set the cards of this RequestDraw.
      java.lang.String toString()
      Get a string representation of this RequestDraw.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cards

        protected java.util.List cards
        Attribute for slot cards.
    • Constructor Detail

      • RequestDraw

        public RequestDraw()
        Default Constructor. RequestDraw.
    • Method Detail

      • getCards

        public Card[] getCards()
        Get the cards of this RequestDraw.
        Returns:
        cards
      • setCards

        public void setCards​(Card[] cards)
        Set the cards of this RequestDraw.
        Parameters:
        cards - the value to be set
      • getCard

        public Card getCard​(int idx)
        Get an cards of this RequestDraw.
        Parameters:
        idx - The index.
        Returns:
        cards
      • setCard

        public void setCard​(int idx,
                            Card card)
        Set a card to this RequestDraw.
        Parameters:
        idx - The index.
        card - a value to be added
      • addCard

        public void addCard​(Card card)
        Add a card to this RequestDraw.
        Parameters:
        card - a value to be removed
      • removeCard

        public boolean removeCard​(Card card)
        Remove a card from this RequestDraw.
        Parameters:
        card - a value to be removed
        Returns:
        True when the cards have changed.
      • toString

        public java.lang.String toString()
        Get a string representation of this RequestDraw.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.