Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for AnEnum (0.12 sec)

  1. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

          super('b', 'a', 'c', 'd', 'e');
        }
      }
    
      public static class Enums extends SampleElements<AnEnum> {
        public Enums() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E);
        }
      }
    
      public static class Ints extends SampleElements<Integer> {
        public Ints() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      }
    
      private static TestEnumMultisetGenerator enumMultisetGenerator() {
        return new TestEnumMultisetGenerator() {
          @Override
          protected Multiset<AnEnum> create(AnEnum[] elements) {
            return (elements.length == 0)
                ? EnumMultiset.create(AnEnum.class)
                : EnumMultiset.create(asList(elements));
          }
        };
      }
    
      private enum Color {
        BLUE,
        RED,
        YELLOW,
        GREEN,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/EnumsTest.java

      private enum AnEnum {
        @ExampleAnnotation
        FOO,
        BAR
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testGetField() {
        Field foo = Enums.getField(AnEnum.FOO);
        assertEquals("FOO", foo.getName());
        assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class));
    
        Field bar = Enums.getField(AnEnum.BAR);
        assertEquals("BAR", bar.getName());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

      public Test testsForEnumMap() {
        return MapTestSuiteBuilder.using(
                new TestEnumMapGenerator() {
                  @Override
                  protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
                    return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
                  }
                })
            .named("EnumMap")
            .withFeatures(
                MapFeature.GENERAL_PURPOSE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

      public Test testsForEnumSet() {
        return SetTestSuiteBuilder.using(
                new TestEnumSetGenerator() {
                  @Override
                  public Set<AnEnum> create(AnEnum[] elements) {
                    return (elements.length == 0)
                        ? EnumSet.noneOf(AnEnum.class)
                        : EnumSet.copyOf(MinimalCollection.of(elements));
                  }
                })
            .named("EnumSet")
            .withFeatures(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

      public Test testsForEnumMap() {
        return MapTestSuiteBuilder.using(
                new TestEnumMapGenerator() {
                  @Override
                  protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
                    return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
                  }
                })
            .named("EnumMap")
            .withFeatures(
                MapFeature.GENERAL_PURPOSE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        assertEquals(intMap.hashCode(), map.entrySet().hashCode());
        assertEquals(intMap.hashCode(), map.hashCode());
      }
    
      public void testCopyOfEnumMap() {
        EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class);
        map.put(AnEnum.B, "foo");
        map.put(AnEnum.C, "bar");
        assertTrue(ImmutableMap.copyOf(map) instanceof ImmutableEnumMap);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestEnumSetGenerator() {
                      @Override
                      protected Set<AnEnum> create(AnEnum[] elements) {
                        AnEnum[] otherElements = new AnEnum[elements.length - 1];
                        arraycopy(elements, 1, otherElements, 0, otherElements.length);
                        return Sets.immutableEnumSet(elements[0], otherElements);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
Back to top