Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Klemenz (0.15 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       * is fine with that.
       */
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
       * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive.
       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

                        int size = elements.length;
                        // Remove last element, if size > 1
                        Set<String> set1 =
                            (size > 1)
                                ? Sets.newHashSet(Arrays.asList(elements).subList(0, size - 1))
                                : Sets.newHashSet(elements);
                        // Remove first element, if size > 0
                        Set<String> set2 =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

        try {
          Iterators.getOnlyElement(iterator);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
        }
      }
    
      public void testGetOnlyElement_noDefault_fiveElements() {
        Iterator<String> iterator = asList("one", "two", "three", "four", "five").iterator();
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        public int setCount(@ParametricNullness E element, int count) {
          synchronized (mutex) {
            return delegate().setCount(element, count);
          }
        }
    
        @Override
        public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
          synchronized (mutex) {
            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

          int size,
          HashMap<Object, Object> referenceMap,
          HashMap<Object, Object> map1,
          HashMap<Object, Object> map2)
          throws Exception {
        // Only start measuring table size after the first element inserted, to
        // deal with empty-map optimization.
        map1.put(0, null);
    
        int initialBuckets = bucketsOf(map1);
    
        for (int i = 1; i < size; i++) {
          map1.put(i, null);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

          int size,
          HashMap<Object, Object> referenceMap,
          HashMap<Object, Object> map1,
          HashMap<Object, Object> map2)
          throws Exception {
        // Only start measuring table size after the first element inserted, to
        // deal with empty-map optimization.
        map1.put(0, null);
    
        int initialBuckets = bucketsOf(map1);
    
        for (int i = 1; i < size; i++) {
          map1.put(i, null);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

        public E last() {
          SortedSet<E> sortedUnfiltered = (SortedSet<E>) unfiltered;
          while (true) {
            E element = sortedUnfiltered.last();
            if (predicate.apply(element)) {
              return element;
            }
            sortedUnfiltered = sortedUnfiltered.headSet(element);
          }
        }
      }
    
      @GwtIncompatible // NavigableSet
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Preconditions.java

       * is fine with that.
       */
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
       * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive.
       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

        public boolean contains(@CheckForNull Object element) {
          return multimap.containsKey(element);
        }
    
        @Override
        public Iterator<K> iterator() {
          return Maps.keyIterator(multimap.entries().iterator());
        }
    
        @Override
        public int count(@CheckForNull Object element) {
          Collection<V> values = Maps.safeGet(multimap.asMap(), element);
          return (values == null) ? 0 : values.size();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        try {
          Iterators.getOnlyElement(iterator);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
        }
      }
    
      public void testGetOnlyElement_noDefault_fiveElements() {
        Iterator<String> iterator = asList("one", "two", "three", "four", "five").iterator();
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
Back to top