Package org.apache.tapestry.ioc.util

Examples of org.apache.tapestry.ioc.util.TimePeriod


        add(configuration, String.class, TimePeriod.class, new Coercion<String, TimePeriod>()
        {
            public TimePeriod coerce(String input)
            {
                return new TimePeriod(input);
            }
        });

        add(configuration, TimePeriod.class, Long.class, new Coercion<TimePeriod, Long>()
        {
View Full Code Here


                {new boolean[]{true, false}, List.class, Arrays.asList(true, false)},

                {"foo/bar/baz.txt", File.class, new File("foo/bar/baz.txt")},


                {new TimePeriod("2 h"), Long.class, 2 * 60 * 60 * 1000l},
                {"2 h", TimePeriod.class, new TimePeriod("120 m")},

                {null, Long.class, 0l}, {null, Short.class, (short) 0}, {null, Byte.class, (byte) 0},
                {null, BigDecimal.class, BigDecimal.ZERO}, {null, Float.class, 0f},
                {null, BigInteger.class, BigInteger.ZERO},

View Full Code Here

TOP

Related Classes of org.apache.tapestry.ioc.util.TimePeriod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.