code: public int getLeadingBitCount(boolean network) {
  		int extraLeading = Long.SIZE - getBitCount();
  		if(network) {
  			//leading ones
  			return Long.numberOfLeadingZeros(~getDivisionValue() & getMaxValue()) - extraLeading;
  		}
  		// leading zeros
  		return Long.numberOfLeadingZeros(getDivisionValue()) - extraLeading;
  	}
docs: Returns the number of consecutive leading one or zero bits.
  If network is true, returns the number of consecutive leading one bits.
  Otherwise, returns the number of consecutive leading zero bits.
  <p>
  This method applies only to the lower value of the range if this segment represents multiple values.
  @param network
  @return