Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 5,353 for Return (0.03 sec)

  1. internal/lru/lru.go

    	l.root.next = &l.root
    	l.root.prev = &l.root
    	l.len = 0
    	return l
    }
    
    // NewList returns an initialized list.
    func NewList[K comparable, V any]() *LruList[K, V] { return new(LruList[K, V]).Init() }
    
    // Length returns the number of elements of list l.
    // The complexity is O(1).
    func (l *LruList[K, V]) Length() int { return l.len }
    
    // Back returns the last element of list l or nil if the list is empty.
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstallerRequest.java

                    return artifacts;
                }
    
                @Override
                public boolean equals(Object o) {
                    return o instanceof DefaultArtifactInstallerRequest that && Objects.equals(artifacts, that.artifacts);
                }
    
                @Override
                public int hashCode() {
                    return Objects.hashCode(artifacts);
                }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

        /**
         * Returns an {@link Iterable} that wraps a {@link SingleValueIterator} for use in a for-each statement.
         *
         * @param <E> the element type
         * @param value the single value returned by the iterator
         * @return an {@link Iterable} wrapping a {@link SingleValueIterator}
         */
        public static <E> Iterable<E> iterable(final E value) {
            return () -> new SingleValueIterator<>(value);
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            public String getId() {
                return "test_id";
            }
    
            @Override
            public String getSessionId() {
                return "test_session";
            }
    
            @Override
            public String getRuleId() {
                return "test_rule";
            }
    
            @Override
            public String getUrl() {
                return "http://test.example.com";
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/TypeResolver.java

              }
              return super.captureAsTypeVariable(combined.toArray(new Type[0]));
            }
          };
        }
    
        private WildcardCapturer notForTypeVariable() {
          return new WildcardCapturer(id);
        }
    
        private @Nullable Type captureNullable(@Nullable Type type) {
          if (type == null) {
            return null;
          }
          return capture(type);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        if (!(member instanceof Method)) {
          return false;
        }
        Method method = (Method) member;
        if (!method.getName().contentEquals("equals")) {
          return false;
        }
        Class<?>[] parameters = method.getParameterTypes();
        if (parameters.length != 1) {
          return false;
        }
        if (!parameters[0].equals(Object.class)) {
          return false;
        }
        return true;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/score/QueryRescorerTest.java

                        return createMockRescorerBuilder();
                    }
                    if (params.containsKey("boolean") && params.get("boolean") instanceof Boolean) {
                        return createMockRescorerBuilder();
                    }
    
                    return null;
                }
            };
    
            // Test with string parameter
            Map<String, Object> stringParams = new HashMap<>();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

            if (isApiRequest) {
                return ComponentUtil.getComponent(AccessTokenService.class).getPermissions(request).map(p -> {
                    p.forEach(roleSet::add);
                    return true;
                }).orElse(false);
            }
            return false;
        }
    
        /**
         * Processes the request parameter.
         * @param request The HTTP request.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Platform.java

       * @param string the string to test and possibly return
       * @return {@code string} if it is not null; {@code ""} otherwise
       */
      static String nullToEmpty(@Nullable String string) {
        return (string == null) ? "" : string;
      }
    
      /**
       * Returns the string if it is not empty, or a null string otherwise.
       *
       * @param string the string to test and possibly return
       * @return {@code string} if it is not empty; {@code null} otherwise
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

        }
    
        @Test
        public void testReadDataWireFormat() {
            // Test that readDataWireFormat returns 0
            TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe");
            byte[] buffer = new byte[100];
    
            int consumed = pipe.readDataWireFormat(buffer, 0, 10);
            assertEquals(0, consumed, "readDataWireFormat should return 0");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top