try to read the next argument , advancing the current index if successful or returning an absent optional if not . concode_field_sep List<SingleArg> args concode_elem_sep String rawInput concode_elem_sep int index concode_field_sep String next concode_elem_sep List<String> getAll concode_elem_sep void previous concode_elem_sep int getRawPosition concode_elem_sep void insertArg concode_elem_sep ArgumentParseException createError concode_elem_sep boolean hasNext concode_elem_sep List<SingleArg> getArgs concode_elem_sep String peek concode_elem_sep Object getState concode_elem_sep void removeArgs concode_elem_sep void setState concode_elem_sep String getRaw
Optional < String > function ( ) { return hasNext ( ) ? Optional . of ( this . args . get ( ++ this . index ) . getValue ( ) ) : Optional . < String > empty ( ) ; }