Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for maps (0.12 sec)

  1. src/main/java/org/codelibs/core/collection/Maps.java

         */
        protected Maps(final Map<K, V> map) {
            this.map = map;
        }
    
        /**
         * {@link Map}にキーと値を追加します。
         *
         * @param key
         *            <code>Map</code>に追加されるキー
         * @param value
         *            <code>Map</code>に追加される値
         * @return このインスタンス自身
         */
        public Maps<K, V> $(final K key, final V value) {
            map.put(key, value);
            return this;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/MapsTest.java

    import static org.codelibs.core.collection.Maps.map;
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertThat;
    
    import java.util.Map;
    
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class MapsTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final Map<String, Integer> map = map("a", 1).$("b", 2).$("c", 3).$();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            final Map<String, Object> map = newHashMap();
            map.put("aaa", "1,000");
            final Map<String, Object> map2 = newHashMap();
            BeanUtil.copyMapToMap(map, map2, converter(new NumberConverter("#,##0")));
            assertEquals("1,000", map2.get("aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopyMapToMap_converter3() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/util/BeanMapTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            final BeanMap map = new BeanMap();
            map.put("aaa", 1);
            map.put("bbb", 2);
            assertThat(map.get("aaa"), is((Object) 1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet_NotContains() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

         * @return アノテーションの要素の名前と値からなる{@link Map}
         */
        public static Map<String, Object> getProperties(final Annotation annotation) {
            assertArgumentNotNull("annotation", annotation);
    
            final Map<String, Object> map = newHashMap();
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(annotation.annotationType());
            for (final String name : beanDesc.getMethodNames()) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/exception/IllegalKeyOfBeanMapException.java

            super("key", "ECL0016", asArray(key, map));
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/MethodDesc.java

        /**
         * メソッドの引数型がパラメタ化された{@link Map}の場合、そのキー型を返します。
         *
         * @param index
         *            引数のインデックス
         * @return メソッドの引数がパラメタ化された{@link Map}の場合はそのキー型、そうでない場合は{@literal null}
         */
        Class<?> getKeyClassOfMap(int index);
    
        /**
         * メソッドの引数型がパラメタ化された{@link Map}の場合、その値型を返します。
         *
         * @param index
         *            引数のインデックス
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/ConstructorDesc.java

        Class<?> getElementClassOfCollection(int index);
    
        /**
         * メソッドの引数型がパラメタ化された{@link Map}の場合、そのキー型を返します。
         *
         * @param index
         *            引数のインデックス
         * @return メソッドの引数がパラメタ化された{@link Map}の場合はそのキー型、そうでない場合は{@literal null}
         */
        Class<?> getKeyClassOfMap(int index);
    
        /**
         * メソッドの引数型がパラメタ化された{@link Map}の場合、その値型を返します。
         *
         * @param index
         *            引数のインデックス
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

         * JavaBeansのデリミタを設定します。
         * <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
    - 18.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/beans/FieldDesc.java

        Class<?> getElementClassOfCollection();
    
        /**
         * このフィールドがパラメタ化された{@link Map}の場合、そのキー型を返します。
         *
         * @return このフィールドがパラメタ化された{@link Map}の場合はそのキー型、そうでない場合は{@literal null}
         */
        Class<?> getKeyClassOfMap();
    
        /**
         * このフィールドがパラメタ化された{@link Map}の場合、その値型を返します。
         *
         * @return このフィールドがパラメタ化された{@link Map}の場合はその値型、そうでない場合は{@literal null}
         */
        Class<?> getValueClassOfMap();
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.5K bytes
    - Viewed (0)
Back to top