- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 941 for reversed (0.08 sec)
-
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java
} private boolean determineVersionMatch(String version) { String test = version; boolean reverse = false; if (test.startsWith("!")) { reverse = true; test = test.substring(1); } boolean result = Os.OS_VERSION.equals(test); if (reverse) { return !result; } else { return result; } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java
assertEquals(GeneralRange.all(ORDERING.reverse()), GeneralRange.all(ORDERING).reverse()); assertEquals( GeneralRange.downTo(ORDERING.reverse(), 3, CLOSED), GeneralRange.upTo(ORDERING, 3, CLOSED).reverse()); assertEquals( GeneralRange.upTo(ORDERING.reverse(), 3, OPEN), GeneralRange.downTo(ORDERING, 3, OPEN).reverse()); assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ElementOrderTest.java
MutableGraph<Integer> graph = GraphBuilder.directed() .nodeOrder(ElementOrder.sorted(Ordering.<Integer>natural().reverse())) .build(); addNodes(graph); assertThat(graph.nodeOrder()) .isEqualTo(ElementOrder.sorted(Ordering.<Integer>natural().reverse())); assertThat(graph.nodes()).containsExactly(4, 3, 1).inOrder(); } // Edge order tests @Test
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 8.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
assertThat(max(a, b)).isSameInstanceAs(a); } public void testMinMaxComparator() { Comparator<Integer> reverse = reverseOrder(); assertThat(min(1, 2, reverse)).isEqualTo(2); assertThat(min(2, 1, reverse)).isEqualTo(2); assertThat(max(1, 2, reverse)).isEqualTo(1); assertThat(max(2, 1, reverse)).isEqualTo(1); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
new EqualsTester() .addEqualityGroup(STR_TO_LONG, STR_TO_LONG.reverse().reverse()) .addEqualityGroup(STR_TO_LONG.reverse(), STR_TO_LONG.reverse()) .testEquals(); } public void testReverseReverse() { Converter<String, Long> converter = STR_TO_LONG; assertEquals(converter, converter.reverse().reverse()); } public void testApply() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 01 16:09:28 UTC 2024 - 8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CaseFormatTest.java
assertEquals("FOO_BAR", UPPER_UNDERSCORE.converterTo(UPPER_CAMEL).reverse().convert("FooBar")); assertEquals("FOO_BAR", UPPER_UNDERSCORE.converterTo(LOWER_CAMEL).reverse().convert("fooBar")); assertEquals("FooBar", UPPER_CAMEL.converterTo(UPPER_UNDERSCORE).reverse().convert("FOO_BAR")); assertEquals("fooBar", LOWER_CAMEL.converterTo(UPPER_UNDERSCORE).reverse().convert("FOO_BAR")); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu May 04 09:41:29 UTC 2023 - 8.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); assertEquals("CHEETO", converter.reverse().convert(TestEnum.CHEETO)); assertEquals("HONDA", converter.reverse().convert(TestEnum.HONDA)); assertEquals("POODLE", converter.reverse().convert(TestEnum.POODLE)); } @J2ktIncompatible @GwtIncompatible // stringConverter
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java
} } boolean reverse = false; if (jdk.startsWith("!")) { reverse = true; jdk = jdk.substring(1); } if (getJdkVersion().startsWith(jdk)) { return !reverse; } else { return reverse; } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java
SampleElements<Entry<K, V>> samples = generator.samples(); return new SampleElements<>( reverse(samples.e0()), reverse(samples.e1()), reverse(samples.e2()), reverse(samples.e3()), reverse(samples.e4())); } private Entry<V, K> reverse(Entry<K, V> entry) { checkNotNull(entry); return mapEntry(entry.getValue(), entry.getKey()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ReverseOrdering.java
import java.io.Serializable; import java.util.Iterator; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** An ordering that uses the reverse of a given order. */ @GwtCompatible(serializable = true) @ElementTypesAreNonnullByDefault final class ReverseOrdering<T extends @Nullable Object> extends Ordering<T> implements Serializable {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 3.2K bytes - Viewed (0)