static <TUPLE extends TupleOfNullables, R> TupleGetter<TUPLE, R> getter(int index) {
        return new TupleGetter<TUPLE, R>() {
            @Override
            public int index() {
                return index;
            }

            @Override
            @SuppressWarnings("unchecked")
            public R apply(TUPLE tuple) {
                return (R) tuple.get(index);
            }
        };
    }
Returns a getter method for the specified ordinal element.

@param index    the position of the element to return
@param <TUPLE>  the type of the tuple
@param <R>      the type of the returned element
@return         the created getter
common-parent/tuple/src/main/java/com/speedment/common/tuple/TupleOfNullables.java