Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for aConstant (0.07 sec)

  1. guava-tests/test/com/google/common/cache/TestingWeighers.java

      }
    
      static final class ConstantWeigher implements Weigher<Object, Object> {
        private final int constant;
    
        ConstantWeigher(int constant) {
          this.constant = constant;
        }
    
        @Override
        public int weigh(Object key, Object value) {
          return constant;
        }
      }
    
      static final class IntKeyWeigher implements Weigher<Integer, Object> {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

          return count.get();
        }
      }
    
      static final class ConstantLoader<K, V> extends CacheLoader<K, V> {
        private final V constant;
    
        ConstantLoader(V constant) {
          this.constant = constant;
        }
    
        @Override
        public V load(K key) {
          return constant;
        }
      }
    
      /**
       * Returns a {@code new Object()} for every request, and increments a counter for every request.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Enums.java

          throw new AssertionError(impossible);
        }
      }
    
      /**
       * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
       * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing
       * user input or falling back to a default enum constant. For example, {@code
       * Enums.getIfPresent(Country.class, countryInput).or(Country.DEFAULT);}
       *
       * @since 12.0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/LessThanBenchmark.java

      long[] xLongs;
      long[] yLongs;
    
      int[] constant;
    
      private static final long NONNEGATIVE_LONG_MASK = 0x7FFFFFFFFFFFFFFFL;
    
      @BeforeExperiment
      void setUp() {
        Random random = new Random(randomSeed);
        xInts = new int[SAMPLE_SIZE];
        yInts = new int[SAMPLE_SIZE];
        xLongs = new long[SAMPLE_SIZE];
        yLongs = new long[SAMPLE_SIZE];
        constant = new int[SAMPLE_SIZE];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Charsets.java

       *
       * <p><b>Note:</b> this constant is now unnecessary and should be treated as deprecated; use
       * {@link StandardCharsets#ISO_8859_1} instead.
       *
       */
      public static final Charset ISO_8859_1 = StandardCharsets.ISO_8859_1;
    
      /**
       * UTF-8: eight-bit UCS Transformation Format.
       *
       * <p><b>Note:</b> this constant is now unnecessary and should be treated as deprecated; use
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 25 23:55:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Enums.java

          throw new AssertionError(impossible);
        }
      }
    
      /**
       * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
       * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing
       * user input or falling back to a default enum constant. For example, {@code
       * Enums.getIfPresent(Country.class, countryInput).or(Country.DEFAULT);}
       *
       * @since 12.0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/PacMac.java

            byte[] keybytes = key.getEncoded();
            Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");
            cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(keybytes, "AES"), new IvParameterSpec(ZERO_IV, 0, ZERO_IV.length));
            if ( constant.length != cipher.getBlockSize() ) {
                constant = expandNFold(constant, cipher.getBlockSize());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2_string.go

    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[invalidVersionType-0]
    	_ = x[ObjectType-1]
    	_ = x[DeleteType-2]
    	_ = x[LegacyType-3]
    	_ = x[lastVersionType-4]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 02 19:29:16 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Platform.java

         * type.
         *
         * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant
         * won't be cleared as long as the enum constant is referenced somewhere, and the enum constant
         * is referenced somewhere for as long as the enum class is loaded. *Maybe in theory* the enum
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. cmd/rebalstatus_string.go

    // Code generated by "stringer -type=rebalStatus -trimprefix=rebal erasure-server-pool-rebalance.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[rebalNone-0]
    	_ = x[rebalStarted-1]
    	_ = x[rebalCompleted-2]
    	_ = x[rebalStopped-3]
    	_ = x[rebalFailed-4]
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 19:36:57 UTC 2022
    - 795 bytes
    - Viewed (0)
Back to top