Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 437 for reverse (0.18 sec)

  1. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.stringConverter().reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_reverse() {
        Converter<String, Long> converter = Longs.stringConverter();
        assertThat(converter.reverse().convert(1L)).isEqualTo("1");
        assertThat(converter.reverse().convert(0L)).isEqualTo("0");
        assertThat(converter.reverse().convert(-1L)).isEqualTo("-1");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

          assertEquals(expectedSpan, span);
        } catch (NoSuchElementException e) {
          assertNull(expectedSpan);
        }
    
        // test that asDescendingSetOfRanges is the reverse of asRanges
        assertEquals(Lists.reverse(asRanges), ImmutableList.copyOf(rangeSet.asDescendingSetOfRanges()));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.stringConverter().reverse().convert(null)).isNull();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Float.toString returns different value in GWT.
      public void testStringConverter_reverse() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.reverse().convert(1.0f)).isEqualTo("1.0");
        assertThat(converter.reverse().convert(0.0f)).isEqualTo("0.0");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return checkedCreate(nullCheckedTreeSet(elements)).descendingSet();
        }
    
        /** Sorts the elements in reverse natural order. */
        @Override
        public List<Integer> order(List<Integer> insertionOrder) {
          Collections.sort(insertionOrder, Ordering.<Integer>natural().reverse());
          return insertionOrder;
        }
      }
    
      private abstract static class AbstractContiguousSetGenerator
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

                        for (int i = elements.length - 1; i >= 0; i--) {
                          list.add(elements[i]);
                        }
                        return Lists.reverse(list);
                      }
                    })
                .named("Lists.reverse[ArrayList]")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.ALLOWS_NULL_VALUES,
                    ListFeature.GENERAL_PURPOSE)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

          assertEquals(expectedSpan, span);
        } catch (NoSuchElementException e) {
          assertNull(expectedSpan);
        }
    
        // test that asDescendingSetOfRanges is the reverse of asRanges
        assertEquals(Lists.reverse(asRanges), ImmutableList.copyOf(rangeSet.asDescendingSetOfRanges()));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThat(Shorts.stringConverter().reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_reverse() {
        Converter<String, Short> converter = Shorts.stringConverter();
        assertThat(converter.reverse().convert((short) 1)).isEqualTo("1");
        assertThat(converter.reverse().convert((short) 0)).isEqualTo("0");
        assertThat(converter.reverse().convert((short) -1)).isEqualTo("-1");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Ordering.java

     *       returned)
     * </ol>
     *
     * <p>Alas, {@link #reverse} is a little different. As you read backwards through a chain and
     * encounter a call to {@code reverse}, continue working backwards until a result is determined, and
     * then reverse that result.
     *
     * <h3>Additional notes</h3>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          List<String> list = asList(elements);
          Collections.reverse(list);
          return ImmutableList.copyOf(list).reverse();
        }
      }
    
      public static class ImmutableListHeadSubListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.stringConverter().reverse().convert(null)).isNull();
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testStringConverter_reverse() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.reverse().convert(1.0)).isEqualTo("1.0");
        assertThat(converter.reverse().convert(0.0)).isEqualTo("0.0");
    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)
Back to top