Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for s2 (0.19 sec)

  1. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      }
    
      public void testImmediateDispatcher() {
        dispatcher = Dispatcher.immediate();
        dispatcher.dispatch(1, integerSubscribers.iterator());
    
        assertThat(dispatchedSubscribers)
            .containsExactly(
                i1, s1, s2, // Each integer subscriber immediately dispatches to 2 string subscribers.
                i2, s1, s2, i3, s1, s2)
            .inOrder();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

        private static int compareStrings(String s1, String s2) {
            if (s1 == null && s2 == null) {
                return 0;
            }
    
            if (s1 == null /* && s2 != null */) {
                return -1;
            }
    
            if (
            /* s1 != null && */ s2 == null) {
                return 1;
            }
    
            return s1.compareTo(s2);
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
            return stream(user.getRoleNames())
                    .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1)))));
        }
    
        public boolean hasGroup(final String group) {
            return stream(user.getGroupNames()).get(stream -> stream.anyMatch(s -> s.equals(group)));
        }
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

      }
    
      public void testUnregister() {
        StringSubscriber s1 = new StringSubscriber();
        StringSubscriber s2 = new StringSubscriber();
    
        registry.register(s1);
        registry.register(s2);
    
        registry.unregister(s1);
        assertEquals(1, registry.getSubscribersForTesting(String.class).size());
    
        registry.unregister(s2);
        assertTrue(registry.getSubscribersForTesting(String.class).isEmpty());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

      int hashString_3(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1, S2);
        }
        return dummy;
      }
    
      @Benchmark
      int hashString_4(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1, S2, S3);
        }
        return dummy;
      }
    
      @Benchmark
      int hashString_5(int reps) {
        int dummy = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

      }
    
      public void testUnregister() {
        StringSubscriber s1 = new StringSubscriber();
        StringSubscriber s2 = new StringSubscriber();
    
        registry.register(s1);
        registry.register(s2);
    
        registry.unregister(s1);
        assertEquals(1, registry.getSubscribersForTesting(String.class).size());
    
        registry.unregister(s2);
        assertTrue(registry.getSubscribersForTesting(String.class).isEmpty());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/api/testdata/src/pkg/p1/golden.txt

    pkg p1, method (*Embedded) OnEmbedded()
    pkg p1, method (*S2) SMethod(int8, int16, int64)
    pkg p1, method (*S2) SMethod //deprecated
    pkg p1, method (*T) JustOnT()
    pkg p1, method (*T) OnBothTandBPtr()
    pkg p1, method (B) OnBothTandBVal()
    pkg p1, method (S) StructValueMethod()
    pkg p1, method (S) StructValueMethodNamedRecv()
    pkg p1, method (S2) StructValueMethod()
    pkg p1, method (S2) StructValueMethodNamedRecv()
    pkg p1, method (T) OnBothTandBVal()
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      }
    
      public void testImmediateDispatcher() {
        dispatcher = Dispatcher.immediate();
        dispatcher.dispatch(1, integerSubscribers.iterator());
    
        assertThat(dispatchedSubscribers)
            .containsExactly(
                i1, s1, s2, // Each integer subscriber immediately dispatches to 2 string subscribers.
                i2, s1, s2, i3, s1, s2)
            .inOrder();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  9. internal/s3select/progress.go

    			return nil, errInvalidCompression(err, compType)
    		}
    		r = zr
    		pr.closer = zr.IOReadCloser()
    	case lz4Type:
    		r = lz4.NewReader(scannedReader)
    	case s2Type:
    		r = s2.NewReader(scannedReader)
    	case snappyType:
    		r = s2.NewReader(scannedReader, s2.ReaderMaxBlockSize(64<<10))
    	default:
    		return nil, errInvalidCompressionFormat(fmt.Errorf("unknown compression type '%v'", compType))
    	}
    	pr.processedReader = newCountUpReader(r)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Oct 18 15:44:36 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  10. statement_test.go

    				})
    			}
    
    			s1 := s.clone()
    			s1.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL1"),
    			})
    			s2 := s.clone()
    			s2.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL2"),
    			})
    
    			if reflect.DeepEqual(s1.Clauses["WHERE"], s2.Clauses["WHERE"]) {
    				t.Errorf("Where conditions should be different")
    			}
    		})
    	}
    }
    
    func TestNilCondition(t *testing.T) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Dec 23 13:19:41 GMT 2023
    - 1.9K bytes
    - Viewed (0)
Back to top