public Outbox() { }
}
- /** get all destinations associated with this BenkoBox */
+ /** get all destinations associated with this BenkoBox; default implementation: just itself */
public Iterable<Destination> getDestinations() {
HashSet<Destination> self = new HashSet<Destination>();
self.add(this);
return self;
}
+
+ /** default implementation: the empty string */
+ public String getSubName() { return ""; }
+
}
/** return the Ship to which this BenkoBox belongs */
public abstract Ship getShip();
+ /** this returns the third component of the name; that is in "ship.port.foo", it returns "foo" */
+ public abstract String getSubName();
}