Package javax.time.calendar.zone

Examples of javax.time.calendar.zone.ZoneRulesGroup


            return true;
        }
        if (ZoneRulesGroup.isValidGroup(groupID) == false) {
            return false;
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        return group.isValidRules(regionID, versionID);
    }
View Full Code Here


    public ZoneRules getRules() {
        // fixed rules always in transient field
        if (rules != null) {
            return rules;
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        ZoneRules r = group.getRules(regionID, versionID);
        if (versionID.length() > 0) {
            rules = r;
        }
        return r;
    }
View Full Code Here

            return getRules().getOffset(dateTime).equals(dateTime.getOffset());
        }
        if (ZoneRulesGroup.isValidGroup(groupID) == false) {
            return false;
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        return group.isValidRulesFor(regionID, versionID, dateTime);
    }
View Full Code Here

            if (getRules().getOffset(dateTime).equals(dateTime.getOffset()) == false) {
                throw new CalendricalException("Fixed time zone " + getID() + " is invalid for date-time " + dateTime);
            }
            return ZoneRules.fixed(getRules().getOffset(dateTime));
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        return group.getRulesValidFor(regionID, versionID, dateTime);
    }
View Full Code Here

                throw new CalendricalException("Invalid time zone ID: " + ex.toString(), ex);
            }
           
        } else {
            int pos = zoneID.indexOf(':');
            ZoneRulesGroup group;
            if (pos >= 0) {
                group = ZoneRulesGroup.getGroup(zoneID.substring(0, pos))// validates ID
                zoneID = zoneID.substring(pos + 1);
            } else {
                group = ZoneRulesGroup.getGroup("TZDB")// validates ID
            }
            pos = zoneID.indexOf('#');
            String versionID = "";
            if (pos >= 0) {
                versionID = zoneID.substring(pos + 1);
                zoneID = zoneID.substring(0, pos);
            }
            ZoneRules rules = group.getRules(zoneID, versionID)// validates IDs
            return new TimeZone(group.getID(), zoneID, versionID, rules);
        }
    }
View Full Code Here

            return true;
        }
        if (ZoneRulesGroup.isValidGroup(groupID) == false) {
            return false;
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        return group.isValidRules(regionID, versionID);
    }
View Full Code Here

    public ZoneRules getRules() {
        // fixed rules always in transient field
        if (rules != null) {
            return rules;
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        ZoneRules r = group.getRules(regionID, versionID);
        if (versionID.length() > 0) {
            rules = r;
        }
        return r;
    }
View Full Code Here

            return getRules().getOffset(dateTime).equals(dateTime.getOffset());
        }
        if (ZoneRulesGroup.isValidGroup(groupID) == false) {
            return false;
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        return group.isValidRulesFor(regionID, versionID, dateTime);
    }
View Full Code Here

            if (getRules().getOffset(dateTime).equals(dateTime.getOffset()) == false) {
                throw new CalendricalException("Fixed time zone " + getID() + " is invalid for date-time " + dateTime);
            }
            return ZoneRules.fixed(getRules().getOffset(dateTime));
        }
        ZoneRulesGroup group = ZoneRulesGroup.getGroup(groupID);
        return group.getRulesValidFor(regionID, versionID, dateTime);
    }
View Full Code Here

TOP

Related Classes of javax.time.calendar.zone.ZoneRulesGroup

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.