Searched refs:universe (Results 1 – 6 of 6) sorted by relevance
/libcore/ojluni/src/main/java/java/util/ |
D | RegularEnumSet.java | 45 RegularEnumSet(Class<E>elementType, Enum<?>[] universe) { in RegularEnumSet() argument 46 super(elementType, universe); in RegularEnumSet() 54 if (universe.length != 0) in addAll() 55 elements = -1L >>> -universe.length; in addAll() 59 if (universe.length != 0) { in complement() 61 elements &= -1L >>> -universe.length; // Mask unused bits in complement() 106 return (E) universe[Long.numberOfTrailingZeros(lastReturned)]; in next()
|
D | EnumSet.java | 95 final transient Enum<?>[] universe; field in EnumSet 97 EnumSet(Class<E>elementType, Enum<?>[] universe) { in EnumSet() argument 99 this.universe = universe; in EnumSet() 112 Enum<?>[] universe = getUniverse(elementType); in noneOf() local 113 if (universe == null) in noneOf() 116 if (universe.length <= 64) in noneOf() 117 return new RegularEnumSet<>(elementType, universe); in noneOf() 119 return new JumboEnumSet<>(elementType, universe); in noneOf()
|
D | JumboEnumSet.java | 50 JumboEnumSet(Class<E>elementType, Enum<?>[] universe) { in JumboEnumSet() argument 51 super(elementType, universe); in JumboEnumSet() 52 elements = new long[(universe.length + 63) >>> 6]; in JumboEnumSet() 74 elements[elements.length - 1] >>>= -universe.length; in addAll() 75 size = universe.length; in addAll() 81 elements[elements.length - 1] &= (-1L >>> -universe.length); in complement() 82 size = universe.length - size; in complement() 140 return (E) universe[(lastReturnedIndex << 6) in next()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | EnumSet.java | 35 EnumSet(java.lang.Class<E> elementType, java.lang.Enum<?>[] universe) { in EnumSet() argument 129 final java.lang.Enum<?>[] universe; field in EnumSet 132 universe = new java.lang.Enum[0];
|
/libcore/ojluni/src/test/java/util/EnumMap/ |
D | EnumMapBash.java | 57 Enum[] universe = enumClass.getEnumConstants(); in bash() local 63 int mapSize = universe.length * 7 / 8; in bash() 69 Enum[] perm = (Enum[]) universe.clone(); in bash() 114 for (int i=0; i<universe.length; i += 2) { in bash() 115 if (m.put((T)universe[i], (T)universe[i]) != null) in bash() 119 for (int i=0; i<universe.length; i++) in bash() 120 if (m.containsValue(universe[i]) != (i%2==0)) in bash() 122 if (m.put((T)universe[0], (T)universe[0]) == null) in bash()
|
/libcore/ojluni/src/test/java/util/EnumSet/ |
D | EnumSetBash.java | 83 Enum[] universe = EnumSet.allOf(enumClass).toArray(new Enum[0]); in bash() local 89 AddRandoms(s1, universe); in bash() 90 AddRandoms(s2, universe); in bash() 181 static <T extends Enum<T>> void AddRandoms(EnumSet<T> s, Enum[] universe) { in AddRandoms() argument 182 for (int i=0; i < universe.length * 2 / 3; i++) { in AddRandoms() 183 T e = (T) universe[rnd.nextInt(universe.length)]; in AddRandoms()
|