Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 1,442 for constant (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/base/Functions.java

       * (Function<Object, E> & Serializable) o -> value}.
       *
       * @param value the constant value for the function to return
       * @return a function that always returns {@code value}
       */
      public static <E extends @Nullable Object> Function<@Nullable Object, E> constant(
          @ParametricNullness E value) {
        return new ConstantFunction<>(value);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/EnumsTest.java

        // ClassLoader.
        Set<Object> shadowConstants = new HashSet<>();
        for (TestEnum constant : TestEnum.values()) {
          Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, constant.name());
          assertThat(result).isPresent();
          shadowConstants.add(result.get());
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/RequestParamTest.java

        // Happy path: values() returns all constants in declaration order
        @Test
        @DisplayName("values() returns all declared constants in order")
        void valuesContainsAllInOrder() {
            RequestParam[] values = RequestParam.values();
    
            assertNotNull(values, "values() must not return null");
            assertEquals(4, values.length, "There must be exactly 4 constants");
            assertArrayEquals(
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                        Arrays.copyOfRange(largeBuffer, 500, 500 + largeEncodedSize));
            }
        }
    
        @Nested
        @DisplayName("Constants Tests")
        class ConstantsTest {
    
            @Test
            @DisplayName("Should have correct constant values for PreauthIntegrityNegotiateContext")
            void testPreauthConstants() {
                assertEquals(0x1, PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/base/Functions.java

       * (Function<Object, E> & Serializable) o -> value}.
       *
       * @param value the constant value for the function to return
       * @return a function that always returns {@code value}
       */
      public static <E extends @Nullable Object> Function<@Nullable Object, E> constant(
          @ParametricNullness E value) {
        return new ConstantFunction<>(value);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/WinErrorTest.java

        }
    
        @Test
        @DisplayName("Constants: values match Windows error codes")
        void constants_have_expected_values() {
            // Ensure each public constant has its documented numeric value (happy path)
            assertAll(() -> assertEquals(0, WinError.ERROR_SUCCESS), () -> assertEquals(5, WinError.ERROR_ACCESS_DENIED),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

            SimpleProblemCollector result = validateRaw("raw-model/bad-ci-friendly.xml");
            assertViolations(result, 0, 0, 1);
            assertEquals(
                    "'version' contains an expression but should be a constant.",
                    result.getWarnings().get(0));
        }
    
        @Test
        void testCiFriendlyBadSha1Plus() throws Exception {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/CaseFormat.java

      UPPER_CAMEL(CharMatcher.inRange('A', 'Z'), "") {
        @Override
        String normalizeWord(String word) {
          return firstCharOnlyToUpper(word);
        }
      },
    
      /** Java and C++ constant naming convention, e.g., "UPPER_UNDERSCORE". */
      UPPER_UNDERSCORE(CharMatcher.is('_'), "_") {
        @Override
        String normalizeWord(String word) {
          return Ascii.toUpperCase(word);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Dec 03 18:46:33 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java

                        contentLength += title.length();
                    }
                    if (doc.get(indexFieldContent) instanceof final String content) {
                        contentLength += content.length();
                    }
                    doc.put(indexFieldContentLength, contentLength);
                }
                if (!doc.containsKey(indexFieldFavoriteCount)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

            super();
        }
    
        private static final Logger logger = LogManager.getLogger(ProfileAction.class);
    
        // ===================================================================================
        // Constant
        //
    
        // ===================================================================================
        // Attribute
        //
        @Resource
        private UserService userService;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 6.3K bytes
    - Click Count (0)
Back to Top