本文整理了Java中org.osgi.framework.Version.toString0()
方法的一些代码示例,展示了Version.toString0()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.toString0()
方法的具体详情如下:
包路径:org.osgi.framework.Version
类名称:Version
方法名:toString0
[英]Internal toString behavior
[中]内部toString行为
代码示例来源:origin: org.osgi/org.osgi.core
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: org.osgi/org.osgi.core
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + major + "\"");
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + minor + "\"");
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + micro + "\"");
continue;
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": invalid qualifier \"" + qualifier + "\"");
代码示例来源:origin: org.osgi/org.osgi.core
/**
* Returns the string representation of this version range.
*
* <p>
* The format of the version range string will be a version string if the
* right end point is <i>Infinity</i> ({@code null}) or an interval string.
*
* @return The string representation of this version range.
*/
@Override
public String toString() {
String s = versionRangeString;
if (s != null) {
return s;
}
String leftVersion = left.toString();
if (right == null) {
StringBuffer result = new StringBuffer(leftVersion.length() + 1);
result.append(left.toString0());
return versionRangeString = result.toString();
}
String rightVerion = right.toString();
StringBuffer result = new StringBuffer(leftVersion.length() + rightVerion.length() + 5);
result.append(leftClosed ? LEFT_CLOSED : LEFT_OPEN);
result.append(left.toString0());
result.append(ENDPOINT_DELIMITER);
result.append(right.toString0());
result.append(rightClosed ? RIGHT_CLOSED : RIGHT_OPEN);
return versionRangeString = result.toString();
}
代码示例来源:origin: org.osgi/org.osgi.core
result.append(attributeName);
result.append(">=");
result.append(left.toString0());
result.append(')');
} else {
result.append(attributeName);
result.append("<=");
result.append(left.toString0());
result.append("))");
result.append(attributeName);
result.append("<=");
result.append(right.toString0());
result.append(')');
} else {
result.append(attributeName);
result.append(">=");
result.append(right.toString0());
result.append("))");
代码示例来源:origin: org.eclipse/org.eclipse.osgi
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
public String toString() {
return toString0();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
public String toString() {
return toString0();
}
代码示例来源:origin: org.knopflerfish/framework
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
public String toString() {
return toString0();
}
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
public String toString() {
return toString0();
}
代码示例来源:origin: org.eclipse/osgi
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.osgi
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: apache/felix
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi
/**
* Returns the string representation of this version identifier.
*
* <p>
* The format of the version string will be {@code major.minor.micro} if
* qualifier is the empty string or {@code major.minor.micro.qualifier}
* otherwise.
*
* @return The string representation of this version identifier.
*/
@Override
public String toString() {
return toString0();
}
代码示例来源:origin: org.eclipse/osgi
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + major + "\"");
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + minor + "\"");
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + micro + "\"");
continue;
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": invalid qualifier \"" + qualifier + "\"");
代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + major + "\"");
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + minor + "\"");
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": negative number \"" + micro + "\"");
continue;
throw new IllegalArgumentException("invalid version \"" + toString0() + "\": invalid qualifier \"" + qualifier + "\"");
代码示例来源:origin: org.eclipse/osgi
/**
* Returns the string representation of this version range.
*
* <p>
* The format of the version range string will be a version string if the
* right end point is <i>Infinity</i> ({@code null}) or an interval string.
*
* @return The string representation of this version range.
*/
@Override
public String toString() {
String s = versionRangeString;
if (s != null) {
return s;
}
String leftVersion = left.toString();
if (right == null) {
StringBuffer result = new StringBuffer(leftVersion.length() + 1);
result.append(left.toString0());
return versionRangeString = result.toString();
}
String rightVerion = right.toString();
StringBuffer result = new StringBuffer(leftVersion.length() + rightVerion.length() + 5);
result.append(leftClosed ? LEFT_CLOSED : LEFT_OPEN);
result.append(left.toString0());
result.append(ENDPOINT_DELIMITER);
result.append(right.toString0());
result.append(rightClosed ? RIGHT_CLOSED : RIGHT_OPEN);
return versionRangeString = result.toString();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Returns the string representation of this version range.
*
* <p>
* The format of the version range string will be a version string if the
* right end point is <i>Infinity</i> ({@code null}) or an interval string.
*
* @return The string representation of this version range.
*/
@Override
public String toString() {
String s = versionRangeString;
if (s != null) {
return s;
}
String leftVersion = left.toString();
if (right == null) {
StringBuffer result = new StringBuffer(leftVersion.length() + 1);
result.append(left.toString0());
return versionRangeString = result.toString();
}
String rightVerion = right.toString();
StringBuffer result = new StringBuffer(leftVersion.length() + rightVerion.length() + 5);
result.append(leftClosed ? LEFT_CLOSED : LEFT_OPEN);
result.append(left.toString0());
result.append(ENDPOINT_DELIMITER);
result.append(right.toString0());
result.append(rightClosed ? RIGHT_CLOSED : RIGHT_OPEN);
return versionRangeString = result.toString();
}
内容来源于网络,如有侵权,请联系作者删除!