Code example for IllegalStateException

0
        } 
    } 
 
    public static long getUniqueID(String identifier) {
        if(_packageNameHash == 0) {
            throw new IllegalStateException( ID.class.getName() + " is not initialized" );
        } 
        return (_packageNameHash & 0x00000000FFFFFFFFL) | ( (long) identifier.hashCode() << 32 );
    } 
     
    public static long getUniqueID() { 
        if(_packageNameHash == 0) {
            throw new IllegalStateException( ID.class.getName() + " is not initialized" );
        } 
        return _packageNameHash;
    } 
}