Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3771 - 3780 of 5,478 for newE (0.02 seconds)

  1. src/test/java/org/codelibs/core/collection/SingleValueIteratorTest.java

    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class SingleValueIteratorTest {
    
        /**
         *
         */
        @Test
        public void test() {
            final SingleValueIterator<String> it = new SingleValueIterator<String>("Foo");
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Foo"));
            assertThat(it.hasNext(), is(not(true)));
        }
    
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

        initMapWithNullValue();
    
        // putIfAbsent should replace the null value with the new value
        assertNull(
            "putIfAbsent(existingKeyWithNullValue, value) should return null",
            getMap().putIfAbsent(getKeyForNullValue(), v3()));
        assertEquals("Map should now contain the new value", v3(), getMap().get(getKeyForNullValue()));
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 02:04:51 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

     *
     */
    @Deprecated
    class PropertyProfileActivatorTest extends AbstractProfileActivatorTest<PropertyProfileActivator> {
    
        @BeforeEach
        @Override
        void setUp() throws Exception {
            activator = new PropertyProfileActivator();
        }
    
        private Profile newProfile(String key, String value) {
            ActivationProperty ap =
                    ActivationProperty.newBuilder().name(key).value(value).build();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            if (otherVersion instanceof DefaultArtifactVersion defaultArtifactVersion) {
                return this.comparable.compareTo(defaultArtifactVersion.comparable);
            } else {
                return compareTo(new DefaultArtifactVersion(otherVersion.toString()));
            }
        }
    
        @Override
        public int getMajorVersion() {
            return majorVersion != null ? majorVersion : 0;
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java

             * @return the interpolated value
             */
            String transform(String source, String fieldName);
        }
    
        @Nonnull
        static XmlReaderRequestBuilder builder() {
            return new XmlReaderRequestBuilder();
        }
    
        @NotThreadSafe
        class XmlReaderRequestBuilder {
            Path path;
            Path rootDirectory;
            URL url;
            InputStream inputStream;
            Reader reader;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Aug 29 12:46:27 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  6. guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

      @Override
      public Hasher newHasher() {
        return newHasher(32);
      }
    
      @Override
      public Hasher newHasher(int expectedInputSize) {
        Preconditions.checkArgument(expectedInputSize >= 0);
        return new ByteBufferHasher(expectedInputSize);
      }
    
      @Override
      public HashCode hashInt(int input) {
        return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array());
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 04 15:39:10 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  7. internal/dsync/dsync-client_test.go

    	return false
    }
    
    // Close closes the underlying socket file descriptor.
    func (restClient *ReconnectRESTClient) Close() error {
    	return nil
    }
    
    var (
    	errLockConflict = errors.New("lock conflict")
    	errLockNotFound = errors.New("lock not found")
    )
    
    func toLockError(err error) error {
    	if err == nil {
    		return nil
    	}
    
    	switch err.Error() {
    	case errLockConflict.Error():
    		return errLockConflict
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Jan 20 17:36:09 GMT 2022
    - 4.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/http/NtlmSspTest.java

            }
    
            // Total message length is 154 bytes
            byte[] finalMessage = new byte[154];
            System.arraycopy(message, 0, finalMessage, 0, 154);
    
            return Base64.getEncoder().encodeToString(finalMessage);
        }
    
        @BeforeEach
        public void setUp() throws UnknownHostException {
            ntlmSsp = new NtlmSsp();
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.4K bytes
    - Click Count (1)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          }
    
        /**
         * Adds a new header with the name and value. This may be used to add multiple headers with the
         * same name.
         */
        public fun addHeader(
          name: String,
          value: Any,
        ): Builder =
          apply {
            headers_.add(name, value.toString())
          }
    
        /**
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/entity/SearchRequestParams.java

         * @return The simplified array.
         */
        protected static String[] simplifyArray(final String[] values) {
            return stream(values).get(stream -> stream.filter(StringUtil::isNotBlank).distinct().toArray(n -> new String[n]));
        }
    
        /**
         * Returns the parameter value array.
         *
         * @param request The request.
         * @param param The parameter.
         * @return The parameter value array.
         */
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 8K bytes
    - Click Count (0)
Back to Top