private ProducerSpec() { final int prime = 31; int hash = 1; hash = prime * hash + producer.hashCode(); hash = prime * hash + (universeSpec == null ? 0 : universeSpec.hashCode()); this.hash = hash; }
private ChannelSpec() { final int prime = 31; int hash = 1; hash = prime * hash + (channel == null ? 0 : channel.hashCode()); hash = prime * hash + producer.hashCode(); hash = prime * hash + (universeSpec == null ? 0 : universeSpec.hashCode()); this.hash = hash; }
public FeaturePackLocation(UniverseSpec universeSpec, String producer, String channelName, String frequency, String build) { this.universeSpec = universeSpec; this.producer = producer; this.channel = channelName; this.frequency = frequency; this.build = build; final int prime = 31; int hash = 1; hash = prime * hash + ((build == null) ? 0 : build.hashCode()); hash = prime * hash + ((channel == null) ? 0 : channel.hashCode()); hash = prime * hash + ((frequency == null) ? 0 : frequency.hashCode()); hash = prime * hash + producer.hashCode(); hash = prime * hash + (universeSpec == null ? 0 : universeSpec.hashCode()); this.hash = hash; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((producerOrigins == null) ? 0 : producerOrigins.hashCode()); result = prime * result + ((defaultUniverse == null) ? 0 : defaultUniverse.hashCode()); result = prime * result + ((fpDeps == null) ? 0 : fpDeps.hashCode()); result = prime * result + ((fpDepsByOrigin == null) ? 0 : fpDepsByOrigin.hashCode()); result = prime * result + ((transitiveDeps == null) ? 0 : transitiveDeps.hashCode()); result = prime * result + ((universeSpecs == null) ? 0 : universeSpecs.hashCode()); return result; }