org.jasig.schedassist.model
Class MeetingDurations
java.lang.Object
org.jasig.schedassist.model.MeetingDurations
- All Implemented Interfaces:
- Serializable
public final class MeetingDurations
- extends Object
- implements Serializable
Class to represent meeting durations.
- Version:
- $Id: MeetingDurations.java 2335 2010-08-06 19:16:06Z npblair $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIFTEEN
public static final MeetingDurations FIFTEEN
THIRTY
public static final MeetingDurations THIRTY
THIRTY_SIXTY
public static final MeetingDurations THIRTY_SIXTY
FORTYFIVE
public static final MeetingDurations FORTYFIVE
getKey
public String getKey()
- Returns:
- the key
getMinLength
public int getMinLength()
- Returns:
- the minLength
getMaxLength
public int getMaxLength()
- Returns:
- the maxLength
isDoubleLength
public boolean isDoubleLength()
- Returns:
- true if maxLength is 2*minLength
fromKey
public static MeetingDurations fromKey(String key)
- Creates a
MeetingDurations object from the argument String.
If the argument is a single number, a MeetingDurations will be created
with minValue and maxValue set to the same integer value.
This method also accepts a comma separated string containing two integers; the first
will set minValue, the latter maxValue.
- Parameters:
key -
- Returns:
- an appropriate MeetingDurations instance from the key argument
- Throws:
IllegalArgumentException - if the key contains characters that do not represent integers- See Also:
Integer.parseInt(String)
Copyright © 2011 Jasig. All Rights Reserved.