Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 195 for index (0.24 sec)

  1. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
          // Kotlin native, see above
        }
    
        // The radix is used as an array index, so try a negative value.
        try {
          UnsignedInts.parseUnsignedInt("0", -1);
          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        }
    
        try {
          UnsignedLongs.parseUnsignedLong("0", Character.MAX_RADIX + 1);
          fail();
        } catch (NumberFormatException expected) {
        }
    
        // The radix is used as an array index, so try a negative value.
        try {
          UnsignedLongs.parseUnsignedLong("0", -1);
          fail();
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testToString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:36:17 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

          values.add(null);
        }
    
        this.values = values;
      }
    
      @Override
      final void collectOneValue(int index, @ParametricNullness V returnValue) {
        List<@Nullable Present<V>> localValues = values;
        if (localValues != null) {
          localValues.set(index, new Present<>(returnValue));
        }
      }
    
      @Override
      final void handleAllCompleted() {
        List<@Nullable Present<V>> localValues = values;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       * cancelled. For details on when this is called, see {@link #collectOneValue}.
       */
      private void collectValueFromNonCancelledFuture(int index, Future<? extends InputT> future) {
        try {
          // We get the result, even if collectOneValue is a no-op, so that we can fail fast.
          collectOneValue(index, getDone(future));
        } catch (ExecutionException e) {
          handleException(e.getCause());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        assertThrows(
            NumberFormatException.class,
            () -> UnsignedBytes.parseUnsignedByte("0", Character.MAX_RADIX + 1));
    
        // The radix is used as an array index, so try a negative value.
        assertThrows(NumberFormatException.class, () -> UnsignedBytes.parseUnsignedByte("0", -1));
      }
    
      public void testToString() {
        // We can easily afford to test this exhaustively.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

        throw new AssertionError();
      }
    
      @Override
      public ImmutableSet<E> elementSet() {
        throw new AssertionError();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        throw new AssertionError();
      }
    
      @Override
      boolean isPartialView() {
        throw new AssertionError();
      }
    
      @Override
      public int size() {
        throw new AssertionError();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/CharMatcher.java

            }
          }
        }
    
        @Override
        public boolean matches(char c) {
          int index = Arrays.binarySearch(rangeStarts, c);
          if (index >= 0) {
            return true;
          } else {
            index = ~index - 1;
            return index >= 0 && c <= rangeEnds[index];
          }
        }
    
        @Override
        public String toString() {
          return description;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Striped64.java

              }
              collide = false;
              continue; // Retry with expanded table
            }
            h ^= h << 13; // Rehash
            h ^= h >>> 17;
            h ^= h << 5;
            hc[0] = h; // Record index for next time
          } else if (busy == 0 && cells == as && casBusy()) {
            boolean init = false;
            try { // Initialize table
              if (cells == as) {
                Cell[] rs = new Cell[2];
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        boolean foundProblem = false;
        try {
          new NullPointerTester().testMethodParameter(new OneArg(), method, 0);
        } catch (AssertionError expected) {
          assertThat(expected.getMessage()).contains("index 0");
          assertThat(expected.getMessage()).contains("[null]");
          foundProblem = true;
        }
        assertTrue("Should report error when different exception is thrown", foundProblem);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        public void add(int index, E element) {
          synchronized (mutex) {
            delegate().add(index, element);
          }
        }
    
        @Override
        public boolean addAll(int index, Collection<? extends E> c) {
          synchronized (mutex) {
            return delegate().addAll(index, c);
          }
        }
    
        @Override
        public E get(int index) {
          synchronized (mutex) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 53.4K bytes
    - Viewed (0)
Back to top