Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 448 for element (0.17 sec)

  1. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

       *
       * <p>Unlike {@code HashSet}, this class does NOT allow {@code null} to be used as an element. The
       * set is serializable.
       *
       * @param elements the elements that the set should contain
       * @return a new thread-safe set containing those elements (minus duplicates)
       * @throws NullPointerException if {@code elements} or any of its contents is null
       * @since 15.0
       */
    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)
  3. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                        List<Integer> columnKeys = Lists.newArrayList();
                        for (Object element : elements) {
                          @SuppressWarnings("unchecked")
                          Cell<String, Integer, Character> cell =
                              (Cell<String, Integer, Character>) element;
                          columnKeys.add(cell.getColumnKey());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      @Override
      @CheckForNull
      public E lower(E element) {
        return forward.higher(element);
      }
    
      @Override
      @CheckForNull
      public E floor(E element) {
        return forward.ceiling(element);
      }
    
      @Override
      @CheckForNull
      public E ceiling(E element) {
        return forward.floor(element);
      }
    
      @Override
      @CheckForNull
      public E higher(E element) {
        return forward.lower(element);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java

      public void testPoll_size1() {
        assertEquals("size1Queue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    
      @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testPoll_sizeMany() {
        assertEquals("sizeManyQueue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        public Strings() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super("b", "a", "c", "d", "e");
        }
    
        // for testing SortedSet and SortedMap methods
        public static final String BEFORE_FIRST = "\0";
        public static final String BEFORE_FIRST_2 = "\0\0";
        public static final String MIN_ELEMENT = "a";
        public static final String AFTER_LAST = "z";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        public Strings() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super("b", "a", "c", "d", "e");
        }
    
        // for testing SortedSet and SortedMap methods
        public static final String BEFORE_FIRST = "\0";
        public static final String BEFORE_FIRST_2 = "\0\0";
        public static final String MIN_ELEMENT = "a";
        public static final String AFTER_LAST = "z";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableList.java

      // This reference is used both by the custom field serializer, and by the
      // GWT compiler to infer the elements of the lists that needs to be
      // serialized.
      E element;
    
      SingletonImmutableList(E element) {
        this.delegate = singletonList(checkNotNull(element));
        this.element = element;
      }
    
      @Override
      List<E> delegateList() {
        return delegate;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashSet.java

        int[] entries = requireEntries();
        @Nullable Object[] elements = requireElements();
        int srcIndex = size() - 1;
        if (dstIndex < srcIndex) {
          // move last entry to deleted spot
          Object object = elements[srcIndex];
          elements[dstIndex] = object;
          elements[srcIndex] = null;
    
          // move the last entry to the removed spot, just like we moved the element
          entries[dstIndex] = entries[srcIndex];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

        return new String[length];
      }
    
      @Override
      public final String[] createValueArray(int length) {
        return new String[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
      public Iterable<Entry<String, String>> order(List<Entry<String, String>> insertionOrder) {
        return insertionOrder;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top