Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for BeanMap (0.07 sec)

  1. src/main/java/org/codelibs/core/beans/util/BeanMap.java

    /**
     * A map with String keys that throws an exception when accessing (get) a non-existent key.
     *
     * @author higa
     */
    public class BeanMap extends LinkedHashMap<String, Object> {
    
        private static final long serialVersionUID = 1;
    
        /**
         * Creates a new {@link BeanMap}.
         */
        public BeanMap() {
        }
    
        @Override
        public Object get(final Object key) {
            if (!containsKey(key)) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            src.aaa = "aaa";
            final BeanMap dest = new BeanMap();
            BeanUtil.copyBeanToMap(src, dest);
            assertThat(dest.get("aaa"), is((Object) "aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopy_mapToBean() throws Exception {
            final BeanMap src = new BeanMap();
            src.put("aaa", "aaa");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanMapTest.java

            exception.expect(IllegalKeyOfBeanMapException.class);
            exception.expectMessage(is("[ECL0016]key[xxx] is not included in this BeanMap : {aaa=1, bbb=2}."));
            final BeanMap map = new BeanMap();
            map.put("aaa", 1);
            map.put("bbb", 2);
            map.get("xxx");
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/exception/IllegalKeyOfBeanMapException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import java.util.Map;
    
    /**
     * Exception thrown when using a key not contained in a {@literal BeanMap}.
     *
     * @author koichik
     */
    public class IllegalKeyOfBeanMapException extends ClIllegalArgumentException {
    
        private static final long serialVersionUID = 3456740832476626338L;
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top