Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 484 for Klemenz (0.5 sec)

  1. android/guava/src/com/google/common/collect/EnumMultiset.java

      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
          throw new ClassCastException("Expected an " + type + " but got " + element);
        }
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/xml/DomUtil.java

        }
    
        /**
         * {@link Element}を文字列に変換します。
         *
         * @param element
         *            要素。{@literal null}であってはいけません
         * @return 変換された文字列
         */
        public static String toString(final Element element) {
            assertArgumentNotNull("element", element);
    
            final StringBuilder buf = new StringBuilder(1000);
            appendElement(element, buf);
            return new String(buf);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
        assertFalse(collection.contains(element));
        assertEquals(originalSize - 1, collection.size());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultInheritanceAssembler.java

                    for (Plugin element : tgt) {
                        Object key = getPluginKey().apply(element);
                        Plugin existing = master.get(key);
                        if (existing != null) {
                            element = mergePlugin(element, existing, sourceDominant, context);
    
                            master.put(key, element);
    
                            if (!pending.isEmpty()) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        }
    
        /**
         * Adds {@code element} to the {@code ImmutableSortedMultiset}.
         *
         * @param element the element to add
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code element} is null
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E element) {
          return addCopies(element, 1);
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        assertEquals("Should be able to peek() at first element", "A", peekingIterator.peek());
        assertEquals(
            "Should be able to peek() first element multiple times", "A", peekingIterator.peek());
        assertEquals(
            "next() should still return first element after peeking", "A", peekingIterator.next());
    
        assertEquals("Should be able to peek() at middle element", "B", peekingIterator.peek());
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterators.java

      /** Returns {@code true} if {@code iterator} contains {@code element}. */
      public static boolean contains(Iterator<?> iterator, @CheckForNull Object element) {
        if (element == null) {
          while (iterator.hasNext()) {
            if (iterator.next() == null) {
              return true;
            }
          }
        } else {
          while (iterator.hasNext()) {
            if (element.equals(iterator.next())) {
              return true;
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/LruHashSet.java

        /**
         * Returns true if this set contains the specified element.
         *
         * @param o
         *            element whose presence in this set is to be tested.
         * @return true if this set contains the specified element.
         */
        @Override
        public boolean contains(final Object o) {
            return map.containsKey(o);
        }
    
        /**
         * Adds the specified element to this set if it is not already present.
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        MinMaxPriorityQueue<Element> queue = MinMaxPriorityQueue.create();
        int range = Element.values().length;
        for (int iter = 0; iter < reduceIterationsIfGwt(1000); iter++) {
          for (int i = 0; i < 100; i++) {
            Element element = Element.values()[random.nextInt(range)];
            elements.add(element);
            queue.add(element);
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      // Query Operations
    
      /**
       * Returns the number of occurrences of {@code element} in this multiset.
       *
       * @param element the element to look for
       * @return the nonnegative number of occurrences of the element
       */
      @Override
      public int count(@CheckForNull Object element) {
        AtomicInteger existingCounter = Maps.safeGet(countMap, element);
        return (existingCounter == null) ? 0 : existingCounter.get();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top