protected AbstractWeighting(FlagEncoder encoder) { this.flagEncoder = encoder; if (!flagEncoder.isRegistered()) throw new IllegalStateException("Make sure you add the FlagEncoder " + flagEncoder + " to an EncodingManager before using it elsewhere"); if (!isValidName(getName())) throw new IllegalStateException("Not a valid name for a Weighting: " + getName()); }
protected AbstractWeighting(FlagEncoder encoder) { this.flagEncoder = encoder; if (!flagEncoder.isRegistered()) throw new IllegalStateException("Make sure you add the FlagEncoder " + flagEncoder + " to an EncodingManager before using it elsewhere"); if (!isValidName(getName())) throw new IllegalStateException("Not a valid name for a Weighting: " + getName()); }
public AbstractWeighting( FlagEncoder encoder ) { this.flagEncoder = encoder; if (!flagEncoder.isRegistered()) throw new IllegalStateException("Make sure you add the FlagEncoder " + flagEncoder + " to an EncodingManager before using it elsewhere"); if (!isValidName(getName())) throw new IllegalStateException("Not a valid name for a Weighting: " + getName()); }
public AbstractWeighting(FlagEncoder encoder) { this.flagEncoder = encoder; if (!flagEncoder.isRegistered()) throw new IllegalStateException("Make sure you add the FlagEncoder " + flagEncoder + " to an EncodingManager before using it elsewhere"); if (!isValidName(getName())) throw new IllegalStateException("Not a valid name for a Weighting: " + getName()); }