Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for intValue (0.09 sec)

  1. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertFalse(task.isDone());
        task.run();
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
        assertEquals(2, getDone(task).intValue());
      }
    
      public void testCancelled() throws Exception {
        TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2));
        assertFalse(task.isDone());
        task.cancel(false);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

              public Integer getResult() {
                return seen;
              }
            };
        assertEquals(
            "processLine was called more than once",
            1,
            CharStreams.readLines(r, alwaysFalse).intValue());
    
        // Test a LineProcessor that always returns true.
        r = new StringReader(text);
        LineProcessor<Integer> alwaysTrue =
            new LineProcessor<Integer>() {
              int seen;
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharStreamsTest.java

              public Integer getResult() {
                return seen;
              }
            };
        assertEquals(
            "processLine was called more than once",
            1,
            CharStreams.readLines(r, alwaysFalse).intValue());
    
        // Test a LineProcessor that always returns true.
        r = new StringReader(text);
        LineProcessor<Integer> alwaysTrue =
            new LineProcessor<Integer>() {
              int seen;
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. compat/maven-model/src/main/java/org/apache/maven/model/InputLocation.java

                    InputLocation location;
                    Integer index = it.next();
                    if (index.intValue() < 0) {
                        location = sourceLocations.get(Integer.valueOf(~index.intValue()));
                    } else {
                        location = targetLocations.get(index);
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Ints.java

      @CheckForNull
      public static Integer tryParse(String string, int radix) {
        Long result = Longs.tryParse(string, radix);
        if (result == null || result.longValue() != result.intValue()) {
          return null;
        } else {
          return result.intValue();
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

       * instead of {@code Comparator<? super T>}.
       */
      public void testMinMaxWithSupertypeComparator() {
        Comparator<Number> numberComparator = comparing(Number::intValue);
        Integer comparand1 = 1;
        Integer comparand2 = 2;
    
        Integer min = min(comparand1, comparand2, numberComparator);
        Integer max = max(comparand1, comparand2, numberComparator);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

            if (field == null) {
                return null;
            }
            if (clazz.equals(Integer.class)) {
                final Number value = (Number) field;
                return (T) Integer.valueOf(value.intValue());
            }
            if (clazz.equals(Long.class)) {
                final Number value = (Number) field;
                return (T) Long.valueOf(value.longValue());
            }
            return (T) field;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<Integer> consumingIterator = Iterables.consumingIterable(queue).iterator();
    
        assertEquals(5, queue.peek().intValue());
        assertEquals(5, consumingIterator.next().intValue());
    
        assertEquals(14, queue.peek().intValue());
        assertTrue(consumingIterator.hasNext());
        assertTrue(queue.isEmpty());
      }
    
      public void testConsumingIterable_noIteratorCall() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        future.set(1);
        assertThrows(NullPointerException.class, () -> future.get(0, null));
      }
    
      public void testNegativeTimeout() throws Exception {
        future.set(1);
        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        future.set(1);
        assertThrows(NullPointerException.class, () -> future.get(0, null));
      }
    
      public void testNegativeTimeout() throws Exception {
        future.set(1);
        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top