Java Code Examples for org.joda.time.tz.Provider#getAvailableIDs()

The following examples show how to use org.joda.time.tz.Provider#getAvailableIDs() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Cardumen_00137_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 2
Source File: Time_9_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 3
Source File: Time_23_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 4
Source File: Time_17_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 5
Source File: Time_17_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 6
Source File: Time_8_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 7
Source File: DateTimeZone.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 8
Source File: Time_8_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 9
Source File: DateTimeZone.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 10
Source File: Cardumen_00137_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 11
Source File: Cardumen_00189_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 12
Source File: Cardumen_0070_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 13
Source File: Cardumen_0070_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 14
Source File: Cardumen_00282_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 15
Source File: Cardumen_00282_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 16
Source File: Cardumen_0074_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 17
Source File: Cardumen_0074_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 18
Source File: Cardumen_00239_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 19
Source File: Cardumen_00239_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}
 
Example 20
Source File: Time_19_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Sets the zone provider factory without performing the security check.
 * 
 * @param provider  provider to use, or null for default
 * @throws IllegalArgumentException if the provider is invalid
 */
private static void setProvider0(Provider provider) {
    if (provider == null) {
        provider = getDefaultProvider();
    }
    Set<String> ids = provider.getAvailableIDs();
    if (ids == null || ids.size() == 0) {
        throw new IllegalArgumentException
            ("The provider doesn't have any available ids");
    }
    if (!ids.contains("UTC")) {
        throw new IllegalArgumentException("The provider doesn't support UTC");
    }
    if (!UTC.equals(provider.getZone("UTC"))) {
        throw new IllegalArgumentException("Invalid UTC zone provided");
    }
    cProvider = provider;
    cAvailableIDs = ids;
}