Пример #1
0
 /**
  * Set the current state of the light
  *
  * @param value True if lighted
  */
 public void set(boolean value) {
   payload.set(value);
 }
Пример #2
0
 @Override
 public Payload clone() {
   CarLanternPayload c = new CarLanternPayload(direction);
   c.copyFrom(this);
   return c;
 }