- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 727 for examples (0.04 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java
return generator.create(elements.toArray()); } @Override public Collection<E> getSampleElements(int howMany) { SampleElements<E> samples = samples(); List<E> allSampleElements = asList(samples.e0(), samples.e1(), samples.e2(), samples.e3(), samples.e4()); return new ArrayList<>(allSampleElements.subList(0, howMany)); } @Override public CollectionSize getCollectionSize() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java
} @Override public SampleElements<Entry<V, K>> samples() { SampleElements<Entry<K, V>> samples = generator.samples(); return new SampleElements<>( reverse(samples.e0()), reverse(samples.e1()), reverse(samples.e2()), reverse(samples.e3()), reverse(samples.e4())); } private Entry<V, K> reverse(Entry<K, V> entry) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java
* example, we could compute the appropriate throttle time for an incoming request, and make the * calling thread wait for that time. * * The simplest way to maintain a rate of QPS is to keep the timestamp of the last granted * request, and ensure that (1/QPS) seconds have elapsed since then. For example, for a rate of
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 19.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
} /** * Decapitalizes a string according to JavaBeans conventions. * Note: If the first two characters are uppercase, the string will not be decapitalized. * <p> * Usage example: * </p> * * <pre> * StringUtil.decapitalize("UserId") = "userId" * StringUtil.decapitalize("ABC") = "ABC" * </pre> * * @param nameRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 21.5K bytes - Viewed (0) -
mockwebserver/README.md
awkward-to-reproduce situations like 500 errors or slow-loading responses. ### Example Use MockWebServer the same way that you use mocking frameworks like [Mockito](https://github.com/mockito/mockito): 1. Script the mocks. 2. Run application code. 3. Verify that the expected requests were made. Here's a complete example: ### Java ```java public void test() throws Exception {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DiscreteDomain.java
/** * Returns a signed value indicating how many nested invocations of {@link #next} (if positive) or * {@link #previous} (if negative) are needed to reach {@code end} starting from {@code start}. * For example, if {@code end = next(next(next(start)))}, then {@code distance(start, end) == 3} * and {@code distance(end, start) == -3}. As well, {@code distance(a, a)} is always zero. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
* possible sequences of these operations, up to a given number of steps. So, if the caller * specifies to use <i>n</i> steps, a total of <i>3^n</i> tests are actually performed. * * <p>For instance, if <i>steps</i> is 5, one example sequence that will be tested is: * * <ol> * <li>remove(); * <li>hasNext() * <li>hasNext(); * <li>remove(); * <li>next(); * </ol> *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 20:54:16 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
} @Test void constructor_shouldThrowSmbExceptionOnOpenFailure() throws IOException { // Arrange int access = 1; int rid = 100; int errorCode = 0xC0000022; // Example error code // Mock the behavior of sendrecv for MsrpcSamrOpenAlias to simulate failure doAnswer(invocation -> { MsrpcSamrOpenAlias rpc = invocation.getArgument(0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Chars.java
return value < min ? min : value < max ? value : max; } /** * Returns the values from each provided array combined into a single array. For example, {@code * concat(new char[] {a, b}, new char[] {}, new char[] {c}} returns the array {@code {a, b, c}}. * * @param arrays zero or more {@code char} arrays
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
fess-crawler/src/test/resources/extractor/test_ns.xml
<?xml version="1.0" encoding="UTF-8"?> <hoge:address xmlns:hoge="http://www.example.com/hoge"> <hoge:item sex="male" custid="A12345"> <hoge:name>鈴木太郎</hoge:name> <hoge:access kind="email"></hoge:access> <hoge:access kind="url">http://www.taro.com/</hoge:access> <hoge:image file="taro.png" /> </hoge:item> <hoge:item sex="male" custid="B23456"> <hoge:name>佐藤二朗</hoge:name> <hoge:access kind="email">******@****.***</hoge:access>
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Oct 11 02:16:55 UTC 2015 - 707 bytes - Viewed (0)