Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 1,956 for Contains (0.82 sec)

  1. internal/once/singleton.go

    package once
    
    // Singleton contains a pointer to T that must be set once.
    // Until the value is set all Get() calls will block.
    type Singleton[T any] struct {
    	v   *T
    	set chan struct{}
    }
    
    // NewSingleton creates a new unset singleton.
    func NewSingleton[T any]() *Singleton[T] {
    	return &Singleton[T]{set: make(chan struct{}), v: nil}
    }
    
    // Get will return the singleton value.
    func (s *Singleton[T]) Get() *T {
    	<-s.set
    	return s.v
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 952 bytes
    - Viewed (0)
  2. build-logic/jvm/src/main/kotlin/gradlebuild.strict-compile.gradle.kts

        // Generated classes may not adhere to the strict no-warning policy that we apply to handwritten code
        // For example, external JMH plugin generates code that produces compiler warnings
        if (!name.contains("CompileGeneratedClasses")) {
            options.compilerArgs.addAll(strictCompilerArgs)
        }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 15 20:21:31 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            data.addChildUrl(child2);
    
            Set<RequestData> childUrlSet = data.getChildUrlSet();
            assertEquals(2, childUrlSet.size());
            assertTrue(childUrlSet.contains(child1));
            assertTrue(childUrlSet.contains(child2));
        }
    
        public void test_removeChildUrl() {
            // Test removing child URL
            ResponseData data = new ResponseData();
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeMultiset.java

      }
    
      @Override
      public int count(@Nullable Object element) {
        try {
          @SuppressWarnings("unchecked")
          E e = (E) element;
          AvlNode<E> root = rootReference.get();
          if (!range.contains(e) || root == null) {
            return 0;
          }
          return root.count(comparator(), e);
        } catch (ClassCastException | NullPointerException e) {
          return 0;
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 33.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/FluentIterable.java

      }
    
      /**
       * Returns {@code true} if this fluent iterable contains any object for which {@code
       * equals(target)} is true.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.anyMatch(Predicate.isEqual(target))}.
       */
      public final boolean contains(@Nullable Object target) {
        return Iterables.contains(getDelegate(), target);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

            // Given
            SpnegoException ex = new SpnegoException("hello");
    
            // When
            String s = ex.toString();
    
            // Then
            assertTrue(s.contains("jcifs.spnego.SpnegoException"));
            assertTrue(s.contains("hello"));
        }
    
        @Test
        @DisplayName("Should serialize and deserialize preserving message and cause")
        void testJavaSerialization() throws Exception {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImpl.java

         */
        /**
         * Checks if the rule manager contains the specified rule.
         * @param rule the rule to check for
         * @return true if the rule is present, false otherwise
         */
        @Override
        public boolean hasRule(final Rule rule) {
            return ruleList.contains(rule);
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java

            boolean activatedPomProfileNotByDefault = false;
    
            for (Profile profile : profiles) {
                if (!deactivatedIds.contains(profile.getId())) {
                    if (activatedIds.contains(profile.getId()) || isActive(profile, context, problems)) {
                        activeProfiles.add(profile);
    
                        if (Profile.SOURCE_POM.equals(profile.getSource())) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

        private fun generateForFile(file: FileTreeElement) {
            val fileContent = file.file.readText()
            val relativePath = file.relativePath.toString()
            require(!fileContent.contains("'''")) {
                "The class with class='autoTested' can't contains triple quotes: $relativePath"
            }
            if (!sampleStart.matcher(fileContent).find()) {
                return
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 19 06:44:41 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // Then
            assertNotNull(str);
            assertTrue(str.contains("Smb2NegotiateResponse"));
            assertTrue(str.contains("dialectRevision="));
            assertTrue(str.contains("securityMode="));
            assertTrue(str.contains("capabilities="));
            assertTrue(str.contains("serverTime="));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top