/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }
/** * Obtains an instance of <code>Seconds</code> that may be cached. * <code>Seconds</code> is immutable, so instances can be cached and shared. * This factory method provides access to shared instances. * * @param seconds the number of seconds to obtain an instance for * @return the instance of Seconds */ public static Seconds seconds(int seconds) { switch (seconds) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Seconds(seconds); } }