ServerMember update(Member.Type type,Instant time){
  if (this.type != type) {
    this.type=Assert.notNull(type,"type");
    if (time.isAfter(updated)) {
      this.updated=Assert.notNull(time,"time");
    }
    if (typeChangeListeners != null) {
      typeChangeListeners.accept(type);
    }
  }
  return this;
}

ServerMember update ( Member . Type type , Instant time ) { if ( this . type != type ) { this . type = Assert . notNull ( type , "type" ) ; if ( time . isAfter ( updated ) ) { this . updated = Assert . notNull ( time , "time" ) ; } if ( typeChangeListeners != null ) { typeChangeListeners . accept ( type ) ; } } return this ; }
updates the member type .
