Home
last modified time | relevance | path

Searched refs:e2 (Results 1 – 25 of 47) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
DSet.java482 static <E> Set<E> of(E e1, E e2) { in of() argument
483 return new ImmutableCollections.Set2<>(e1, e2); in of()
500 static <E> Set<E> of(E e1, E e2, E e3) { in of() argument
501 return new ImmutableCollections.SetN<>(e1, e2, e3); in of()
519 static <E> Set<E> of(E e1, E e2, E e3, E e4) { in of() argument
520 return new ImmutableCollections.SetN<>(e1, e2, e3, e4); in of()
539 static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5) { in of() argument
540 return new ImmutableCollections.SetN<>(e1, e2, e3, e4, e5); in of()
560 static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5, E e6) { in of() argument
561 return new ImmutableCollections.SetN<>(e1, e2, e3, e4, e5, in of()
[all …]
DList.java842 static <E> List<E> of(E e1, E e2) { in of() argument
843 return new ImmutableCollections.List12<>(e1, e2); in of()
860 static <E> List<E> of(E e1, E e2, E e3) { in of() argument
861 return new ImmutableCollections.ListN<>(e1, e2, e3); in of()
879 static <E> List<E> of(E e1, E e2, E e3, E e4) { in of() argument
880 return new ImmutableCollections.ListN<>(e1, e2, e3, e4); in of()
899 static <E> List<E> of(E e1, E e2, E e3, E e4, E e5) { in of() argument
900 return new ImmutableCollections.ListN<>(e1, e2, e3, e4, e5); in of()
920 static <E> List<E> of(E e1, E e2, E e3, E e4, E e5, E e6) { in of() argument
921 return new ImmutableCollections.ListN<>(e1, e2, e3, e4, e5, in of()
[all …]
DDualPivotQuicksort.java290 int e2 = e3 - seventh; in sort() local
291 int e1 = e2 - seventh; in sort()
296 if (a[e2] < a[e1]) { int t = a[e2]; a[e2] = a[e1]; a[e1] = t; } in sort()
298 if (a[e3] < a[e2]) { int t = a[e3]; a[e3] = a[e2]; a[e2] = t; in sort()
299 if (t < a[e1]) { a[e2] = a[e1]; a[e1] = t; } in sort()
302 if (t < a[e2]) { a[e3] = a[e2]; a[e2] = t; in sort()
303 if (t < a[e1]) { a[e2] = a[e1]; a[e1] = t; } in sort()
308 if (t < a[e2]) { a[e3] = a[e2]; a[e2] = t; in sort()
309 if (t < a[e1]) { a[e2] = a[e1]; a[e1] = t; } in sort()
318 if (a[e1] != a[e2] && a[e2] != a[e3] && a[e3] != a[e4] && a[e4] != a[e5]) { in sort()
[all …]
DEnumSet.java234 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2) { in of() argument
237 result.add(e2); in of()
257 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3) { in of() argument
260 result.add(e2); in of()
282 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4) { in of() argument
285 result.add(e2); in of()
309 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4, in of() argument
314 result.add(e2); in of()
DAbstractSequentialList.java216 Iterator<? extends E> e2 = c.iterator(); in addAll() local
217 while (e2.hasNext()) { in addAll()
218 e1.add(e2.next()); in addAll()
DArrays.java4192 Object e2 = a2[i]; in deepEquals() local
4194 if (e1 == e2) in deepEquals()
4200 boolean eq = deepEquals0(e1, e2); in deepEquals()
4208 static boolean deepEquals0(Object e1, Object e2) { in deepEquals0() argument
4211 if (e1 instanceof Object[] && e2 instanceof Object[]) in deepEquals0()
4212 eq = deepEquals ((Object[]) e1, (Object[]) e2); in deepEquals0()
4213 else if (e1 instanceof byte[] && e2 instanceof byte[]) in deepEquals0()
4214 eq = equals((byte[]) e1, (byte[]) e2); in deepEquals0()
4215 else if (e1 instanceof short[] && e2 instanceof short[]) in deepEquals0()
4216 eq = equals((short[]) e1, (short[]) e2); in deepEquals0()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() local
54 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
74 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() local
75 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
78 assertEquals(e2, e); in testEquals()
79 assertEquals(e2.hashCode(), e.hashCode()); in testEquals()
82 assertEquals(e2, s2); in testEquals()
83 assertEquals(e2.hashCode(), s2.hashCode()); in testEquals()
92 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testNotEquals() local
94 assertFalse(e2.equals(e)); in testNotEquals()
[all …]
DTreeSubSetTest.java344 Object e2 = q.lower(six); in testLower() local
345 assertEquals(five, e2); in testLower()
362 Object e2 = q.higher(zero); in testHigher() local
363 assertEquals(one, e2); in testHigher()
380 Object e2 = q.floor(six); in testFloor() local
381 assertEquals(five, e2); in testFloor()
398 Object e2 = q.ceiling(zero); in testCeiling() local
399 assertEquals(one, e2); in testCeiling()
823 Object e2 = q.lower(m6); in testDescendingLower() local
824 assertEquals(m5, e2); in testDescendingLower()
[all …]
DConcurrentSkipListSubSetTest.java347 Object e2 = q.lower(six); in testLower() local
348 assertEquals(five, e2); in testLower()
365 Object e2 = q.higher(zero); in testHigher() local
366 assertEquals(one, e2); in testHigher()
383 Object e2 = q.floor(six); in testFloor() local
384 assertEquals(five, e2); in testFloor()
401 Object e2 = q.ceiling(zero); in testCeiling() local
402 assertEquals(one, e2); in testCeiling()
837 Object e2 = q.lower(m6); in testDescendingLower() local
838 assertEquals(m5, e2); in testDescendingLower()
[all …]
DTreeMapTest.java366 Map.Entry e2 = map.lowerEntry(six);
367 assertEquals(five, e2.getKey());
384 Map.Entry e2 = map.higherEntry(zero);
385 assertEquals(one, e2.getKey());
402 Map.Entry e2 = map.floorEntry(six);
403 assertEquals(five, e2.getKey());
420 Map.Entry e2 = map.ceilingEntry(zero);
421 assertEquals(one, e2.getKey());
438 Object e2 = q.lowerKey(six);
439 assertEquals(five, e2);
[all …]
DTreeSubMapTest.java252 Map.Entry e2 = map.lowerEntry(six);
253 assertEquals(five, e2.getKey());
270 Map.Entry e2 = map.higherEntry(zero);
271 assertEquals(one, e2.getKey());
288 Map.Entry e2 = map.floorEntry(six);
289 assertEquals(five, e2.getKey());
306 Map.Entry e2 = map.ceilingEntry(zero);
307 assertEquals(one, e2.getKey());
804 Map.Entry e2 = map.lowerEntry(m6);
805 assertEquals(m5, e2.getKey());
[all …]
DConcurrentSkipListSubMapTest.java365 Map.Entry e2 = map.lowerEntry(six);
366 assertEquals(five, e2.getKey());
383 Map.Entry e2 = map.higherEntry(zero);
384 assertEquals(one, e2.getKey());
401 Map.Entry e2 = map.floorEntry(six);
402 assertEquals(five, e2.getKey());
419 Map.Entry e2 = map.ceilingEntry(zero);
420 assertEquals(one, e2.getKey());
1039 Map.Entry e2 = map.lowerEntry(m6);
1040 assertEquals(m5, e2.getKey());
[all …]
DConcurrentSkipListMapTest.java453 Map.Entry e2 = map.lowerEntry(six);
454 assertEquals(five, e2.getKey());
471 Map.Entry e2 = map.higherEntry(zero);
472 assertEquals(one, e2.getKey());
489 Map.Entry e2 = map.floorEntry(six);
490 assertEquals(five, e2.getKey());
507 Map.Entry e2 = map.ceilingEntry(zero);
508 assertEquals(one, e2.getKey());
557 Object e2 = q.lowerKey(six);
558 assertEquals(five, e2);
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DEntryTest.java76 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() local
77 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
97 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() local
98 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
101 assertEquals(e2, e); in testEquals()
102 assertEquals(e2.hashCode(), e.hashCode()); in testEquals()
105 assertEquals(e2, s2); in testEquals()
106 assertEquals(e2.hashCode(), s2.hashCode()); in testEquals()
115 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testNotEquals() local
117 assertFalse(e2.equals(e)); in testNotEquals()
[all …]
DTreeSubSetTest.java367 Object e2 = q.lower(six); in testLower() local
368 assertEquals(five, e2); in testLower()
385 Object e2 = q.higher(zero); in testHigher() local
386 assertEquals(one, e2); in testHigher()
403 Object e2 = q.floor(six); in testFloor() local
404 assertEquals(five, e2); in testFloor()
421 Object e2 = q.ceiling(zero); in testCeiling() local
422 assertEquals(one, e2); in testCeiling()
846 Object e2 = q.lower(m6); in testDescendingLower() local
847 assertEquals(m5, e2); in testDescendingLower()
[all …]
DConcurrentSkipListSubSetTest.java370 Object e2 = q.lower(six); in testLower() local
371 assertEquals(five, e2); in testLower()
388 Object e2 = q.higher(zero); in testHigher() local
389 assertEquals(one, e2); in testHigher()
406 Object e2 = q.floor(six); in testFloor() local
407 assertEquals(five, e2); in testFloor()
424 Object e2 = q.ceiling(zero); in testCeiling() local
425 assertEquals(one, e2); in testCeiling()
860 Object e2 = q.lower(m6); in testDescendingLower() local
861 assertEquals(m5, e2); in testDescendingLower()
[all …]
DTreeMapTest.java389 Map.Entry e2 = map.lowerEntry(six);
390 assertEquals(five, e2.getKey());
407 Map.Entry e2 = map.higherEntry(zero);
408 assertEquals(one, e2.getKey());
425 Map.Entry e2 = map.floorEntry(six);
426 assertEquals(five, e2.getKey());
443 Map.Entry e2 = map.ceilingEntry(zero);
444 assertEquals(one, e2.getKey());
461 Object e2 = q.lowerKey(six);
462 assertEquals(five, e2);
[all …]
DTreeSubMapTest.java275 Map.Entry e2 = map.lowerEntry(six);
276 assertEquals(five, e2.getKey());
293 Map.Entry e2 = map.higherEntry(zero);
294 assertEquals(one, e2.getKey());
311 Map.Entry e2 = map.floorEntry(six);
312 assertEquals(five, e2.getKey());
329 Map.Entry e2 = map.ceilingEntry(zero);
330 assertEquals(one, e2.getKey());
827 Map.Entry e2 = map.lowerEntry(m6);
828 assertEquals(m5, e2.getKey());
[all …]
DConcurrentSkipListMapTest.java476 Map.Entry e2 = map.lowerEntry(six);
477 assertEquals(five, e2.getKey());
494 Map.Entry e2 = map.higherEntry(zero);
495 assertEquals(one, e2.getKey());
512 Map.Entry e2 = map.floorEntry(six);
513 assertEquals(five, e2.getKey());
530 Map.Entry e2 = map.ceilingEntry(zero);
531 assertEquals(one, e2.getKey());
580 Object e2 = q.lowerKey(six);
581 assertEquals(five, e2);
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DSet.annotated.java70 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2) { throw new Runtime… in of() argument
72 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
74 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
76 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
78 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
80 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
82 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
84 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
86 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
DList.annotated.java94 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2) { throw new Runtime… in of() argument
96 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
98 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
100 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
102 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
104 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
106 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
108 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
110 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
/libcore/luni/src/test/java/libcore/java/util/
DInvalidPropertiesFormatExceptionTest.java36 InvalidPropertiesFormatException e2 = new InvalidPropertiesFormatException(e); in testConstructorArgs() local
37 assertSame(e, e2.getCause()); in testConstructorArgs()
38 assertEquals(e.toString(), e2.getMessage()); in testConstructorArgs()
/libcore/ojluni/annotations/hiddenapi/java/util/
DEnumSet.java70 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2) { in of() argument
74 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2, E e3) { in of() argument
78 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2, E e3, E e4) { in of() argument
83 E e1, E e2, E e3, E e4, E e5) { in of() argument
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderFactory.java200 } catch (IllegalAccessException e2) { in loadClass()
202 " found but cannot be loaded", e2); in loadClass()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java140 } catch (IOException e2) { in recordException()
141 throw new RuntimeException("Exception writing error file!", e2); in recordException()

12