Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 680 for examples (0.04 sec)

  1. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

      - type: textarea
        attributes:
          label: Why do we need it to be improved?
        validations:
          required: true
    
      - type: textarea
        attributes:
          label: Example
          description: >
            Please provide an example usage of the feature that would be different with the improvement.
          render: java
        validations:
          required: true
    
      - type: textarea
        attributes:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java

        return generator.create(elements.toArray());
      }
    
      @Override
      public Collection<E> getSampleElements(int howMany) {
        SampleElements<E> samples = samples();
        List<E> allSampleElements =
            asList(samples.e0(), samples.e1(), samples.e2(), samples.e3(), samples.e4());
        return new ArrayList<>(allSampleElements.subList(0, howMany));
      }
    
      @Override
      public CollectionSize getCollectionSize() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. .github/ISSUE_TEMPLATE/bug_report.yaml

          description: Please describe the issue you encountered.
        validations:
          required: true
    
      - type: textarea
        attributes:
          label: Example
          description: >
            Please provide a [Short, Self Contained, Correct (Compilable), Example](http://sscce.org/)
            demonstrating the bug.
          render: java
        validations:
          required: true
    
      - type: textarea
        attributes:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 16 20:08:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

      }
    
      protected final E e0() {
        return samples.e0();
      }
    
      protected final E e1() {
        return samples.e1();
      }
    
      protected final E e2() {
        return samples.e2();
      }
    
      protected final E e3() {
        return samples.e3();
      }
    
      protected final E e4() {
        return samples.e4();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/StringUtil.java

        }
    
        /**
         * Decapitalizes a string according to JavaBeans conventions.
         * Note: If the first two characters are uppercase, the string will not be decapitalized.
         * <p>
         * Usage example:
         * </p>
         *
         * <pre>
         * StringUtil.decapitalize("UserId")  = "userId"
         * StringUtil.decapitalize("ABC")     = "ABC"
         * </pre>
         *
         * @param name
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  6. mockwebserver/README.md

    awkward-to-reproduce situations like 500 errors or slow-loading responses.
    
    
    ### Example
    
    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ### Java
    ```java
    public void test() throws Exception {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:40:52 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     * possible sequences of these operations, up to a given number of steps. So, if the caller
     * specifies to use <i>n</i> steps, a total of <i>3^n</i> tests are actually performed.
     *
     * <p>For instance, if <i>steps</i> is 5, one example sequence that will be tested is:
     *
     * <ol>
     *   <li>remove();
     *   <li>hasNext()
     *   <li>hasNext();
     *   <li>remove();
     *   <li>next();
     * </ol>
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Enums.java

     * @author Steve McKay
     * @since 9.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    public final class Enums {
    
      private Enums() {}
    
      /**
       * Returns the {@link Field} in which {@code enumValue} is defined. For example, to get the {@code
       * Description} annotation on the {@code GOLF} constant of enum {@code Sport}, use {@code
       * Enums.getField(Sport.GOLF).getAnnotation(Description.class)}.
       *
       * @since 12.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 13:41:58 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

        }
    
        @Test
        void constructor_shouldThrowSmbExceptionOnOpenFailure() throws IOException {
            // Arrange
            int access = 1;
            int rid = 100;
            int errorCode = 0xC0000022; // Example error code
    
            // Mock the behavior of sendrecv for MsrpcSamrOpenAlias to simulate failure
            doAnswer(invocation -> {
                MsrpcSamrOpenAlias rpc = invocation.getArgument(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt

       * https://github.com/square/okhttp/issues/5667
       */
      @Test
      fun hostToUriStripsCharacters() {
        val httpUrl = "http://example\".com/".toHttpUrl()
        assertThat(httpUrl.toUri().toString()).isEqualTo("http://example.com/")
      }
    
      /** Confirm that URI retains other characters. https://github.com/square/okhttp/issues/5236 */
      @Test
      fun hostToUriStripsCharacters2() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top