public List<String> names(){
  return Collections.unmodifiableList(names);
}

public List < String > names ( ) { return Collections . unmodifiableList ( names ) ; }
returns a list of the names in this object in document order . the returned list is backed by this object and will reflect subsequent changes . it cannot be used to modify this object . attempts to modify the returned list will result in an exception .
