Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for 42 (0.05 sec)

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

        Function<String, @Nullable Integer> function = Functions.forMap(map, 42);
    
        assertEquals(1, function.apply("One").intValue());
        assertEquals(42, function.apply("Two").intValue());
        assertEquals(3, function.apply("Three").intValue());
        assertNull(function.apply("Null"));
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forMap(map, 42))
            .addEqualityGroup(Functions.forMap(map))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE;
      }
    
      @Benchmark
      void longEqualJava(int reps) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        byte[] dest = new byte[4];
        HashCode.fromInt(42).writeBytesTo(dest, 0, 4);
        assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest));
      }
    
      public void testLongWriteBytesTo() {
        byte[] dest = new byte[8];
        HashCode.fromLong(42).writeBytesTo(dest, 0, 8);
        assertTrue(Arrays.equals(HashCode.fromLong(42).asBytes(), dest));
      }
    
      private static final HashCode HASH_ABCD =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashCodeTest.java

        byte[] dest = new byte[4];
        HashCode.fromInt(42).writeBytesTo(dest, 0, 4);
        assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest));
      }
    
      public void testLongWriteBytesTo() {
        byte[] dest = new byte[8];
        HashCode.fromLong(42).writeBytesTo(dest, 0, 8);
        assertTrue(Arrays.equals(HashCode.fromLong(42).asBytes(), dest));
      }
    
      private static final HashCode HASH_ABCD =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/InternersTest.java

        Interner<String> pool = Interners.newStrongInterner();
        assertThrows(NullPointerException.class, () -> pool.intern(null));
      }
    
      public void testStrong_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
            Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/InternersTest.java

        Interner<String> pool = Interners.newStrongInterner();
        assertThrows(NullPointerException.class, () -> pool.intern(null));
      }
    
      public void testStrong_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
            Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            assertEquals("", result.get());
        }
    
        public void test_ofNullable_withInteger() {
            Integer testValue = 42;
            OptionalEntity<Integer> result = OptionalUtil.ofNullable(testValue);
    
            assertNotNull(result);
            assertTrue(result.isPresent());
            assertEquals(Integer.valueOf(42), result.get());
        }
    
        public void test_ofNullable_withNullInteger() {
            Integer testValue = null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isCancelled());
      }
    
      public void testSetValue_simpleThreaded() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
        assertTrue(future.set(42));
        // Later attempts to set the future should return false.
        assertFalse(future.set(23));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.<Integer>create()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

            rawtypeToWildcard(MinMaxPriorityQueue.maximumSize(42)).create();
        assertEquals(11, queue.capacity());
        assertEquals(42, queue.maximumSize);
        checkNatural(queue);
      }
    
      public void testCreation_comparator_maximumSize() {
        MinMaxPriorityQueue<Integer> queue =
            MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).maximumSize(42).create();
        assertEquals(11, queue.capacity());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<String, @Nullable Integer> function = Functions.forMap(map, 42);
    
        assertEquals(1, function.apply("One").intValue());
        assertEquals(42, function.apply("Two").intValue());
        assertEquals(3, function.apply("Three").intValue());
        assertNull(function.apply("Null"));
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forMap(map, 42))
            .addEqualityGroup(Functions.forMap(map))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top