Home
last modified time | relevance | path

Searched refs:universe (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DRegularEnumSet.java44 RegularEnumSet(Class<E>elementType, Enum<?>[] universe) { in RegularEnumSet() argument
45 super(elementType, universe); in RegularEnumSet()
53 if (universe.length != 0) in addAll()
54 elements = -1L >>> -universe.length; in addAll()
58 if (universe.length != 0) { in complement()
60 elements &= -1L >>> -universe.length; // Mask unused bits in complement()
105 return (E) universe[Long.numberOfTrailingZeros(lastReturned)]; in next()
DEnumSet.java90 final Enum<?>[] universe; field in EnumSet
94 EnumSet(Class<E>elementType, Enum<?>[] universe) { in EnumSet() argument
96 this.universe = universe; in EnumSet()
109 Enum<?>[] universe = getUniverse(elementType); in noneOf() local
110 if (universe == null) in noneOf()
113 if (universe.length <= 64) in noneOf()
114 return new RegularEnumSet<>(elementType, universe); in noneOf()
116 return new JumboEnumSet<>(elementType, universe); in noneOf()
DJumboEnumSet.java49 JumboEnumSet(Class<E>elementType, Enum<?>[] universe) { in JumboEnumSet() argument
50 super(elementType, universe); in JumboEnumSet()
51 elements = new long[(universe.length + 63) >>> 6]; in JumboEnumSet()
73 elements[elements.length - 1] >>>= -universe.length; in addAll()
74 size = universe.length; in addAll()
80 elements[elements.length - 1] &= (-1L >>> -universe.length); in complement()
81 size = universe.length - size; in complement()
139 return (E) universe[(lastReturnedIndex << 6) in next()
/libcore/ojluni/annotations/hiddenapi/java/util/
DEnumSet.java35 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];