예제 #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((klant == null) ? 0 : klant.hashCode());
   result = prime * result + ((voorstelling == null) ? 0 : voorstelling.hashCode());
   return result;
 }
예제 #2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Reservatie other = (Reservatie) obj;
   if (klant == null) {
     if (other.klant != null) return false;
   } else if (!klant.equals(other.klant)) return false;
   if (voorstelling == null) {
     if (other.voorstelling != null) return false;
   } else if (!voorstelling.equals(other.voorstelling)) return false;
   return true;
 }
예제 #3
0
 public BigDecimal getBedrag() {
   return voorstelling.getPrijs().multiply(new BigDecimal(plaatsen));
 }