Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isOrdered (0.12 sec)

  1. guava/src/com/google/common/graph/EndpointPair.java

        @Override
        public boolean isOrdered() {
          return true;
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj instanceof EndpointPair)) {
            return false;
          }
    
          EndpointPair<?> other = (EndpointPair<?>) obj;
          if (isOrdered() != other.isOrdered()) {
            return false;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/IncidentEdgeSet.java

        if (graph.isDirected()) {
          if (!endpointPair.isOrdered()) {
            return false;
          }
    
          Object source = endpointPair.source();
          Object target = endpointPair.target();
          return (node.equals(source) && graph.successors(node).contains(target))
              || (node.equals(target) && graph.predecessors(node).contains(source));
        } else {
          if (endpointPair.isOrdered()) {
            return false;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/IncidentEdgeSet.java

        if (graph.isDirected()) {
          if (!endpointPair.isOrdered()) {
            return false;
          }
    
          Object source = endpointPair.source();
          Object target = endpointPair.target();
          return (node.equals(source) && graph.successors(node).contains(target))
              || (node.equals(target) && graph.predecessors(node).contains(source));
        } else {
          if (endpointPair.isOrdered()) {
            return false;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

              objects.add(new Object());
            }
    
            Iterable<?> locks = striped.bulkGet(objects);
            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

              objects.add(new Object());
            }
    
            Iterable<?> locks = striped.bulkGet(objects);
            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/AbstractBaseGraph.java

       * Returns {@code true} iff {@code endpoints}' ordering is compatible with the directionality of
       * this graph.
       */
      protected final boolean isOrderingCompatible(EndpointPair<?> endpoints) {
        return endpoints.isOrdered() == this.isDirected();
      }
    
      protected final <T> Set<T> nodeInvalidatableSet(Set<T> set, N node) {
        return InvalidatableSet.of(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTaskIntegrationTest.kt

    import org.junit.jupiter.api.Test
    
    
    class AlphabeticalAcceptedApiChangesTaskIntegrationTest : AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest() {
        @Test
        fun `verify AlphabeticalAcceptedApiChangesTask detects misordered changes`() {
            //language=JSON
            firstAcceptedApiChangesFile.writeText(
                """
                    {
                        "acceptedApiChanges": [
                            {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Test
    
    
    class SortAcceptedApiChangesTaskIntegrationTest : AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest() {
        @Test
        fun `verify misordered changes can be sorted`() {
            //language=JSON
            firstAcceptedApiChangesFile.writeText(
                """
                    {
                        "acceptedApiChanges": [
                            {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top