/** * Returns this version number's minor component. * * @return the minor component or <code>null</code> if this version number * doesn't have a minor component. */ public Integer getMicro() { return getComponent(MICRO); }
/** * Return any current value of the attribute that is being built. * * @return any current value of the attribute that is being built. */ public List<Object> getValue() { return value == null ? null : CollectionUtil.asReadOnlyList(value); }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
public AttributesToGetSearchResultsHandler(final ResultsHandler handler, final String[] attrsToGet) { super(attrsToGet); Assertions.nullCheck(handler, "handler"); this.handler = handler; }
@Override public boolean equals(Object o) { if (o instanceof Version) { return compareTo((Version) o) == 0; } return false; }
/** * Call print for every string in the array. * * @throws NullPointerException * if value is null. */ public void print(final String[] value) { for (int i = 0; i < value.length; i++) { assert value[i] != null; print(value[i]); } }
/** * Finds the index of the first non digit. * * @param str String to search for a non digit. * @return -1 if not found otherwise the index. */ public static int indexOfNonDigit(final String str) { return indexOfNonDigit(str, 0); }
/** * Call println for every string in the array. */ public void println(final String[] value) { assert value != null; for (int i = 0; i < value.length; i++) { assert value[i] != null; println(value[i]); } }
/** * Creates a new version from components. * * @param components * the components */ public static Version create(Integer... components) { return new Version(components); }
/** * Return the string of digits from string. * * @param str * Source string to search. */ public static String subDigitString(String str) { return subDigitString(str, 0); }
public ApplicationClassLoaderHandler(final ClassLoader applicationClassLoader, final ObjectStreamHandler target) { Assertions.nullCheck(applicationClassLoader, "applicationClassLoader"); Assertions.nullCheck(target, "target"); this.applicationClassLoader = applicationClassLoader; this.target = target; }
/** * Returns this version number's major component. * * @return the major component; never null. */ public Integer getMajor() { return getComponent(MAJOR); }
/** * Returns this version number's minor component. * * @return the minor component or <code>null</code> if this version * number doesn't have a minor component. */ public Integer getMinor() { return getComponent(MINOR); }
/** * Returns this version number's major component. * * @return the major component; never null. */ public Integer getMajor() { return getComponent(MAJOR); }
/** * Returns this version number's minor component. * * @return the minor component or <code>null</code> if this version number * doesn't have a minor component. */ public Integer getMinor() { return getComponent(MINOR); }