Set the version of the packet format of Bluetooth LE ucode Marker.

@param version
The version number. The value should be in the range
from 0 to 255.

@throws IllegalArgumentException
The given value is out of the valid range.
341011
public void setVersion(int version)
    {
        if (version < 0 || 255 < version)
        {
            throw new IllegalArgumentException("'version' is out of the valid range: " + version);
        }

        mVersion = version;

        getData()[VERSION_INDEX] = (byte)(version & 0xFF);
    }
1273441
public static Version copy(Version version) {
        if (version == null) {
            return null;
        }
        Version result = new Version();
        result.labels = new LinkedList<String>(version.labels);
        result.numbers = new LinkedList<Integer>(version.numbers);
        result.snapshot = version.snapshot;
        return result;
    }
642836
public static void setVersion(Document doc, Version version) {
	Element root = doc.getDocumentElement();
	root.setAttribute("version", version.getMajor() + "." + version.getMinor());

    }
787541
public void setVersion(String v)
  {
    m_Version = v;
    m_isCompatibleMode = (Double.valueOf(v).doubleValue() > Constants.XSLTVERSUPPORTED);
  }
70240
public void setEmfRuntimeVersion(final String emfRuntimeVersion) {
    this.emfRuntimeVersion = GenRuntimeVersion.get(emfRuntimeVersion);
    if ((this.emfRuntimeVersion == null)) {
      EMFGeneratorFragment2.LOG.warn(("Illegal EMF runtime version: " + emfRuntimeVersion));
    }
  }
881338
public String getIdFromVersion(String version)
    {
        MessageVersion recMessageVersion = this.getMessageVersion(version);
        String idVersion = DBConstants.BLANK;
        if ((idVersion != null) && (!recMessageVersion.getField(MessageVersion.NAMESPACE).isNull()))
            idVersion = recMessageVersion.getField(MessageVersion.VERSION_ID).toString();
        if ((idVersion == null) || (idVersion.length() == 0))
            idVersion = "OTA" + version;
        return idVersion;
    }
446945
def setVersion(self, version):
        
        try:
            sha = self.versions(version).commit.sha
            self.git.reset("--hard", sha)
        except Exception, e:
            raise RepoError(e)
2399
public static final PlanVersionNotFoundException planVersionNotFoundException(String planId, String version) {
        return new PlanVersionNotFoundException(Messages.i18n.format("PlanVersionDoesNotExist", planId, version)); //$NON-NLS-1$
    }
551048
public function setVersion(string $version)
    {
        if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) {
            throw new \InvalidArgumentException(
                'Version number is invalid; ' . $version . ' does not match '
                . 'x.x.x (where x is a number)'
            );
        }

        $this->version = $version;
    }
312224
public void setBugzillaVersion(final String bugzillaVersion) {
        if (bugzillaVersion == null && this.bugzillaVersion == null) {
            return;
        } else if (bugzillaVersion == null) {
            removeChild(this.bugzillaVersion);
            this.bugzillaVersion = null;
        } else if (this.bugzillaVersion == null) {
            this.bugzillaVersion = new KeyValueNode<String>(CommonConstants.CS_BUGZILLA_VERSION_TITLE, bugzillaVersion);
            appendChild(this.bugzillaVersion, false);
        } else {
            this.bugzillaVersion.setValue(bugzillaVersion);
        }
    }
1111747
public function setVersion($version, $id = false)
    {
        if ($id === false) {
            $id = $this->getMainBlock()->getId();
        }

        $this->versionMap[$id] = $version;
    }
526553
public void setGuaranteedProtocolVersion(byte value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setGuaranteedProtocolVersion", Byte.valueOf(value));
        getHdr2().setField(JsHdr2Access.GUARANTEED_SET_PROTOCOLVERSION, Byte.valueOf(value));
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setGuaranteedProtocolVersion");
    }
64051
public void setPOMVersion(final String pomVersion) {
        if (pomVersion == null && this.pomVersion == null) {
            return;
        } else if (pomVersion == null) {
            removeChild(this.pomVersion);
            this.pomVersion = null;
        } else if (this.pomVersion == null) {
            this.pomVersion = new KeyValueNode<String>(CommonConstants.CS_MAVEN_POM_VERSION_TITLE, pomVersion);
            appendChild(this.pomVersion, false);
        } else {
            this.pomVersion.setValue(pomVersion);
        }
    }
640290
public function setVersion($version)
    {
        if (Version::isKnown($version) === true) {
            $this->version = Version::appendPatchVersion($version);
        } else {
            $msg = "Version '{$version}' is not a known QTI version. Known versions are '" . implode(', ', Version::knownVersions()) . "'";
            throw new InvalidArgumentException($msg);
        }
    }
225276
public boolean isModifiedOnVersion(String version) {
		if( this.modificationHistory.isModifiedOnVersion(version)
				|| this.outParameter.isModifiedOnVersion(version) ) {
			return true;
		}
		for(APIParameter inParameter : inParameters) {
			if(inParameter.isModifiedOnVersion(version)) {
				return true;
			}
		}
		return false;
	}
927391
public static VersionNumber parseVersion(@Nonnull final String version) {
		return VersionParser.parseVersion(Check.notNull(version, "version"));
	}
988153
public static Version valueOf(String version) throws IllegalArgumentException {
		NullArgumentException.checkNotNull(version, "version");
		int dot1Pos = version.indexOf('.');
		if(dot1Pos==-1) throw new IllegalArgumentException(version);
		int dot2Pos = version.indexOf('.', dot1Pos+1);
		if(dot2Pos==-1) throw new IllegalArgumentException(version);
		int dot3Pos = version.indexOf('.', dot2Pos+1);
		if(dot3Pos==-1) throw new IllegalArgumentException(version);
		return getInstance(
			Integer.parseInt(version.substring(0, dot1Pos)),
			Integer.parseInt(version.substring(dot1Pos+1, dot2Pos)),
			Integer.parseInt(version.substring(dot2Pos+1, dot3Pos)),
			Integer.parseInt(version.substring(dot3Pos+1))
		);
	}