Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 286 for Case (2.97 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSet.java

        switch (n) {
          case 0:
            return of();
          case 1:
            @SuppressWarnings("unchecked") // safe; elements contains only E's
            // requireNonNull is safe because the first `n` elements are non-null.
            E elem = (E) requireNonNull(elements[0]);
            return of(elem);
          default:
            // continue below to handle the general case
        }
        int tableSize = chooseTableSize(n);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/Striped64.java

            } finally {
              busy = 0;
            }
            if (init) break;
          } else if (casBase(v = base, fn(v, x))) break; // Fall back on using base
        }
      }
    
      /** Sets base and all cells to the given value. */
      final void internalReset(long initialValue) {
        Cell[] as = cells;
        base = initialValue;
        if (as != null) {
          int n = as.length;
          for (int i = 0; i < n; ++i) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Converter.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.NullnessCasts.uncheckedCastNullableTToT;
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CheckReturnValue;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Lists.java

    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.checkPositionIndex;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.base.Preconditions.checkState;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableTable.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.Beta;
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.MoreObjects;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMap.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.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      }
    
      private static <E> ImmutableList<E> copyFromCollection(Collection<? extends E> collection) {
        Object[] elements = collection.toArray();
        switch (elements.length) {
          case 0:
            return of();
          case 1:
            @SuppressWarnings("unchecked") // safe because it came from `collection`
            E element = (E) elements[0];
            return of(element);
          default:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/net/InternetDomainName.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Ascii;
    import com.google.common.base.CharMatcher;
    import com.google.common.base.Joiner;
    import com.google.common.base.Optional;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        List<String> list = ImmutableList.sortedCopyOf(String.CASE_INSENSITIVE_ORDER, c);
        assertEquals(asList("a", "A", "b", "c"), list);
      }
    
      public void testSortedCopyOf_empty() {
        Collection<String> c = MinimalCollection.of();
        List<String> list = ImmutableList.sortedCopyOf(String.CASE_INSENSITIVE_ORDER, c);
        assertEquals(asList(), list);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Collections2.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
Back to top