Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getSubSet (0.06 sec)

  1. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        int index = tailIndex(element, false);
        return (index == size()) ? null : elements.get(index);
      }
    
      @Override
      ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
        return getSubSet(0, headIndex(toElement, inclusive));
      }
    
      int headIndex(E toElement, boolean inclusive) {
        int index = Collections.binarySearch(elements, checkNotNull(toElement), comparator());
        if (index >= 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        if (from == to) {
          return emptyMultiset(comparator());
        } else if (from == 0 && to == length) {
          return this;
        } else {
          RegularImmutableSortedSet<E> subElementSet = elementSet.getSubSet(from, to);
          return new RegularImmutableSortedMultiset<>(
              subElementSet, cumulativeCounts, offset + from, to - from);
        }
      }
    
      @Override
      boolean isPartialView() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        if (fromIndex == 0 && toIndex == size()) {
          return this;
        } else if (fromIndex == toIndex) {
          return emptyMap(comparator());
        } else {
          return new ImmutableSortedMap<>(
              keySet.getSubSet(fromIndex, toIndex), valueList.subList(fromIndex, toIndex));
        }
      }
    
      /**
       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys are less
       * than {@code toKey}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedMap.java

        if (fromIndex == 0 && toIndex == size()) {
          return this;
        } else if (fromIndex == toIndex) {
          return emptyMap(comparator());
        } else {
          return new ImmutableSortedMap<>(
              keySet.getSubSet(fromIndex, toIndex), valueList.subList(fromIndex, toIndex));
        }
      }
    
      /**
       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys are less
       * than {@code toKey}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top