Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 89 for getLong (0.05 seconds)

  1. src/main/java/org/codelibs/fess/suggest/util/MapValueExtractor.java

         * @return The Long value, or null if the key doesn't exist or value is null
         * @throws NumberFormatException if the value cannot be parsed as a Long
         */
        public static Long getLong(final Map<String, Object> map, final String key) {
            return getLong(map, key, null);
        }
    
        /**
         * Gets a Long value from the map with a default value.
         *
         * @param map The source map
         * @param key The key to look up
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/util/MapValueExtractorTest.java

            map.put("int", 456);
            map.put("string", "789");
    
            assertEquals(Long.valueOf(123L), MapValueExtractor.getLong(map, "long"));
            assertEquals(Long.valueOf(456L), MapValueExtractor.getLong(map, "int"));
            assertEquals(Long.valueOf(789L), MapValueExtractor.getLong(map, "string"));
        }
    
        @Test
        public void testGetLong_withNullAndMissingKey() {
            Map<String, Object> map = new HashMap<>();
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

        }
      }
    
      private static LittleEndianBytes makeGetter() {
        try {
          /*
           * UnsafeByteArray uses Unsafe.getLong() in an unsupported way, which is known to cause
           * crashes on Android when running in 32-bit mode. For maximum safety, we shouldn't use
           * Unsafe.getLong() at all, but the performance benefit on x86_64 is too great to ignore, so
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

          super(CHUNK_SIZE);
          this.h1 = seed;
          this.h2 = seed;
          this.length = 0;
        }
    
        @Override
        protected void process(ByteBuffer bb) {
          long k1 = bb.getLong();
          long k2 = bb.getLong();
          bmix64(k1, k2);
          length += CHUNK_SIZE;
        }
    
        private void bmix64(long k1, long k2) {
          h1 ^= mixK1(k1);
    
          h1 = Long.rotateLeft(h1, 27);
          h1 += h2;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/SuggestWordsApiTests.java

            JsonPath jsonPath = JsonPath.from(response);
            assertTrue(jsonPath.getInt("record_count") >= 0);
            assertTrue(jsonPath.getInt("page_size") >= 0);
            assertTrue(jsonPath.getLong("query_time") >= 0);
        }
    
        @Test
        public void testSuggestWords_pageSizeDefault() {
            Map<String, String> params = new HashMap<>();
            params.put("q", "a");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

          addressAsLong = getEmbeddedIPv4ClientAddress(ip6).hashCode();
        } else {
          // Just extract the high 64 bits (assuming the rest is user-modifiable).
          addressAsLong = ByteBuffer.wrap(ip6.getAddress(), 0, 8).getLong();
        }
    
        // Many strategies for hashing are possible. This might suffice for now.
        int coercedHash = murmur3_32_fixed().hashLong(addressAsLong).asInt();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java

            assertTrue(Modifier.isPrivate(serialVersionField.getModifiers()));
            serialVersionField.setAccessible(true);
            assertEquals(1L, serialVersionField.getLong(null));
        }
    
        /**
         * Test that all label constants follow the naming convention
         */
        @Test
        public void test_labelConstantsNamingConvention() throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/primitives/UnsignedBytes.java

             */
            for (i = 0; i < strideLimit; i += stride) {
              long lw = theUnsafe.getLong(left, BYTE_ARRAY_BASE_OFFSET + (long) i);
              long rw = theUnsafe.getLong(right, BYTE_ARRAY_BASE_OFFSET + (long) i);
              if (lw != rw) {
                if (BIG_ENDIAN) {
                  return Long.compareUnsigned(lw, rw);
                }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/action/FessMessagesTest.java

        private long getSerialVersionUID() {
            try {
                java.lang.reflect.Field field = FessMessages.class.getDeclaredField("serialVersionUID");
                field.setAccessible(true);
                return field.getLong(null);
            } catch (Exception e) {
                fail("Failed to get serialVersionUID: " + e.getMessage());
                return -1;
            }
        }
    
        // Test error message methods without parameters
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 28.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertEquals(6, getDone(transformedFuture).intValue());
    
        // Repeated calls yield the same value even though the function's behavior
        // changes
        holder.value = 3;
        assertEquals(6, getDone(transformedFuture).intValue());
        assertEquals(7, adder.apply(4).intValue());
    
        // Once more, with feeling.
        holder.value = 4;
        assertEquals(6, getDone(transformedFuture).intValue());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
Back to Top