Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for Hong (0.16 sec)

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

              switch (mode) {
                case HALF_EVEN:
                  // roundFloorAsDouble and roundCeilingAsDouble are neighbors, so precisely
                  // one of them should have an even long representation
                  return ((Double.doubleToRawLongBits(roundFloorAsDouble) & 1L) == 0)
                      ? roundFloorAsDouble
                      : roundCeilingAsDouble;
                case HALF_DOWN:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

       * provide a non-nullable {@code cause}, as many users expect to find one.
       */
      public ExecutionError(@CheckForNull Error cause) {
        super(cause);
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      // TODO(user): predecessors and successors should be collocated (reducing cache misses).
      // Might also explore collocating all of [hash, next, predecessor, successor] fields of an
      // entry in a *single* long[], though that reduces the maximum size of the set by a factor of 2
    
      /**
       * Pointer to the predecessor of an entry in insertion order. ENDPOINT indicates a node is the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

        ArrayList<Future<Long>> futures = new ArrayList<>();
        for (int i = 0; i < nTasks; i++) {
          futures.add(
              threadPool.submit(
                  new Callable<Long>() {
                    @Override
                    public Long call() {
                      long threadSum = 0;
                      for (int j = 0; j < getsPerTask; j++) {
                        long delta = random.nextInt(deltaRange);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(NullPointerException.class, () -> map.put(null, new Integer(1)));
        map.putInstance(Integer.class, null);
        assertNull(map.get(Integer.class));
        assertNull(map.getInstance(Integer.class));
    
        map.put(Long.class, null);
        assertNull(map.get(Long.class));
        assertNull(map.getInstance(Long.class));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(NullPointerException.class, () -> map.put(null, new Integer(1)));
        map.putInstance(Integer.class, null);
        assertNull(map.get(Integer.class));
        assertNull(map.getInstance(Integer.class));
    
        map.put(Long.class, null);
        assertNull(map.get(Long.class));
        assertNull(map.getInstance(Long.class));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/SmallCharMatcher.java

    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
      static final int MAX_SIZE = 1023;
      private final char[] table;
      private final boolean containsZero;
      private final long filter;
    
      private SmallCharMatcher(char[] table, long filter, boolean containsZero, String description) {
        super(description);
        this.table = table;
        this.filter = filter;
        this.containsZero = containsZero;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/StandardValueGraph.java

      private final boolean isDirected;
      private final boolean allowsSelfLoops;
      private final ElementOrder<N> nodeOrder;
    
      final MapIteratorCache<N, GraphConnections<N, V>> nodeConnections;
    
      long edgeCount; // must be updated when edges are added or removed
    
      /** Constructs a graph with the properties specified in {@code builder}. */
      StandardValueGraph(AbstractGraphBuilder<? super N> builder) {
        this(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

       * This implementation requires O(|N|) time. Classes extending this one may manually keep track of
       * the number of edges as the graph is updated, and override this method for better performance.
       */
      protected long edgeCount() {
        long degreeSum = 0L;
        for (N node : nodes()) {
          degreeSum += degree(node);
        }
        // According to the degree sum formula, this is equal to twice the number of edges.
        checkState((degreeSum & 1) == 0);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularContiguousSet.java

            Object writeReplace() {
              return super.writeReplace();
            }
          };
        } else {
          return super.createAsList();
        }
      }
    
      @Override
      public int size() {
        long distance = domain.distance(first(), last());
        return (distance >= Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) distance + 1;
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top