Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 6,596 for _return (0.12 sec)

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

          comparator2 = comparator((SortedSet<?>) elements);
        } else if (elements instanceof SortedIterable) {
          comparator2 = ((SortedIterable<?>) elements).comparator();
        } else {
          return false;
        }
        return comparator.equals(comparator2);
      }
    
      @SuppressWarnings("unchecked")
      // if sortedSet.comparator() is null, the set must be naturally ordered
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 30 10:33:07 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            return max(0, data.size() + delta);
          }
    
          @Override
          public T get(int index) {
            return data.get(index);
          }
    
          @Override
          public T set(int index, T element) {
            return data.set(index, element);
          }
    
          @Override
          public boolean add(T element) {
            return data.add(element);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. internal/s3select/jstream/scratch.go

    import (
    	"unicode/utf8"
    )
    
    type scratch struct {
    	data []byte
    	fill int
    }
    
    // reset scratch buffer
    func (s *scratch) reset() { s.fill = 0 }
    
    // bytes returns the written contents of scratch buffer
    func (s *scratch) bytes() []byte { return s.data[0:s.fill] }
    
    // grow scratch buffer
    func (s *scratch) grow() {
    	ndata := make([]byte, cap(s.data)*2)
    	copy(ndata, s.data)
    	s.data = ndata
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 758 bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractIterator.java

          case DONE:
            return false;
          case READY:
            return true;
          default:
        }
        return tryToComputeNext();
      }
    
      private boolean tryToComputeNext() {
        state = State.FAILED; // temporary pessimism
        next = computeNext();
        if (state != State.DONE) {
          state = State.READY;
          return true;
        }
        return false;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/TestLogHandler.java

        synchronized (lock) {
          list.clear();
        }
      }
    
      /** Returns a snapshot of the logged records. */
      /*
       * TODO(cpovirk): consider higher-level APIs here (say, assertNoRecordsLogged(),
       * getOnlyRecordLogged(), getAndClearLogRecords()...)
       *
       * TODO(cpovirk): consider renaming this method to reflect that it takes a snapshot (and/or return
       * an ImmutableList)
       */
      public List<LogRecord> getStoredLogRecords() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 20:53:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbWatchHandle.java

         * {@link jcifs.Configuration#getNotifyBufferSize()}).
         * If the server cannot fulfill the request because the changes did not fit the buffer
         * it will return an empty list of changes.
         * 
         * @return changes since the last invocation
         * @throws CIFSException
         */
        List<FileNotifyInformation> watch () throws CIFSException;
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  7. internal/s3select/csv/reader.go

    		if err != nil {
    			r.err = err
    			return err
    		}
    		if !utf8.Valid(b) {
    			return errInvalidTextEncodingError()
    		}
    		reader := newReader(bytes.NewReader(b))
    		record, err := reader.Read()
    		if err != nil {
    			r.err = err
    			if err != io.EOF {
    				r.err = errCSVParsingError(err)
    				return errCSVParsingError(err)
    			}
    			return err
    		}
    
    		if r.args.FileHeaderInfo == use {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/CaseFormat.java

        @Override
        String normalizeWord(String word) {
          return Ascii.toLowerCase(word);
        }
    
        @Override
        String convert(CaseFormat format, String s) {
          if (format == LOWER_UNDERSCORE) {
            return s.replace('-', '_');
          }
          if (format == UPPER_UNDERSCORE) {
            return Ascii.toUpperCase(s.replace('-', '_'));
          }
          return super.convert(format, s);
        }
      },
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  9. internal/bucket/bandwidth/reader.go

    		need = int(math.Min(float64(tokens), float64(need)))
    	}
    	err = r.throttle.WaitN(r.ctx, tokens)
    	if err != nil {
    		return
    	}
    	n, err = r.r.Read(buf[:need])
    	if err != nil {
    		r.lastErr = err
    		return
    	}
    	r.m.updateMeasurement(r.opts.BucketOptions, uint64(tokens))
    	return
    }
    
    // NewMonitoredReader returns reference to a monitored reader that throttles reads to configured bandwidth for the
    // bucket.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 14:57:31 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. internal/s3select/simdj/record.go

    			return nil, err
    		}
    		return sql.FromFloat(v), nil
    	case simdjson.TypeInt:
    		v, err := iter.Int()
    		if err != nil {
    			return nil, err
    		}
    		return sql.FromInt(v), nil
    	case simdjson.TypeUint:
    		v, err := iter.Int()
    		if err != nil {
    			// Can't fit into int, convert to float.
    			v, err := iter.Float()
    			return sql.FromFloat(v), err
    		}
    		return sql.FromInt(v), nil
    	case simdjson.TypeBool:
    		v, err := iter.Bool()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top