Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 220 for Conner (0.3 sec)

  1. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

    import java.util.Iterator;
    
    /**
     * Benchmarks {@link Joiner} against some common implementations of delimiter-based string joining.
     *
     * @author Adomas Paltanavicius
     */
    public class JoinerBenchmark {
    
      private static final String DELIMITER_STRING = ",";
      private static final char DELIMITER_CHARACTER = ',';
    
      private static final Joiner JOINER_ON_STRING = Joiner.on(DELIMITER_STRING);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractImmutableMapMapInterfaceTest.java

      }
    
      private static final Joiner JOINER = Joiner.on(", ");
    
      @Override
      protected final void assertMoreInvariants(Map<K, V> map) {
        // TODO: can these be moved to MapInterfaceTest?
        for (Entry<K, V> entry : map.entrySet()) {
          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractImmutableBiMapMapInterfaceTest.java

          assertEquals(entry.getKey(), bimap.inverse().get(entry.getValue()));
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
        assertEquals("[" + JOINER.join(map.entrySet()) + "]", map.entrySet().toString());
        assertEquals("[" + JOINER.join(map.keySet()) + "]", map.keySet().toString());
        assertEquals("[" + JOINER.join(map.values()) + "]", map.values().toString());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 16:16:28 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractImmutableMapMapInterfaceTest.java

      }
    
      private static final Joiner JOINER = Joiner.on(", ");
    
      @Override
      protected final void assertMoreInvariants(Map<K, V> map) {
        // TODO: can these be moved to MapInterfaceTest?
        for (Entry<K, V> entry : map.entrySet()) {
          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSinkTester.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.io.SourceSinkFactory.CharSinkFactory;
    
    import com.google.common.base.Joiner;
    import com.google.common.collect.ImmutableList;
    import java.io.IOException;
    import java.io.Writer;
    import java.lang.reflect.Method;
    import java.util.Map.Entry;
    import junit.framework.TestSuite;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java

    import org.junit.Ignore;
    
    /**
     * Base class for multiset collection tests.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class AbstractMultisetTester<E> extends AbstractCollectionTester<E> {
      protected final Multiset<E> getMultiset() {
        return (Multiset<E>) collection;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSizeTester.java

     * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class CollectionSizeTester<E> extends AbstractCollectionTester<E> {
      public void testSize() {
        assertEquals("size():", getNumElements(), collection.size());
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationTester.java

    import com.google.common.testing.SerializableTester;
    import org.junit.Ignore;
    
    /**
     * Basic reserialization test for collections.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class CollectionSerializationTester<E> extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserialize() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ConsumingQueueIterator.java

      ConsumingQueueIterator(Queue<T> queue) {
        this.queue = checkNotNull(queue);
      }
    
      @Override
      @CheckForNull
      protected T computeNext() {
        // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
        if (queue.isEmpty()) {
          return endOfData();
        }
        return queue.remove();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jan 21 14:48:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import java.util.HashSet;
    import java.util.Set;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public final class InvalidatableSetTest {
      Set<Integer> wrappedSet;
      Set<Integer> copyOfWrappedSet;
      InvalidatableSet<Integer> setToTest;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top