code: public boolean isBetween(Version from, Version to) {
          int thisVersion = this.pack();
          int fromVersion = from.pack();
          int toVersion = to.pack();
          return thisVersion >= fromVersion && thisVersion <= toVersion;
      }
docs: Checks if the version is between specified version (both ends inclusive)
  
  @param from
  @param to
  @return true if the version is between from and to (both ends inclusive)