Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 707 for reversed (0.22 seconds)

  1. android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import java.util.Iterator;
    
    /** An ordering that uses the reverse of the natural order of the values. */
    @GwtCompatible
    final class ReverseNaturalOrdering extends Ordering<Comparable<?>> implements Serializable {
      static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. 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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ReverseNaturalOrdering.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import java.util.Iterator;
    
    /** An ordering that uses the reverse of the natural order of the values. */
    @GwtCompatible
    final class ReverseNaturalOrdering extends Ordering<Comparable<?>> implements Serializable {
      static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3K bytes
    - Click Count (0)
  4. 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");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testReverse() {
        Ordering<Number> reverseOrder = numberOrdering.reverse();
        testComparator(reverseOrder, Integer.MAX_VALUE, 1, 0, -1, Integer.MIN_VALUE);
    
        new EqualsTester()
            .addEqualityGroup(reverseOrder, numberOrdering.reverse())
            .addEqualityGroup(Ordering.natural().reverse())
            .addEqualityGroup(Collections.reverseOrder())
            .testEquals();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testReverse() {
        Ordering<Number> reverseOrder = numberOrdering.reverse();
        testComparator(reverseOrder, Integer.MAX_VALUE, 1, 0, -1, Integer.MIN_VALUE);
    
        new EqualsTester()
            .addEqualityGroup(reverseOrder, numberOrdering.reverse())
            .addEqualityGroup(Ordering.natural().reverse())
            .addEqualityGroup(Collections.reverseOrder())
            .testEquals();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

    package com.google.common.collect.testing;
    
    import static com.google.common.collect.testing.Helpers.castOrCopyToList;
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static java.util.Collections.reverse;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.testing.DerivedCollectionGenerators.Bound;
    import com.google.common.collect.testing.DerivedCollectionGenerators.ForwardingTestMapGenerator;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 7K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ImmutableList.java

        return offset + size;
      }
    
      /**
       * Returns a view of this immutable list in reverse order. For example, {@code ImmutableList.of(1,
       * 2, 3).reverse()} is equivalent to {@code ImmutableList.of(3, 2, 1)}.
       *
       * @return a view of this immutable list in reverse order
       * @since 7.0
       */
      public ImmutableList<E> reverse() {
        return (size() <= 1) ? this : new ReverseImmutableList<E>(this);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  9. internal/grid/connection_test.go

    		for y := range hosts {
    			if x == y {
    				continue
    			}
    			c.Local = hosts[x]
    			c.Remote = hosts[y]
    			cReverse.Local = hosts[y]
    			cReverse.Remote = hosts[x]
    			if c.shouldConnect() == cReverse.shouldConnect() {
    				t.Errorf("shouldConnect(%q, %q) != shouldConnect(%q, %q)", hosts[x], hosts[y], hosts[y], hosts[x])
    			}
    			if c.shouldConnect() {
    				should++
    			}
    		}
    		if should < 10 {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  10. 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)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.4K bytes
    - Click Count (0)
Back to Top