Class Watch

java.lang.Object
it.unimi.di.prog2.h14.member.Watch
All Implemented Interfaces:
Iterable<Watch.Gear>

public class Watch extends Object implements Iterable<Watch.Gear>
A watch with gears.
  • Field Details

    • model

      public final String model
      The model of this watch, must be non-empty (and not null).
    • gears

      public final List<Watch.Gear> gears
      The gears of this watch, must be non-null and not contain null.
  • Constructor Details

  • Method Details