Search Options

Results per page
Sort
Preferred Languages
Advance

Results 721 - 730 of 836 for examples (0.04 sec)

  1. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          hash *= 31;
          hash += Long.hashCode(array[i]);
        }
        return hash;
      }
    
      /**
       * Returns a string representation of this array in the same form as {@link
       * Arrays#toString(long[])}, for example {@code "[1, 2, 3]"}.
       */
      @Override
      public String toString() {
        if (isEmpty()) {
          return "[]";
        }
        StringBuilder builder = new StringBuilder(length() * 5); // rough estimate is fine
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 14:49:24 UTC 2025
    - 22K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/ImmutableIntArray.java

          hash *= 31;
          hash += Integer.hashCode(array[i]);
        }
        return hash;
      }
    
      /**
       * Returns a string representation of this array in the same form as {@link
       * Arrays#toString(int[])}, for example {@code "[1, 2, 3]"}.
       */
      @Override
      public String toString() {
        if (isEmpty()) {
          return "[]";
        }
        StringBuilder builder = new StringBuilder(length() * 5); // rough estimate is fine
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 14:49:24 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            Field rDataLengthField = NameServicePacket.class.getDeclaredField("rDataLength");
            rDataLengthField.setAccessible(true);
            rDataLengthField.set(response, 67); // 1 + 18 * 3 + 6 + 6 = 67 (3 names example)
    
            // Number of names
            src[srcIndex] = 0x03; // 3 names
    
            // First name entry (18 bytes)
            String name1 = "WORKSTATION     ";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

          random: Random?,
          pingIntervalMillis: Int = 0,
          responseHeaders: Headers? = headersOf(),
          webSocketCloseTimeout: Long = RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS,
        ) {
          val url = "http://example.com/websocket"
          val response =
            Response
              .Builder()
              .code(101)
              .message("OK")
              .request(Request.Builder().url(url).build())
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         * {@code target/classes/META-INF/resources}. This method provides the same base directory
         * ({@code target/classes}) for Maven 4 API consumers.
         * </p>
         * <p>
         * <strong>Example:</strong>
         * </p>
         * <pre>{@code
         * Project project = ...; // project at /home/user/myproject
         *
         * // Get main output directory
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  6. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java

     * This interface represents a single node in an XML document tree, containing information about
     * the node's name, value, attributes, and child nodes.
     *
     * <p>Example usage:</p>
     * <pre>
     * XmlNode node = XmlNode.newBuilder()
     *     .name("configuration")
     *     .attribute("version", "1.0")
     *     .child(XmlNode.newInstance("property", "value"))
     *     .build();
     * </pre>
     *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 17 15:20:44 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableTable.java

            checkNotNull(value, "value"));
      }
    
      /**
       * A builder for creating immutable table instances, especially {@code public static final} tables
       * ("constant tables"). Example:
       *
       * {@snippet :
       * static final ImmutableTable<Integer, Character, String> SPREADSHEET =
       *     new ImmutableTable.Builder<Integer, Character, String>()
       *         .put(1, 'A', "foo")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

     * created for testing should have Integer node and String edge objects.
     *
     * <p>Test cases that should be handled similarly in any graph implementation are included in this
     * class. For example, testing that {@code nodes()} method returns the set of the nodes in the
     * graph. The following test cases are left for the subclasses to handle:
     *
     * <ul>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      // From https://github.com/google/guava/issues/1342
      public void testComplicatedOrderingExample() {
        Integer nullInt = (Integer) null;
        Ordering<@Nullable Iterable<@Nullable Integer>> example =
            Ordering.<Integer>natural()
                .<Integer>nullsFirst()
                .<@Nullable Integer>reverse()
                .<@Nullable Integer>lexicographical()
                .reverse()
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactHashMap.java

      //
      // The `table` array always has a size that is a power of 2. The hashcode of a key in the map
      // is masked in order to correspond to the current table size. For example, if the table size
      // is 128 then the mask is 127 == 0x7f, keeping the bottom 7 bits of the hash value.
      // If a key hashes to 0x89abcdef the mask reduces it to 0x89abcdef & 0x7f == 0x6f. We'll call this
      // the "short hash".
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
Back to top