Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 198 for contra (0.17 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code byte}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Byte#parseByte(String)})
       * @since 13.0
       */
      @CanIgnoreReturnValue
      public static byte parseUnsignedByte(String string) {
        return parseUnsignedByte(string, 10);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RangeMap.java

    import javax.annotation.CheckForNull;
    
    /**
     * A mapping from disjoint nonempty ranges to non-null values. Queries look up the value associated
     * with the range (if any) that contains a specified key.
     *
     * <p>In contrast to {@link RangeSet}, no "coalescing" is done of {@linkplain
     * Range#isConnected(Range) connected} ranges, even if they are mapped to the same value.
     *
     * @author Louis Wasserman
     * @since 14.0
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingNavigableSet.java

     * elements, if there is no comparator) to test element equality. As a result, if the comparator is
     * not consistent with equals, some of the standard implementations may violate the {@code Set}
     * contract.
     *
     * <p>The {@code standard} methods and the collection views they return are not guaranteed to be
     * thread-safe, even when all of the methods that they depend on are thread-safe.
     *
     * @author Louis Wasserman
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ReaderInputStream.java

      }
    
      // TODO(chrisn): Consider trying to encode/flush directly to the argument byte
      // buffer when possible.
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        // Obey InputStream contract.
        checkPositionIndexes(off, off + len, b.length);
        if (len == 0) {
          return 0;
        }
    
        // The rest of this method implements the process described by the CharsetEncoder javadoc.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/TempFileCreator.java

    @ElementTypesAreNonnullByDefault
    abstract class TempFileCreator {
      static final TempFileCreator INSTANCE = pickSecureCreator();
    
      /**
       * @throws IllegalStateException if the directory could not be created (to implement the contract
       *     of {@link Files#createTempDir()}, such as if the system does not support creating temporary
       *     directories securely
       */
      abstract File createTempDir();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/ByteStreams.java

       *
       * <p>Note that if the given output stream was not empty or is modified after the {@code
       * ByteArrayDataOutput} is created, the contract for {@link ByteArrayDataOutput#toByteArray} will
       * not be honored (the bytes returned in the byte array may not be exactly what was written via
       * calls to {@code ByteArrayDataOutput}).
       *
       * @since 17.0
       */
    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)
  7. android/guava/src/com/google/common/math/PairedStats.java

      private final double sumOfProductsOfDeltas;
    
      /**
       * Internal constructor. Users should use {@link PairedStatsAccumulator#snapshot}.
       *
       * <p>To ensure that the created instance obeys its contract, the parameters should satisfy the
       * following constraints. This is the callers responsibility and is not enforced here.
       *
       * <ul>
       *   <li>Both {@code xStats} and {@code yStats} must have the same {@code count}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/BytesTest.java

        testRotate(new byte[] {1}, 0, 0, 1, new byte[] {1});
        testRotate(new byte[] {1}, 1, 0, 1, new byte[] {1});
        testRotate(new byte[] {1}, 1, 1, 1, new byte[] {1});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(new byte[] {0, 1, 2, 3, 4, 5, 6}, -6, 1, 6, new byte[] {0, 2, 3, 4, 5, 1, 6});
        testRotate(new byte[] {0, 1, 2, 3, 4, 5, 6}, -1, 1, 6, new byte[] {0, 2, 3, 4, 5, 1, 6});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        Object[] copyTo = new Object[size];
        System.arraycopy(queue, 0, copyTo, 0, size);
        return copyTo;
      }
    
      /**
       * Returns the comparator used to order the elements in this queue. Obeys the general contract of
       * {@link PriorityQueue#comparator}, but returns {@link Ordering#natural} instead of {@code null}
       * to indicate natural ordering.
       */
      public Comparator<? super E> comparator() {
        return minHeap.ordering;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

            if (cmp < 0) {
              elements[unique++] = elements[i];
            } else if (cmp > 0) {
              throw new AssertionError(
                  "Comparator " + comparator + " compare method violates its contract");
            }
          }
          Arrays.fill(elements, unique, n, null);
          n = unique;
        }
    
        /**
         * Adds {@code element} to the {@code ImmutableSortedSet}. If the {@code ImmutableSortedSet}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
Back to top