Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 420 for Init (0.38 sec)

  1. android/guava/src/com/google/common/cache/Striped64.java

          } else if (busy == 0 && cells == as && casBusy()) {
            boolean init = false;
            try { // Initialize table
              if (cells == as) {
                Cell[] rs = new Cell[2];
                rs[h & 1] = new Cell(x);
                cells = rs;
                init = true;
              }
            } finally {
              busy = 0;
            }
            if (init) break;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

      CompactHashSet() {
        init(CompactHashing.DEFAULT_SIZE);
      }
    
      /**
       * Constructs a new instance of {@code CompactHashSet} with the specified capacity.
       *
       * @param expectedSize the initial capacity of this {@code CompactHashSet}.
       */
      CompactHashSet(int expectedSize) {
        init(expectedSize);
      }
    
      /** Pseudoconstructor for serialization support. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/MacHashFunction.java

        } catch (CloneNotSupportedException e) {
          return false;
        }
      }
    
      private static Mac getMac(String algorithmName, Key key) {
        try {
          Mac mac = Mac.getInstance(algorithmName);
          mac.init(key);
          return mac;
        } catch (NoSuchAlgorithmException e) {
          throw new IllegalStateException(e);
        } catch (InvalidKeyException e) {
          throw new IllegalArgumentException(e);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 15 22:31:55 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/MapCacheTest.java

              {new MapRetrievalCache<String, String>(new HashMap<String, String>())},
              {new MapRetrievalCache<String, String>(new TreeMap<String, String>(nullsLast))}
            });
      }
    
      @Before
      public void init() {
        mapCache.clear();
      }
    
      @Test
      public void testKeySetIterator() {
        mapCache.put("A", "A_value");
        mapCache.put("B", "B_value");
        mapCache.put("C", "C_value");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 26 16:23:26 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

      public final void init(
          G subjectGenerator, String suiteName, @Nullable Runnable setUp, @Nullable Runnable tearDown) {
        this.subjectGenerator = subjectGenerator;
        this.suiteName = suiteName;
        this.setUp = setUp;
        this.tearDown = tearDown;
      }
    
      // public so that it can be referenced in generated GWT tests.
      public final void init(G subjectGenerator, String suiteName) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testHash() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
    
        String init = "d41d8cd98f00b204e9800998ecf8427e";
        assertEquals(init, Hashing.md5().newHasher().hash().toString());
    
        String asciiHash = "e5df5a39f2b8cb71b24e1d8038f93131";
        assertEquals(asciiHash, Files.hash(asciiFile, Hashing.md5()).toString());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

      }
    
      ObjectCountLinkedHashMap(ObjectCountHashMap<K> map) {
        init(map.size(), DEFAULT_LOAD_FACTOR);
        for (int i = map.firstIndex(); i != -1; i = map.nextIndex(i)) {
          put(map.getKey(i), map.getValue(i));
        }
      }
    
      @Override
      void init(int expectedSize, float loadFactor) {
        super.init(expectedSize, loadFactor);
        firstEntry = ENDPOINT;
        lastEntry = ENDPOINT;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 5.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

        extends AggregateFutureState<OutputT> {
      private static final LazyLogger logger = new LazyLogger(AggregateFuture.class);
    
      /**
       * The input futures. After {@link #init}, this field is read only by {@link #afterDone()} (to
       * propagate cancellation) and {@link #toString()}. To access the futures' <i>values</i>, {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      private transient int lastEntry;
    
      CompactLinkedHashSet() {
        super();
      }
    
      CompactLinkedHashSet(int expectedSize) {
        super(expectedSize);
      }
    
      @Override
      void init(int expectedSize) {
        super.init(expectedSize);
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
      }
    
      @Override
      int allocArrays() {
        int expectedSize = super.allocArrays();
    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)
  10. guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testHash() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
    
        String init = "d41d8cd98f00b204e9800998ecf8427e";
        assertEquals(init, Hashing.md5().newHasher().hash().toString());
    
        String asciiHash = "e5df5a39f2b8cb71b24e1d8038f93131";
        assertEquals(asciiHash, Files.hash(asciiFile, Hashing.md5()).toString());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top