예제 #1
0
 @Override
 public String getDestination() {
   for (CartProperties prop : this) {
     if (prop.hasDestination()) return prop.getDestination();
   }
   return "";
 }
예제 #2
0
 @Override
 public boolean hasDestination() {
   for (CartProperties prop : this) {
     if (prop.hasDestination()) return true;
   }
   return false;
 }