Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for cark (0.17 sec)

  1. guava/src/com/google/common/base/Strings.java

        return new String(array);
      }
    
      /**
       * Returns the longest string {@code prefix} such that {@code a.toString().startsWith(prefix) &&
       * b.toString().startsWith(prefix)}, taking care not to split surrogate pairs. If {@code a} and
       * {@code b} have no common prefix, returns the empty string.
       *
       * @since 11.0
       */
      public static String commonPrefix(CharSequence a, CharSequence b) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        assertEquals(distinct, getMultiset().elementSet().size());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_occurrences_unsupported_absent() {
        // notice: we don't care whether it succeeds, or fails with UOE
        try {
          assertEquals(
              "multiset.remove(absent, 2) didn't return 0 or throw an exception",
              0,
              getMultiset().remove(e3(), 2));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    minding their own business!'
    
      `Ah, well!  It means much the same thing,' said the Duchess,
    digging her sharp little chin into Alice's shoulder as she added,
    `and the moral of THAT is--"Take care of the sense, and the
    sounds will take care of themselves."'
    
      `How fond she is of finding morals in things!' Alice thought to
    herself.
    
      `I dare say you're wondering why I don't put my arm round your
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      private final int[] array;
    
      /*
       * TODO(kevinb): evaluate the trade-offs of going bimorphic to save these two fields from most
       * instances. Note that the instances that would get smaller are the right set to care about
       * optimizing, because the rest have the option of calling `trimmed`.
       */
    
      private final transient int start; // it happens that we only serialize instances where this is 0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * message must mention two values that were associated with the duplicate key in two different
       * calls to Builder.put (though we don't really care *which* two values if there were more than
       * two). These considerations lead us to have a field of type DuplicateKey in the Builder, which
       * will remember the first duplicate key we encountered. All later calls to buildOrThrow() can
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

      private final double[] array;
    
      /*
       * TODO(kevinb): evaluate the trade-offs of going bimorphic to save these two fields from most
       * instances. Note that the instances that would get smaller are the right set to care about
       * optimizing, because the rest have the option of calling `trimmed`.
       */
    
      private final transient int start; // it happens that we only serialize instances where this is 0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/TypeResolver.java

       * they are declared by the same {@link java.lang.reflect.GenericDeclaration} and have the same
       * name, even if their bounds differ.
       *
       * <p>While resolving a type variable from a {@code var -> type} map, we don't care whether the
       * type variable's bound has been partially resolved. As long as the type variable "identity"
       * matches.
       *
       * <p>On the other hand, if for example we are resolving {@code List<A extends B>} to {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        this.allowsNullKeys = allowsNullKeys;
        this.allowsNullValues = allowsNullValues;
        this.supportsIteratorRemove = supportsIteratorRemove;
      }
    
      /**
       * Used by tests that require a map, but don't care whether it's populated or not.
       *
       * @return a new map instance.
       */
      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LongMath.java

            // subtracting two nonnegative longs can't overflow
            // cmpRemToHalfDivisor has the same sign as compare(abs(rem), abs(q) / 2).
            if (cmpRemToHalfDivisor == 0) { // exactly on the half mark
              increment = (mode == HALF_UP || (mode == HALF_EVEN && (div & 1) != 0));
            } else {
              increment = cmpRemToHalfDivisor > 0; // closer to the UP value
            }
            break;
          default:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteStreams.java

        public int available() throws IOException {
          return (int) Math.min(in.available(), left);
        }
    
        // it's okay to mark even if mark isn't supported, as reset won't work
        @Override
        public synchronized void mark(int readLimit) {
          in.mark(readLimit);
          mark = left;
        }
    
        @Override
        public int read() throws IOException {
          if (left == 0) {
            return -1;
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top