Class RuleSet


  • public class RuleSet
    extends java.lang.Object
    RuleSet - models a set of rules that document when to start and stop observing daylight savings time across a number of time frames. Rules often come in pairs to tell how to start and end daylight savings time within a particular year, and only one pair of rules should be valid for any particular time frame. One particular pair of rules will be considered the current rule that is in effect for the zone. The current rules stay in effect until the government overseeing the time zone decides to change the rules.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name  
      protected java.util.ArrayList<Rule> rules  
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Rule rule)  
      java.lang.String getName()  
      java.util.ArrayList<Rule> getRules()  
      void setName​(java.lang.String name)  
      void sortRules()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • rules

        protected java.util.ArrayList<Rule> rules
    • Constructor Detail

      • RuleSet

        public RuleSet()
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • add

        public void add​(Rule rule)
      • sortRules

        public void sortRules()
      • getRules

        public java.util.ArrayList<Rule> getRules()