public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj instanceof PeriodType == false) {
    return false;
  }
  PeriodType other=(PeriodType)obj;
  return (Arrays.equals(iTypes,other.iTypes));
}

public boolean equals ( Object obj ) { if ( this == obj ) { return true ; } if ( obj instanceof PeriodType == false ) { return false ; } PeriodType other = ( PeriodType ) obj ; return ( Arrays . equals ( iTypes , other . iTypes ) ) ; }
compares this type to another object . to be equal , the object must be a periodtype with the same set of fields .
