private Long getLongProperty()

in src/main/java/org/apache/sling/commons/scheduler/impl/WhiteboardHandler.java [86:95]


    private Long getLongProperty(final ServiceReference<?> ref, final String name) {
        final Object obj = ref.getProperty(name);
        if ( obj == null ) {
            return null;
        }
        if ( obj instanceof Long ) {
            return (Long)obj;
        }
        throw new IllegalArgumentException("Property " + name + " is not of type Long");
    }