예제 #1
0
 public Endorsement getEndorsement() {
   return booking.getPaymentMethod() instanceof Endorsement
       ? (Endorsement) booking.getPaymentMethod()
       : null;
 }
예제 #2
0
 public CreditCard getCreditCard() {
   return booking.getPaymentMethod() instanceof CreditCard
       ? (CreditCard) booking.getPaymentMethod()
       : null;
 }