@Test public void testInstantiation() { final Flags flags = new Flags(); assertThat(flags.get(), is(0)); }
@IntRange(from = 0, to = Integer.MAX_VALUE) public int get() { return flags; }
Flags { @IntRange(from = 0, to = Integer.MAX_VALUE) public int get() { return flags; } }
Flags { @IntRange(from = 0, to = Integer.MAX_VALUE) public int get() { return flags; } Flags();  Flags(@IntRange(from = 0, to = Integer.MAX_VALUE) final int flags); }
Flags { @IntRange(from = 0, to = Integer.MAX_VALUE) public int get() { return flags; } Flags();  Flags(@IntRange(from = 0, to = Integer.MAX_VALUE) final int flags); Flags add(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); Flags remove(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); boolean has(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); @IntRange(from = 0, to = Integer.MAX_VALUE) int get(); Flags reset(); }
Flags { @IntRange(from = 0, to = Integer.MAX_VALUE) public int get() { return flags; } Flags();  Flags(@IntRange(from = 0, to = Integer.MAX_VALUE) final int flags); Flags add(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); Flags remove(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); boolean has(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); @IntRange(from = 0, to = Integer.MAX_VALUE) int get(); Flags reset();  }