Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for forwardPast (0.09 sec)

  1. cmd/metacache-entries.go

    		for i, entry := range m.o[:idx] {
    			metaDataPoolPut(entry.metadata)
    			m.o[i].metadata = nil
    		}
    	}
    
    	m.o = m.o[idx:]
    }
    
    // forwardPast will truncate m so only entries that are after s is in the list.
    func (m *metaCacheEntriesSorted) forwardPast(s string) {
    	if s == "" {
    		return
    	}
    	idx := sort.Search(len(m.o), func(i int) bool {
    		return m.o[i].name > s
    	})
    	if m.reuse {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Lists.java

        }
      }
    
      private static class ReverseList<T extends @Nullable Object> extends AbstractList<T> {
        private final List<T> forwardList;
    
        ReverseList(List<T> forwardList) {
          this.forwardList = checkNotNull(forwardList);
        }
    
        List<T> getForwardList() {
          return forwardList;
        }
    
        private int reverseIndex(int index) {
          int size = size();
          checkElementIndex(index, size);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

        }
    
        @Override
        public ImmutableList<E> reverse() {
          return forwardList;
        }
    
        @Override
        public boolean contains(@CheckForNull Object object) {
          return forwardList.contains(object);
        }
    
        @Override
        public int indexOf(@CheckForNull Object object) {
          int index = forwardList.lastIndexOf(object);
          return (index >= 0) ? reverseIndex(index) : -1;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

        }
    
        @Override
        public ImmutableList<E> reverse() {
          return forwardList;
        }
    
        @Override
        public boolean contains(@CheckForNull Object object) {
          return forwardList.contains(object);
        }
    
        @Override
        public int indexOf(@CheckForNull Object object) {
          int index = forwardList.lastIndexOf(object);
          return (index >= 0) ? reverseIndex(index) : -1;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top