Class CardDetails


  • public final class CardDetails
    extends java.lang.Object
    Record containing sensitive card details.
    • Constructor Summary

      Constructors 
      Constructor Description
      CardDetails​(java.lang.String pan, java.lang.String cvv2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getCvv2()
      Card CVV2, e.g.
      java.lang.String getPan()
      Card PAN, e.g 4564 6545 7997 5454.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CardDetails

        public CardDetails​(java.lang.String pan,
                           java.lang.String cvv2)
    • Method Detail

      • getPan

        public java.lang.String getPan()
        Card PAN, e.g 4564 6545 7997 5454.
      • getCvv2

        public java.lang.String getCvv2()
        Card CVV2, e.g. 078.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object