Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for Map (0.16 sec)

  1. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * </ul>
         *
         * @param type
         *            パラメータ化された{@link Map}
         * @param map
         *            パラメータ化された型が持つ型変数をキー、型引数を値とする{@link Map}
         * @return パラメータ化された{@link Map}のキーの実際の型
         */
        public static Class<?> getActualKeyClassOfMap(final Type type, final Map<TypeVariable<?>, Type> map) {
            if (!isTypeOf(type, Map.class)) {
                return null;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

        public CaseInsensitiveSet(final int initialCapacity) {
            map = new CaseInsensitiveMap<>(initialCapacity);
        }
    
        @Override
        public Iterator<String> iterator() {
            return map.keySet().iterator();
        }
    
        @Override
        public int size() {
            return map.size();
        }
    
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
        @Override
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/LruHashSet.java

        private static final long serialVersionUID = 1L;
    
        private final LruHashMap<E, Object> map;
    
        // Dummy value to associate with an Object in the backing Map
        private static final Object PRESENT = new Object();
    
        public LruHashSet(final int limitSize) {
            map = new LruHashMap<>(limitSize);
        }
    
        /**
         * Returns an iterator over the elements in this set. The elements are
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/stream/StreamUtil.java

            return stream(value == null ? null : value.split(regex));
        }
    
        public static <K, V> StreamOf<Map.Entry<K, V>> stream(final Map<K, V> map) {
            return new StreamOf<>(() -> map != null ? map.entrySet().stream() : Collections.<K, V> emptyMap().entrySet().stream());
        }
    
        public static class StreamOf<T> {
    
            private final Supplier<Stream<T>> supplier;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/util/CopyOptionsUtil.java

         * <p>
         * JavaBeansから{@link Map}へ、あるいはその逆にコピーする際に、プロパティ名のデリミタを変更することが出来ます。
         * 例えばJavaBeans側のデリミタにアンダースコア、{@link Map}側のデリミタにピリオドを指定した場合、
         * コピー元とコピー先のプリパティ名は次のようになります。
         * </p>
         * <table border="1">
         * <caption>Copied JavaBeans Properties</caption>
         * <tr>
         * <th>JavaBeansのプロパティ名</th>
         * <th>{@literal Map}のプロパティ名</th>
         * </tr>
         * <tr>
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

    import static org.codelibs.core.misc.AssertionUtil.assertArgumentArrayIndex;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.lang.reflect.Method;
    import java.util.Collection;
    import java.util.Map;
    
    import org.codelibs.core.beans.BeanDesc;
    import org.codelibs.core.beans.MethodDesc;
    import org.codelibs.core.beans.ParameterizedClassDesc;
    import org.codelibs.core.beans.factory.ParameterizedClassDescFactory;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

        public static class MyBean {
            /** */
            public static final String HOGE = "hoge";
    
            private Class<?> aaa;
    
            private List<String> list;
    
            private Map<String, Integer> map;
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/misc/DynamicProperties.java

    import java.io.Reader;
    import java.io.Writer;
    import java.nio.file.Path;
    import java.util.Collection;
    import java.util.Enumeration;
    import java.util.InvalidPropertiesFormatException;
    import java.util.Map;
    import java.util.Properties;
    import java.util.Set;
    
    import org.codelibs.core.exception.FileAccessException;
    import org.codelibs.core.exception.IORuntimeException;
    
    public class DynamicProperties extends Properties {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/net/URLUtil.java

    import java.net.URLDecoder;
    import java.net.URLEncoder;
    import java.util.Map;
    
    import org.codelibs.core.exception.ClRuntimeException;
    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link URL}を扱うユーティリティ・クラスです。
     *
     * @author higa
     */
    public abstract class URLUtil {
    
        /** プロトコルを正規化するためのマップ */
        protected static final Map<String, String> CANONICAL_PROTOCOLS = newHashMap();
        static {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(map.isEmpty(), is(false));
            assertThat(map.get(Foo.class.getTypeParameters()[0]), is(sameClass(Object.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testGenericMethod() throws Exception {
            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Fuga.class);
            assertThat(map, is(notNullValue()));
            assertThat(map.isEmpty(), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top