Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 448 for self (0.02 seconds)

  1. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      // here too.
      static final String ERROR_MODIFIABLE_SET = "Set returned is unexpectedly modifiable";
      static final String ERROR_SELF_LOOP = "self-loops are not allowed";
      static final String ERROR_ADDED_SELF_LOOP = "Should not be allowed to add a self-loop edge.";
    
      /** Creates and returns an instance of the graph to be tested. */
      abstract Graph<Integer> createGraph();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/graph/GraphsTest.java

      private static final String ERROR_PARALLEL_EDGE = "connected by a different edge";
      private static final String ERROR_NEGATIVE_COUNT = "is non-negative";
      static final String ERROR_SELF_LOOP = "self-loops are not allowed";
    
      @Test
      public void transitiveClosure_directedGraph_addSelfLoopsAlways() {
        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(false).build();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:06 GMT 2026
    - 30.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            when(config.getPid()).thenReturn(12345);
            when(config.getSendBufferSize()).thenReturn(65536);
    
            target = new SmbPipeHandleImpl(pipe);
        }
    
        @Test
        @DisplayName("unwrap returns self for assignable type; throws for incompatible and null")
        void testUnwrap() {
            // Happy path: unwrap to concrete type
            SmbPipeHandleImpl unwrapped = target.unwrap(SmbPipeHandleImpl.class);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/dependencies/classes-as-dependencies.md

    ```
    
    那它就是一個「callable」。
    
    ## 以類別作為相依性 { #classes-as-dependencies_1 }
    
    你可能已經注意到,建立一個 Python 類別的實例時,你用的語法也是一樣的。
    
    例如:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    在這個例子中,`fluffy` 是 `Cat` 類別的一個實例。
    
    而要建立 `fluffy`,你其實是在「呼叫」`Cat`。
    
    所以,Python 類別本身也是一種 **callable**。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/EndpointPair.java

     * {@link EndpointPair} of an undirected edge is an unordered pair of nodes ({@link #nodeU()} and
     * {@link #nodeV()}).
     *
     * <p>The edge is a self-loop if, and only if, the two endpoints are equal.
     *
     * @author James Sexton
     * @since 20.0
     */
    @Immutable(containerOf = {"N"})
    public abstract class EndpointPair<N> implements Iterable<N> {
      private final N nodeU;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 8K bytes
    - Click Count (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java

    @Named
    public class BootstrapCoreExtensionManager {
        public static final String STRATEGY_PARENT_FIRST = "parent-first";
        public static final String STRATEGY_PLUGIN = "plugin";
        public static final String STRATEGY_SELF_FIRST = "self-first";
    
        private final Logger log = LoggerFactory.getLogger(getClass());
    
        private final DefaultPluginDependenciesResolver pluginDependenciesResolver;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbSessionImplTest.java

            // Close of try-with-resources should call close on the mock
            verify(tree, times(1)).close();
        }
    
        @Test
        @DisplayName("unwrap: returns self for compatible type and throws for incompatible")
        @SuppressWarnings({ "rawtypes", "unchecked" })
        void testUnwrap() {
            SmbSessionImpl session = newSession();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/extensions/BootstrapCoreExtensionManager.java

    @Named
    public class BootstrapCoreExtensionManager {
        public static final String STRATEGY_PARENT_FIRST = "parent-first";
        public static final String STRATEGY_PLUGIN = "plugin";
        public static final String STRATEGY_SELF_FIRST = "self-first";
    
        private final Logger log = LoggerFactory.getLogger(getClass());
    
        private final DefaultPluginDependenciesResolver pluginDependenciesResolver;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  9. cmd/data-usage-cache.go

    	if topE == nil {
    		scannerLogIf(GlobalContext, errors.New("forceCompact: root not found"))
    		return
    	}
    	// If off by 2 orders of magnitude, compact self and log error.
    	if len(topE.Children) > dataScannerForceCompactAtFolders {
    		// If we still have too many children, compact self.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

        }
    
        @Test
        void testSelfReferencingDependencyInRawModel() throws Exception {
            SimpleProblemCollector result = validateRaw("raw-model/self-referencing.xml");
    
            assertViolations(result, 1, 0, 0);
    
            assertEquals(
    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)
Back to Top