/** * Removes the given base path from the set of members of this directory * if and only if this covariant file system node implements a directory. * * @param member The base path of the member to remove. * @return Whether the member has been removed or no equal member was * present in the directory. * @throws NullPointerException if this covariant file system node does * not implement a directory. */ public boolean remove(String member) { return getMembers().remove(member); } }
/** * Adds the given base path to the set of members of this directory * if and only if this covariant file system node implements a directory. * * @param member The base path of the member to add. * @return Whether the member has been added or an equal member was * already present in the directory. * @throws NullPointerException if this covariant file system node does * not implement a directory. */ public boolean add(String member) { return getMembers().add(member); }