Lines Matching full:enumset
63 import java.util.EnumSet;
309 EnumSet<?> delegate = (EnumSet<?>) in.readObject();
344 EnumSet<SomeEnum> copy =
346 assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
350 EnumSet<SomeEnum> set = EnumSet.of(SomeEnum.A, SomeEnum.D);
517 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D);
518 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units);
519 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C));
523 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D);
524 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units, SomeEnum.class);
525 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C));
530 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units);
531 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C));
536 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units, SomeEnum.class);
537 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C));
542 EnumSet<SomeEnum> allUnits = Sets.complementOf(noUnits, SomeEnum.class);
543 verifySetContents(EnumSet.allOf(SomeEnum.class), allUnits);
548 EnumSet<SomeEnum> noUnits = Sets.complementOf(allUnits, SomeEnum.class);
549 verifySetContents(noUnits, EnumSet.noneOf(SomeEnum.class));
553 Set<SomeEnum> noUnits = EnumSet.noneOf(SomeEnum.class);
554 EnumSet<SomeEnum> allUnits = Sets.complementOf(noUnits);
555 verifySetContents(allUnits, EnumSet.allOf(SomeEnum.class));