Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for isPositive (0.06 seconds)

  1. src/test/java/org/codelibs/fess/util/BooleanFunctionTest.java

        }
    
        @Test
        public void test_apply_integer() {
            BooleanFunction<Integer> isPositive = n -> n != null && n > 0;
    
            assertTrue(isPositive.apply(1));
            assertTrue(isPositive.apply(100));
            assertFalse(isPositive.apply(0));
            assertFalse(isPositive.apply(-1));
            assertFalse(isPositive.apply(null));
        }
    
        @Test
        public void test_apply_object() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/Slf4jMavenTransferListener.java

            Duration duration =
                    Duration.between(Instant.ofEpochMilli(resource.getTransferStartTime()), MonotonicClock.now());
            if ((duration.getSeconds() | duration.getNano()) > 0) { // duration.isPositive()
                long bytesPerSecond = Math.round(contentLength / (double) duration.toSeconds());
                message.append(" at ");
                format.format(message, bytesPerSecond);
                message.append("/s");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Dec 12 11:02:17 GMT 2024
    - 4K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

      duration: Duration,
    ): Int {
      check(!duration.isNegative()) { "$name < 0" }
      val millis = duration.inWholeMilliseconds
      require(millis <= Integer.MAX_VALUE) { "$name too large" }
      require(millis != 0L || !duration.isPositive()) { "$name too small" }
      return millis.toInt()
    }
    
    internal fun List<Header>.toHeaders(): Headers {
      val builder = Headers.Builder()
      for ((name, value) in this) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.3K bytes
    - Click Count (1)
Back to Top