Searched refs:universe (Results 1 – 4 of 4) sorted by relevance
44 RegularEnumSet(Class<E>elementType, Enum<?>[] universe) { in RegularEnumSet() argument45 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()
90 final Enum<?>[] universe; field in EnumSet94 EnumSet(Class<E>elementType, Enum<?>[] universe) { in EnumSet() argument96 this.universe = universe; in EnumSet()109 Enum<?>[] universe = getUniverse(elementType); in noneOf() local110 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()
49 JumboEnumSet(Class<E>elementType, Enum<?>[] universe) { in JumboEnumSet() argument50 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()
35 EnumSet(java.lang.Class<E> elementType, java.lang.Enum<?>[] universe) { in EnumSet() argument129 final java.lang.Enum<?>[] universe; field in EnumSet132 universe = new java.lang.Enum[0];