- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 126 for reorder (0.14 sec)
-
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
} public void testValues() { ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4)); Set<Integer> values = bimap.values(); assertEquals(Sets.newHashSet(1, 2, 3, 4), values); assertThat(values).containsExactly(1, 2, 3, 4).inOrder(); } public void testDoubleInverse() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 21.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
w.println(""); w.println(" world "); w.println(""); w.close(); Files.readLines(temp, Charsets.UTF_8, collect); assertThat(collect.getResult()).containsExactly("hello", "", " world ", "").inOrder(); LineProcessor<List<String>> collectNonEmptyLines = new LineProcessor<List<String>>() { List<String> collector = new ArrayList<>(); @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
// now we'll get the varargs overload ImmutableSet<String> set = ImmutableSet.of("a", "b", "c", "c", "c", "c", "b", "b", "a", "a", "c", "c", "c", "a"); assertThat(set).containsExactly("a", "b", "c").inOrder(); } public void testCreation_arrayOfArray() { String[] array = new String[] {"a"}; Set<String[]> set = ImmutableSet.<String[]>of(array); assertEquals(Collections.singleton(array), set); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
/** * Records an exception so that it can be rethrown later in the test harness thread, triggering a * test case failure. Only the first failure is recorded; subsequent calls to this method from * within the same test have no effect. */ public void threadRecordFailure(Throwable t) { threadFailure.compareAndSet(null, t); } public void setUp() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 37.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
list.set(0, (double) 2); assertThat(array).isEqualTo(new double[] {(double) 2, (double) 1}); array[1] = (double) 3; assertThat(list).containsExactly((double) 2, (double) 3).inOrder(); } public void testAsList_toArray_roundTrip() { double[] array = {(double) 0, (double) 1, (double) 2}; List<Double> list = Doubles.asList(array); double[] newArray = Doubles.toArray(list);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 31.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
List<Long> list = Longs.asList(array); list.set(0, (long) 2); assertThat(array).isEqualTo(new long[] {(long) 2, (long) 1}); array[1] = (long) 3; assertThat(list).containsExactly((long) 2, (long) 3).inOrder(); } public void testAsList_toArray_roundTrip() { long[] array = {(long) 0, (long) 1, (long) 2}; List<Long> list = Longs.asList(array); long[] newArray = Longs.toArray(list);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 30K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
list.set(0, (double) 2); assertThat(array).isEqualTo(new double[] {(double) 2, (double) 1}); array[1] = (double) 3; assertThat(list).containsExactly((double) 2, (double) 3).inOrder(); } public void testAsList_toArray_roundTrip() { double[] array = {(double) 0, (double) 1, (double) 2}; List<Double> list = Doubles.asList(array); double[] newArray = Doubles.toArray(list);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 31.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/LongsTest.java
List<Long> list = Longs.asList(array); list.set(0, (long) 2); assertThat(array).isEqualTo(new long[] {(long) 2, (long) 1}); array[1] = (long) 3; assertThat(list).containsExactly((long) 2, (long) 3).inOrder(); } public void testAsList_toArray_roundTrip() { long[] array = {(long) 0, (long) 1, (long) 2}; List<Long> list = Longs.asList(array); long[] newArray = Longs.toArray(list);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 30K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java
assertThat(elementSet).containsExactly("a", "b", "c", "d", "e", "f").inOrder(); SortedSet<String> subset = elementSet.subSet("b", "f"); assertThat(subset).containsExactly("b", "c", "d", "e").inOrder(); assertTrue(subset.remove("c")); assertThat(elementSet).containsExactly("a", "b", "d", "e", "f").inOrder(); assertThat(subset).containsExactly("b", "d", "e").inOrder(); assertEquals(10, ms.size());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 12.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
writeLockC = readWriteLockC.writeLock(); CycleDetectingLockFactory.WithExplicitOrdering<MyOrder> factory2 = newInstanceWithExplicitOrdering(MyOrder.class, Policies.THROW); lock1 = factory2.newReentrantLock(MyOrder.FIRST); lock2 = factory2.newReentrantLock(MyOrder.SECOND); lock3 = factory2.newReentrantLock(MyOrder.THIRD); CycleDetectingLockFactory.WithExplicitOrdering<OtherOrder> factory3 =
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.1K bytes - Viewed (0)