Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 457 for pconstants (0.14 sec)

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

        checkNonnegative(expectedSize, "expectedSize");
        return new Builder<>(expectedSize);
      }
    
      /**
       * A builder for creating immutable bimap instances, especially {@code public static final} bimaps
       * ("constant bimaps"). Example:
       *
       * <pre>{@code
       * static final ImmutableBiMap<String, Integer> WORD_TO_INT =
       *     new ImmutableBiMap.Builder<String, Integer>()
       *         .put("one", 1)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  2. LICENSE

    that what they have is not the original version, so that the original
    author's reputation will not be affected by problems that might be
    introduced by others.
    
      Finally, software patents pose a constant threat to the existence of
    any free program.  We wish to make sure that a company cannot
    effectively restrict the users of a free program by obtaining a
    restrictive license from a patent holder.  Therefore, we insist that
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Jan 18 20:25:38 UTC 2016
    - 25.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Ordering.java

      }
    
      /**
       * Returns an arbitrary ordering over all objects, for which {@code compare(a, b) == 0} implies
       * {@code a == b} (identity equality). There is no meaning whatsoever to the order imposed, but it
       * is constant for the life of the VM.
       *
       * <p>Because the ordering is identity-based, it is not "consistent with {@link
       * Object#equals(Object)}" as defined by {@link Comparator}. Use caution when building a {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Functions.constant;
    import static com.google.common.base.MoreObjects.toStringHelper;
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      }
    
      public void testIndex_nullKey() {
        List<Integer> values = Arrays.asList(1, 2);
        assertThrows(
            NullPointerException.class, () -> Multimaps.index(values, Functions.constant(null)));
      }
    
      @GwtIncompatible(value = "untested")
      public void testTransformValues() {
        SetMultimap<String, Integer> multimap =
            ImmutableSetMultimap.of("a", 2, "b", -3, "b", 3, "a", 4, "c", 6);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        return new Builder<>(Ordering.natural());
      }
    
      /**
       * A builder for creating immutable multiset instances, especially {@code public static final}
       * multisets ("constant multisets"). Example:
       *
       * <pre>{@code
       * public static final ImmutableSortedMultiset<Bean> BEANS =
       *     new ImmutableSortedMultiset.Builder<Bean>(colorComparator())
       *         .addCopies(Bean.COCOA, 4)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableList.java

        return new ImmutableList.Builder<>(expectedSize);
      }
    
      /**
       * A builder for creating immutable list instances, especially {@code public static final} lists
       * ("constant lists"). Example:
       *
       * <pre>{@code
       * public static final ImmutableList<Color> GOOGLE_COLORS
       *     = new ImmutableList.Builder<Color>()
       *         .addAll(WEBSAFE_COLORS)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Ordering.java

      }
    
      /**
       * Returns an arbitrary ordering over all objects, for which {@code compare(a, b) == 0} implies
       * {@code a == b} (identity equality). There is no meaning whatsoever to the order imposed, but it
       * is constant for the life of the VM.
       *
       * <p>Because the ordering is identity-based, it is not "consistent with {@link
       * Object#equals(Object)}" as defined by {@link Comparator}. Use caution when building a {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        new EqualsTester()
            .addEqualityGroup(
                comparator, DECREASING_INTEGER.onResultOf(StringLengthFunction.StringLength))
            .addEqualityGroup(DECREASING_INTEGER.onResultOf(Functions.constant(1)))
            .addEqualityGroup(Ordering.natural())
            .testEquals();
        reserializeAndAssert(comparator);
        assertEquals("Ordering.natural().reverse().onResultOf(StringLength)", comparator.toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/OrderingTest.java

        new EqualsTester()
            .addEqualityGroup(
                comparator, DECREASING_INTEGER.onResultOf(StringLengthFunction.StringLength))
            .addEqualityGroup(DECREASING_INTEGER.onResultOf(Functions.constant(1)))
            .addEqualityGroup(Ordering.natural())
            .testEquals();
        reserializeAndAssert(comparator);
        assertEquals("Ordering.natural().reverse().onResultOf(StringLength)", comparator.toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top