Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 280 for enim (0.16 sec)

  1. guava-tests/test/com/google/common/base/EnumsTest.java

    /**
     * Tests for {@link Enums}.
     *
     * @author Steve McKay
     */
    @GwtIncompatible
    @J2ktIncompatible
    public class EnumsTest extends TestCase {
    
      private enum TestEnum {
        CHEETO,
        HONDA,
        POODLE,
      }
    
      private enum OtherEnum {}
    
      public void testGetIfPresent() {
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

      @Param({"1000", "100000"})
      private int size;
    
      @Param WhereToDiffer whereToDiffer;
    
      @Param EqualsImplementation equalsImpl;
    
      private enum WhereToDiffer {
        ONE_PERCENT_IN,
        LAST_BYTE,
        NOT_AT_ALL;
      }
    
      private enum EqualsImplementation {
        ANDING_BOOLEANS {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

      @Param({"1000", "100000"})
      private int size;
    
      @Param WhereToDiffer whereToDiffer;
    
      @Param EqualsImplementation equalsImpl;
    
      private enum WhereToDiffer {
        ONE_PERCENT_IN,
        LAST_BYTE,
        NOT_AT_ALL;
      }
    
      private enum EqualsImplementation {
        ANDING_BOOLEANS {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

        final Optional<BinaryNode> right;
    
        BinaryNode(int x, Optional<BinaryNode> left, Optional<BinaryNode> right) {
          this.x = x;
          this.left = left;
          this.right = right;
        }
      }
    
      enum Topology {
        BALANCED {
          @Override
          Optional<BinaryNode> createTree(int size, Random rng) {
            if (size == 0) {
              return Optional.absent();
            } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 26 19:18:53 GMT 2019
    - 4.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AnEnum.java

    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * A sample enumerated type we use for testing.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public enum AnEnum {
      A,
      B,
      C,
      D,
      E,
      F
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 854 bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java

    import com.google.common.collect.testing.SampleElements.Enums;
    import java.util.Collections;
    import java.util.List;
    import java.util.Set;
    
    /**
     * An abstract TestSetGenerator for generating sets containing enum values.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestEnumSetGenerator implements TestSetGenerator<AnEnum> {
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java

    /**
     * Optional features of classes derived from {@link Multiset}.
     *
     * @author Louis Wasserman
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum MultisetFeature implements Feature<Multiset> {
      /**
       * Indicates that elements from {@code Multiset.entrySet()} update to reflect changes in the
       * backing multiset.
       */
      ENTRIES_ARE_VIEWS;
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

          assertNotSame(
              "Expected to return fresh instance for: " + mutableClass,
              instance,
              ArbitraryInstances.get(mutableClass));
        }
      }
    
      private enum EmptyEnum {}
    
      private enum Direction {
        UP,
        DOWN
      }
    
      public interface SomeInterface {}
    
      public abstract static class SomeAbstractClass {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/RemovalCause.java

    import java.util.concurrent.ConcurrentMap;
    
    /**
     * The reason why a cached entry was removed.
     *
     * @author Charles Fry
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public enum RemovalCause {
      /**
       * The entry was manually removed by the user. This can result from the user invoking {@link
       * Cache#invalidate}, {@link Cache#invalidateAll(Iterable)}, {@link Cache#invalidateAll()}, {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    
      /** All the ways to create an ImmutableMap. */
      enum ConstructionPathway implements Construction<Map<Object, Object>> {
        COPY_OF_MAP {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            Map<Object, Object> sourceMap = new LinkedHashMap<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top