- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 179 for foo (0.11 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
Comparator<Foo> natural = Ordering.natural(); Comparator<Foo> reverse = Collections.reverseOrder(natural); Foo a = new Foo(1); Foo b = new Foo(1); assertThat(Comparators.min(a, b, reverse)).isSameInstanceAs(a); assertThat(Comparators.max(a, b, reverse)).isSameInstanceAs(a); } private static class Foo implements Comparable<Foo> { final Integer value;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Apr 11 08:42:51 GMT 2024 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java
assertFalse(entry("foo", 1).equals(control("bar", 1))); assertFalse(entry("foo", 1).equals(new Object())); assertFalse(entry("foo", 1).equals(null)); } public void testEqualsNull() { assertEquals(control(NE, 1), entry(NE, 1)); assertFalse(control(NE, 1).equals(entry(NE, 2))); assertFalse(entry(NE, 1).equals(control("bar", 1)));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ComparatorsTest.java
Comparator<Foo> natural = Ordering.natural(); Comparator<Foo> reverse = Collections.reverseOrder(natural); Foo a = new Foo(1); Foo b = new Foo(1); assertThat(Comparators.min(a, b, reverse)).isSameInstanceAs(a); assertThat(Comparators.max(a, b, reverse)).isSameInstanceAs(a); } private static class Foo implements Comparable<Foo> { final Integer value;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Apr 11 08:42:51 GMT 2024 - 6.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ObjectArraysTest.java
assertThat(result).asList().containsExactly("foo", "bar", "baz").inOrder(); } public void testAppendZeroElements() { String[] result = ObjectArrays.concat(new String[] {}, "foo"); assertThat(result).asList().contains("foo"); } public void testAppendOneElement() { String[] result = ObjectArrays.concat(new String[] {"foo"}, "bar");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 8.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java
public class RegularImmutableTableTest extends AbstractImmutableTableTest { private static final ImmutableSet<Cell<Character, Integer, String>> CELLS = ImmutableSet.of( Tables.immutableCell('a', 1, "foo"), Tables.immutableCell('b', 1, "bar"), Tables.immutableCell('a', 2, "baz")); private static final ImmutableSet<Character> ROW_SPACE = ImmutableSet.of('a', 'b');
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 6.3K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToInstanceMap.java
/** * Maps the specified class to the specified value. Does <i>not</i> associate this value with any * of the class's supertypes. * * <p>{@code putInstance(Foo.class, foo)} is equivalent to {@code * putInstance(TypeToken.of(Foo.class), foo)}. * * @return the value previously associated with this class (possibly {@code null}), or {@code * null} if there was no previous entry. */ @CanIgnoreReturnValue
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Sat Apr 22 01:15:23 GMT 2023 - 3.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/jar/JarFileUtilTest.java
*/ public void testToJarFilePath() throws Exception { final File f = new File("/Program Files/foo.jar"); final URL url = new URL("jar:" + f.toURI().toURL() + "!/"); final String root = new File("/").getCanonicalPath(); assertEquals(root + "Program Files" + File.separator + "foo.jar", JarFileUtil.toJarFilePath(url)); } /** * @throws Exception */
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
* * <p>For example: * * <pre>{@code * new ForwardingWrapperTester().testForwarding(Foo.class, new Function<Foo, Foo>() { * public Foo apply(Foo foo) { * return new ForwardingFoo(foo); * } * }); * }</pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 9.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
* * <p>For example: * * <pre>{@code * new ForwardingWrapperTester().testForwarding(Foo.class, new Function<Foo, Foo>() { * public Foo apply(Foo foo) { * return new ForwardingFoo(foo); * } * }); * }</pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible @ElementTypesAreNonnullByDefault
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 9.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CaseFormatTest.java
assertEquals("fooBar", LOWER_HYPHEN.to(LOWER_CAMEL, "foo-bar")); } public void testLowerHyphenToUpperCamel() { assertEquals("Foo", LOWER_HYPHEN.to(UPPER_CAMEL, "foo")); assertEquals("FooBar", LOWER_HYPHEN.to(UPPER_CAMEL, "foo-bar")); } public void testLowerHyphenToUpperUnderscore() { assertEquals("FOO", LOWER_HYPHEN.to(UPPER_UNDERSCORE, "foo"));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 8.7K bytes - Viewed (0)