Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for jmod (0.27 sec)

  1. android/guava/src/com/google/common/math/LongMath.java

        return increment ? div + signum : div;
      }
    
      /**
       * Returns {@code x mod m}, a non-negative value less than {@code m}. This differs from {@code x %
       * m}, which might be negative.
       *
       * <p>For example:
       *
       * <pre>{@code
       * mod(7, 4) == 3
       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/IntMath.java

        return increment ? div + signum : div;
      }
    
      /**
       * Returns {@code x mod m}, a non-negative value less than {@code m}. This differs from {@code x %
       * m}, which might be negative.
       *
       * <p>For example:
       *
       * <pre>{@code
       * mod(7, 4) == 3
       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Bytes.java

      }
    
      /**
       * Performs a right rotation of {@code array} of "distance" places, so that the first element is
       * moved to index "distance", and the element at index {@code i} ends up at index {@code (distance
       * + i) mod array.length}. This is equivalent to {@code Collections.rotate(Bytes.asList(array),
       * distance)}, but is somewhat faster.
       *
       * <p>The provided "distance" may be negative, which will rotate left.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      @GwtIncompatible // NavigableSet
      public void testUnmodifiableNavigableSet() {
        TreeSet<Integer> mod = Sets.newTreeSet();
        mod.add(1);
        mod.add(2);
        mod.add(3);
    
        NavigableSet<Integer> unmod = unmodifiableNavigableSet(mod);
    
        /* Unmodifiable is a view. */
        mod.add(4);
        assertTrue(unmod.contains(4));
        assertTrue(unmod.descendingSet().contains(4));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Floats.java

      }
    
      /**
       * Performs a right rotation of {@code array} of "distance" places, so that the first element is
       * moved to index "distance", and the element at index {@code i} ends up at index {@code (distance
       * + i) mod array.length}. This is equivalent to {@code Collections.rotate(Floats.asList(array),
       * distance)}, but is considerably faster and avoids allocation and garbage collection.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          // we should get an ExecutionException; if we call getUnchecked(), we should get an
          // UncheckedExecutionException.
          int mod = i % 3;
          if (mod == 0 || mod == 2) {
            assertThat(result.get(i)).isInstanceOf(ExecutionException.class);
            assertThat((ExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      @SuppressWarnings("deprecation")
      public void testUnmodifiableIteratorShortCircuit() {
        Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator();
        UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Iterators.unmodifiableIterator(unmod));
        assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultimapsTest.java

      }
    
      public void testUnmodifiableMultimapIsView() {
        Multimap<String, Integer> mod = HashMultimap.create();
        Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod);
        assertEquals(mod, unmod);
        mod.put("foo", 1);
        assertTrue(unmod.containsEntry("foo", 1));
        assertEquals(mod, unmod);
      }
    
      @SuppressWarnings("unchecked")
      public void testUnmodifiableMultimapEntries() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/Base64Util.java

            }
            final int mod = inData.length % 3;
            final int num = inData.length / 3;
            char[] outData = null;
            if (mod != 0) {
                outData = new char[(num + 1) * 4];
            } else {
                outData = new char[num * 4];
            }
            for (int i = 0; i < num; i++) {
                encode(inData, i * 3, outData, i * 4);
            }
            if (mod == 1) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

              int expected = aUnsigned.bigIntegerValue().mod(bUnsigned.bigIntegerValue()).intValue();
              UnsignedInteger unsignedRem = aUnsigned.mod(bUnsigned);
              assertThat(unsignedRem.intValue()).isEqualTo(expected);
            }
          }
        }
      }
    
      public void testModByZero() {
        for (int a : TEST_INTS) {
          try {
            UnsignedInteger.fromIntBits(a).mod(UnsignedInteger.ZERO);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
Back to top