Search Options

Results per page
Sort
Preferred Languages
Advance

Results 931 - 940 of 3,763 for int (0.02 sec)

  1. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(Integer.class));
        assertEquals(0, (int) map.getInstance(TypeToken.of(Integer.class)));
        assertEquals(1, (int) map.getInstance(int.class));
        assertEquals(1, (int) map.getInstance(TypeToken.of(int.class)));
      }
    
      public void testParameterizedType() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return (UnmodifiableListIterator<E>) delegateList.listIterator(index);
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        return delegateList.copyIntoArray(dst, offset);
      }
    
      @Override
      @CheckForNull
      @Nullable
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      fun tearDown() {
        taskQueue.shutdown()
        taskQueue.idleLatch().await(10, TimeUnit.SECONDS)
      }
    
      @Synchronized fun sentPingCount(): Int = sentPingCount
    
      @Synchronized fun receivedPingCount(): Int = receivedPingCount
    
      @Synchronized fun receivedPongCount(): Int = receivedPongCount
    
      @Throws(IOException::class)
      override fun onReadMessage(text: String) {
        listener.onMessage(this, text)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RegularImmutableMap.java

       */
      static final int MAX_HASH_BUCKET_LENGTH = 8;
    
      // entries in insertion order
      @VisibleForTesting final transient Entry<K, V>[] entries;
      // array of linked lists of entries
      @CheckForNull private final transient @Nullable ImmutableMapEntry<K, V>[] table;
      // 'and' with an int to get a table index
      private final transient int mask;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. api/go1.18.txt

    pkg net, method (*UDPConn) ReadFromUDPAddrPort([]uint8) (int, netip.AddrPort, error)
    pkg net, method (*UDPConn) ReadMsgUDPAddrPort([]uint8, []uint8) (int, int, int, netip.AddrPort, error)
    pkg net, method (*UDPConn) WriteMsgUDPAddrPort([]uint8, []uint8, netip.AddrPort) (int, int, error)
    pkg net, method (*UDPConn) WriteToUDPAddrPort([]uint8, netip.AddrPort) (int, error)
    pkg net, type Error interface, Temporary //deprecated
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/GraphMutationTest.java

    @RunWith(JUnit4.class)
    
    public final class GraphMutationTest {
      private static final int NUM_TRIALS = 50;
      private static final int NUM_NODES = 100;
      private static final int NUM_EDGES = 1000;
      private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES
    
      @Test
      public void directedGraph() {
        testGraphMutation(GraphBuilder.directed());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

          checkNotNull(mutex);
          this.delegate = delegate;
          this.mutex = mutex;
        }
    
        @Override
        protected Map<K, V> delegate() {
          return delegate;
        }
    
        @Override
        public int size() {
          assertTrue(Thread.holdsLock(mutex));
          return super.size();
        }
    
        @Override
        public boolean isEmpty() {
          assertTrue(Thread.holdsLock(mutex));
          return super.isEmpty();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java

            this.calledName = calledName;
            this.callingName = callingName;
        }
        int writeTrailerWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
            dstIndex += calledName.writeWireFormat( dst, dstIndex );
            dstIndex += callingName.writeWireFormat( dst, dstIndex );
            return dstIndex - start;
        }
        int readTrailerWireFormat( InputStream in,
                                byte[] buffer,
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/TestingWeighers.java

        private final int constant;
    
        ConstantWeigher(int constant) {
          this.constant = constant;
        }
    
        @Override
        public int weigh(Object key, Object value) {
          return constant;
        }
      }
    
      static final class IntKeyWeigher implements Weigher<Integer, Object> {
        @Override
        public int weigh(Integer key, Object value) {
          return key;
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            int[] array = new int[RANDOM.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
            builder.addAll(stream(array));
          }
        },
        ADD_IIA {
          @Override
          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            int[] array = new int[RANDOM.nextInt(10)];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top