public List<YokeCookie> getAllCookies(@NotNull final String name) {
        List<YokeCookie> foundCookies = new ArrayList<>();
        if (cookies != null) {
            for (YokeCookie c : cookies) {
                if (name.equals(c.name())) {
                    foundCookies.add(c);
                }
            }
        }
        return foundCookies;
    }
public List < YokeCookie > getAllCookies ( @ NotNull final String name ) { List < YokeCookie > foundCookies = new ArrayList < > ( ) ; if ( cookies != null ) { for ( YokeCookie c : cookies ) { if ( name . equals ( c . name ( ) ) ) { foundCookies . add ( c ) ; } } } return foundCookies ; }
Allow getting all Cookie by name.

@param name The key to get
@return The found objects