Example #1
0
 public static RoxelSpace valueOf(Roxel r) {
   return new RoxelSpace(
       new Id(r),
       DirectionSpace.valueOf(r.getDirection()),
       LocationSpace.valueOf(r.getLocation()),
       CarSpace.valueOf(r.getCar()));
 }
Example #2
0
 public Roxel toRoxel() {
   return Roxel.valueOf(
       direction.toDirection(), location.toLocation(), Car.valueOf(car.isEmpty()));
 }