Package org.exolab.castor.types

Examples of org.exolab.castor.types.TimeDuration


     * @return a random Castor timeDuration.
     */
    public static TimeDuration getRandom(TimeDuration date, Class c) {
        long randLong = _rand.nextInt();
        randLong = (randLong > 0) ? randLong : -randLong;
        return new TimeDuration(randLong);
    }
View Full Code Here


     * @return a random Castor recurringDuration.
     */
    public static RecurringDuration getRandom(RecurringDuration recurring, Class c) {
        short randShort;
        long randLong = _rand.nextLong();
        TimeDuration randDuration = new TimeDuration(randLong);
        RecurringDuration result = new RecurringDuration(randDuration, randDuration);
        short[] values = new short[10];
        //only positive values are allowed
        //century
        randShort = (short) _rand.nextInt(99);
View Full Code Here

TOP

Related Classes of org.exolab.castor.types.TimeDuration

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.