class LongConverter extends AbstractAttributeConverter {

    /**
     * <p>Constructor for LongConverter.</p>
     */
    public LongConverter() {
        super(Long.class);
    }

    /** {@inheritDoc} */
    @Override
    protected Long internalConvert(final Object attribute) {<FILL_FUNCTION_BODY>}
}

        if (attribute instanceof Integer) {
            return Long.valueOf((Integer) attribute);
        } else if (attribute instanceof String) {
            return Long.parseLong((String) attribute);
        }
        return null;
    
<methods>public java.lang.Boolean accept(java.lang.String) ,public java.lang.Object convert(java.lang.Object) <variables>private final non-sealed Class<? extends java.lang.Object> clazz