public Optional<E> get(int index) {
        return getOptional(linkedList)
                .filter(getGreaterSize(0).and(getGreaterSize(index)))
                .map(l -> l.get(index));
    }
public Optional < E > get ( int index ) { return getOptional ( linkedList ) . filter ( getGreaterSize ( 0 ) . and ( getGreaterSize ( index ) ) ) . map ( l -> l . get ( index ) ) ; }
Get optional.

@param index the index
@return the optional