Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for Dorner (0.27 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. guava-tests/test/com/google/common/collect/GeneralRangeTest.java

          for (Integer j : IN_ORDER_VALUES) {
            assertFalse(range.contains(j));
          }
        }
      }
    
      public void testCreateEmptyRangeOpenClosedSucceeds() {
        for (Integer i : IN_ORDER_VALUES) {
          GeneralRange<@Nullable Integer> range = GeneralRange.range(ORDERING, i, OPEN, i, CLOSED);
          for (Integer j : IN_ORDER_VALUES) {
            assertFalse(range.contains(j));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

            .withFeatures(
                CollectionFeature.GENERAL_PURPOSE, CollectionFeature.KNOWN_ORDER, CollectionSize.ANY)
            .suppressing(suppressForLinkedBlockingQueue())
            .createTestSuite();
      }
    
      // Not specifying KNOWN_ORDER for PriorityQueue and PriorityBlockingQueue
      // even though they do have it, because our tests interpret KNOWN_ORDER to
      // also mean that the iterator returns the head element first, which those
      // don't.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

          }
    
          @Override
          public List<String> order(List<String> insertionOrder) {
            List<String> order = Lists.newArrayList();
            for (String s : insertionOrder) {
              int index = order.indexOf(s);
              if (index == -1) {
                order.add(s);
              } else {
                order.add(index, s);
              }
            }
            return order;
          }
        };
      }
    
      public void testCreate() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.nio.file.attribute.PosixFilePermission.OWNER_EXECUTE;
    import static java.nio.file.attribute.PosixFilePermission.OWNER_READ;
    import static java.nio.file.attribute.PosixFilePermission.OWNER_WRITE;
    import static org.junit.Assert.assertThrows;
    
    import java.io.File;
    import java.io.IOException;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java

        return new String[length];
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>By default, returns the supplied elements in their given order; however, generators for
       * containers with a known order other than insertion order must override this method.
       *
       * <p>Note: This default implementation is overkill (but valid) for an unordered container. An
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

        return putBytesInternal(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN));
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putBytes(ByteBuffer readBuffer) {
        ByteOrder order = readBuffer.order();
        try {
          readBuffer.order(ByteOrder.LITTLE_ENDIAN);
          return putBytesInternal(readBuffer);
        } finally {
          readBuffer.order(order);
        }
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
Back to top