protected AbstractProtocolDescriptor(int version,int architecture,int minimumType,int maximumType,int weight){
  this.version=version;
  this.architecture=architecture;
  this.minimumType=minimumType;
  this.maximumType=maximumType;
  this.weight=weight;
  hashCode=Objects.hash(version,architecture,minimumType,maximumType,weight);
}

protected AbstractProtocolDescriptor ( int version , int architecture , int minimumType , int maximumType , int weight ) { this . version = version ; this . architecture = architecture ; this . minimumType = minimumType ; this . maximumType = maximumType ; this . weight = weight ; hashCode = Objects . hash ( version , architecture , minimumType , maximumType , weight ) ; }
initializes the basic protocoldescriptor fields .
