Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 341 for sekond (0.14 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
        final long startNanos = System.nanoTime();
        final Call call = client.newCall(request);
    
        // Schedule a job to cancel the call in 1 second.
        executor.schedule(() -> {
          System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f);
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

            return lenToRead;
          }
        }
      }
    
      /**
       * @param input the size of the input source
       * @param offset the first argument to {@link ByteSource#slice}
       * @param length the second argument to {@link ByteSource#slice}
       * @param expectRead the number of bytes we expect to read
       */
      private static void assertCorrectSlice(int input, int offset, long length, int expectRead)
          throws IOException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Functions.java

       *
       * <p><b>Java 8+ users:</b> use {@code g.compose(f)} or (probably clearer) {@code f.andThen(g)}
       * instead.
       *
       * @param g the second function to apply
       * @param f the first function to apply
       * @return the composition of {@code f} and {@code g}
       * @see <a href="//en.wikipedia.org/wiki/Function_composition">function composition</a>
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * 0} and {@code 2^32 - 1} inclusive.
       *
       * <p><b>Java 8+ users:</b> use {@link Integer#compareUnsigned(int, int)} instead.
       *
       * @param a the first unsigned {@code int} to compare
       * @param b the second unsigned {@code int} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        addEdge(N1, N2, E12);
        assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12);
        // Passed nodes should be in the correct edge direction, first is the
        // source node and the second is the target node
        assertThat(network.edgesConnecting(N2, N1)).isEmpty();
      }
    
      @Test
      public void inEdges_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.inEdges(N2)).containsExactly(E12);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

    SmbComReadAndX request = new SmbComReadAndX( file.fid, fp, r, null );
    if( file.type == SmbFile.TYPE_NAMED_PIPE ) {
        request.minCount = request.maxCount = request.remaining = 1024;
    }
                    file.send( request, response );
                } catch( SmbException se ) {
                    if( file.type == SmbFile.TYPE_NAMED_PIPE &&
                            se.getNtStatus() == NtStatus.NT_STATUS_PIPE_BROKEN ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PreconditionsTest.java

        // ternaries introduce their own problems. because of the ternary (which requires a boxing
        // operation) no overload can be selected in phase 1.  and in phase 2 it is ambiguous since it
        // matches with the second parameter being boxed and without it being boxed.  The cast to Object
        // avoids this.
        Preconditions.checkState(aBoolean, "", aBoolean ? "" : anInt, (Object) anInt);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleInternal.java

    
        /**
         * @param cap
         * @return whether the capabiltiy is present
         * @throws CIFSException
         */
        boolean hasCapability ( int cap ) throws CIFSException;
    
    
        /**
         * @return the send buffer size of the underlying connection
         * @throws CIFSException
         */
        int getSendBufferSize () throws CIFSException;
    
    
        /**
         * @return the receive buffer size of the underlying connection
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * because it is seen as having the value of positive {@code 129}.
       *
       * @param a the first {@code byte} to compare
       * @param b the second {@code byte} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

                            request.setReadLength(r);
                            request.setRemainingBytes(len - r);
    
                            try {
                                Smb2ReadResponse resp = th.send(request, RequestParam.NO_RETRY);
                                n = resp.getDataLength();
                            }
                            catch ( SmbException e ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
Back to top