Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,299 for Case (0.14 sec)

  1. guava/src/com/google/common/base/Stopwatch.java

        switch (unit) {
          case NANOSECONDS:
            return "ns";
          case MICROSECONDS:
            return "\u03bcs"; // μs
          case MILLISECONDS:
            return "ms";
          case SECONDS:
            return "s";
          case MINUTES:
            return "min";
          case HOURS:
            return "h";
          case DAYS:
            return "d";
          default:
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        setDelays();
      }
    
      /**
       * Extra checks that get done for all test cases.
       *
       * <p>Triggers test case failure if any thread assertions have failed, by rethrowing, in the test
       * harness thread, any exception recorded earlier by threadRecordFailure.
       *
       * <p>Triggers test case failure if interrupt status is set in the main thread.
       */
      @Override
      public void tearDown() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        this.graph = createGraph(edgeType);
      }
    
      private static MutableGraph<Integer> createGraph(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return GraphBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
            return GraphBuilder.directed().allowsSelfLoops(true).build();
          default:
            throw new IllegalStateException("Unexpected edge type: " + edgeType);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

            Operation op = operations[random.nextInt(operations.length)];
            switch (op) {
              case ADD:
                {
                  int delta = random.nextInt(10);
                  multiset.add(key, delta);
                  deltas[keyIndex] += delta;
                  break;
                }
              case SET_COUNT:
                {
                  int newValue = random.nextInt(3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     * the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        return copyOf(elements);
      }
    
      @JsMethod
      public static <E> ImmutableSet<E> copyOf(E[] elements) {
        checkNotNull(elements);
        switch (elements.length) {
          case 0:
            return of();
          case 1:
            return of(elements[0]);
          default:
            return create(elements);
        }
      }
    
      public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableList.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkElementIndex;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableSet.java

        return delegate.toArray(other);
      }
    
      @Override
      public String toString() {
        return delegate.toString();
      }
    
      // TODO(cpovirk): equals(), as well, in case it's any faster than Sets.equalsImpl?
    
      @Override
      public int hashCode() {
        return delegate.hashCode();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/BaseEncoding.java

     * the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.math.IntMath.divide;
    import static com.google.common.math.IntMath.log2;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TopKSelector.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top