Searched refs:of (Results 1 - 14 of 14) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicMarkableReference.java2 * Written by Doug Lea with assistance from members of JCP JSR-166
19 * @param <V> The type of object referred to by this reference
30 static <T> Pair<T> of(T reference, boolean mark) { method in class:AtomicMarkableReference.Pair
45 pair = Pair.of(initialRef, initialMark);
49 * Returns the current value of the reference.
51 * @return the current value of the reference
58 * Returns the current value of the mark.
60 * @return the current value of the mark
67 * Returns the current values of both the reference and the mark.
70 * @param markHolder an array of siz
[all...]
H A DAtomicStampedReference.java2 * Written by Doug Lea with assistance from members of JCP JSR-166
19 * @param <V> The type of object referred to by this reference
30 static <T> Pair<T> of(T reference, int stamp) { method in class:AtomicStampedReference.Pair
45 pair = Pair.of(initialRef, initialStamp);
49 * Returns the current value of the reference.
51 * @return the current value of the reference
58 * Returns the current value of the stamp.
60 * @return the current value of the stamp
67 * Returns the current values of both the reference and the stamp.
70 * @param stampHolder an array of siz
[all...]
/libcore/luni/src/main/java/java/util/
H A DEnumSet.java6 * the License. You may obtain a copy of the License at
34 * Creates an empty enum set. The permitted elements are of type
39 * @return an empty enum set, with permitted elements of type {@code
56 * Creates an enum set filled with all the enum elements of the specified
72 * Creates an enum set. All the contained elements are of type
141 * six overloadings of the method. They accept from one to five elements
142 * respectively. The sixth one receives an arbitrary number of elements, and
143 * runs slower than those that only receive a fixed number of elements.
151 public static <E extends Enum<E>> EnumSet<E> of(E e) { method in class:EnumSet
159 * six overloadings of th
171 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2) { method in class:EnumSet
193 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3) { method in class:EnumSet
217 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4) { method in class:EnumSet
243 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4, E e5) { method in class:EnumSet
263 public static <E extends Enum<E>> EnumSet<E> of(E start, E... others) { method in class:EnumSet
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONTokener.java6 * You may obtain a copy of the License at
23 * encoded string into the corresponding object. Most clients of
38 * input string was valid JSON. All of the following syntax errors will be
41 * <li>End of line comments starting with {@code //} or {@code #} and ending
55 * <p>Each tokener may be used to parse a single JSON string. Instances of this
68 * The index of the next character to be returned by {@link #next}. When
97 throw syntaxError("End of input");
143 // skip a // end-of-line comment
154 * Skip a # hash end-of-line comment. The JSON RFC doesn't
196 * For strings that are free of escap
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DCharacterTest.java6 * You may obtain a copy of the License at
120 Character.UnicodeBlock.of(i);
125 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of(1));
126 assertEquals(Character.UnicodeBlock.HANGUL_JAMO, Character.UnicodeBlock.of(0x1100));
127 assertEquals(Character.UnicodeBlock.CYPRIOT_SYLLABARY, Character.UnicodeBlock.of(0x10800));
128 assertEquals(Character.UnicodeBlock.VARIATION_SELECTORS_SUPPLEMENT, Character.UnicodeBlock.of(0xe0100));
130 assertEquals(Character.UnicodeBlock.ANCIENT_GREEK_MUSICAL_NOTATION, Character.UnicodeBlock.of(0x1d200));
132 assertEquals(Character.UnicodeBlock.NKO, Character.UnicodeBlock.of(0x07c0));
134 assertEquals(Character.UnicodeBlock.SUNDANESE, Character.UnicodeBlock.of(0x1b80));
136 assertEquals(Character.UnicodeBlock.SAMARITAN, Character.UnicodeBlock.of(
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DEnumSetTest.java6 * You may obtain a copy of the License at
36 EnumSet<Roshambo> set = EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS);
51 EnumSet<Element> set = EnumSet.of(Element.H, Element.TB, Element.DY, Element.UUO);
60 * EnumSet<Roshambo> set = EnumSet.of(Roshambo.SPOCK);
82 * EnumSet<Roshambo> set = EnumSet.of(Roshambo.SCISSORS, Roshambo.ROCK)
93 assertEquals(EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS),
/libcore/
H A DDocs.mk2 # List of libcore directories to include in documentation.
12 # List of libcore javadoc source files
H A DAndroid.mk6 # You may obtain a copy of the License at
H A DCaCerts.mk6 # You may obtain a copy of the License at
H A DJavaLibrary.mk6 # You may obtain a copy of the License at
26 # The structure of each module is:
170 # This one's tricky. One of our tests needs to have a
311 # TODO list of missing javadoc, etc:
319 # for shared defintion of libcore_to_document
H A DNativeCode.mk6 # You may obtain a copy of the License at
/libcore/luni/src/test/java/tests/api/java/util/
H A DEnumSetTest.java6 * the License. You may obtain a copy of the License at
124 // which is more than the bits of Long
132 // which is more than twice of the bits of Long
154 assertEquals(EnumSet.of(HugeEnumCount.NO65, HugeEnumCount.NO128), set);
156 assertEquals(EnumSet.of(HugeEnumCount.NO65), set);
179 assertEquals("Size of enumSet should be 64", 64, enumSet.size());
365 assertEquals("Size of set should be 2", 2, set.size());
492 assertEquals("Size of set should be 63:", 63, set.size());
510 assertEquals("Size of se
[all...]
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...
/libcore/luni/src/main/java/java/lang/
H A DCharacter.java7 * the License. You may obtain a copy of the License at
25 * number of utility methods for working with characters.
28 * See the <a href="../util/Locale.html#locale_data">Locale data</a> section of
29 * the {@code Locale} documentation for details of the Unicode versions implemented by current
35 * <p>Unicode characters are referred to as <i>code points</i>. The range of valid
40 * supplementary range. A pair of {@code char} values that represent a
41 * supplementary character are made up of a <i>high surrogate</i> with a value
42 * range of 0xD800 to 0xDBFF and a <i>low surrogate</i> with a value range of
46 * point or a UTF-16 unit that's part of
1503 public static UnicodeBlock of(char c) { method in class:Character.UnicodeBlock
1511 public static UnicodeBlock of(int codePoint) { method in class:Character.UnicodeBlock
[all...]

Completed in 232 milliseconds