id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
153,300 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java | ESigList.findItems | public List<ESigItem> findItems(ESigFilter filter) {
List<ESigItem> list = new ArrayList<ESigItem>();
if (filter == null) {
list.addAll(items);
} else {
for (ESigItem item : items) {
if (filter.matches(item)) {
list.add(item);
... | java | public List<ESigItem> findItems(ESigFilter filter) {
List<ESigItem> list = new ArrayList<ESigItem>();
if (filter == null) {
list.addAll(items);
} else {
for (ESigItem item : items) {
if (filter.matches(item)) {
list.add(item);
... | [
"public",
"List",
"<",
"ESigItem",
">",
"findItems",
"(",
"ESigFilter",
"filter",
")",
"{",
"List",
"<",
"ESigItem",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"ESigItem",
">",
"(",
")",
";",
"if",
"(",
"filter",
"==",
"null",
")",
"{",
"list",
".",
... | Returns a list of sig items that match the specified filter. If the filter is null, all sig
items are returned.
@param filter The esignature filter.
@return List of matching sig items. | [
"Returns",
"a",
"list",
"of",
"sig",
"items",
"that",
"match",
"the",
"specified",
"filter",
".",
"If",
"the",
"filter",
"is",
"null",
"all",
"sig",
"items",
"are",
"returned",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java#L117-L131 |
153,301 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java | ESigList.add | public ESigItem add(IESigType eSigType, String id, String text, String subGroupName, SignState signState, String data,
String session) {
ESigItem item = new ESigItem(eSigType, id);
item.setText(text);
item.setSubGroupName(subGroupName);
item.setSignState(signState... | java | public ESigItem add(IESigType eSigType, String id, String text, String subGroupName, SignState signState, String data,
String session) {
ESigItem item = new ESigItem(eSigType, id);
item.setText(text);
item.setSubGroupName(subGroupName);
item.setSignState(signState... | [
"public",
"ESigItem",
"add",
"(",
"IESigType",
"eSigType",
",",
"String",
"id",
",",
"String",
"text",
",",
"String",
"subGroupName",
",",
"SignState",
"signState",
",",
"String",
"data",
",",
"String",
"session",
")",
"{",
"ESigItem",
"item",
"=",
"new",
... | Ads a new sig item to the list, given the required elements.
@param eSigType The esignature type.
@param id The item id.
@param text The description text.
@param subGroupName The sub group name.
@param signState The signature state.
@param data The data object.
@param session The session id.
@return New sig item. | [
"Ads",
"a",
"new",
"sig",
"item",
"to",
"the",
"list",
"given",
"the",
"required",
"elements",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java#L171-L180 |
153,302 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java | ESigList.add | public ESigItem add(ESigItem item) {
if (!items.contains(item)) {
items.add(item);
fireEvent("ADD", item);
}
return item;
} | java | public ESigItem add(ESigItem item) {
if (!items.contains(item)) {
items.add(item);
fireEvent("ADD", item);
}
return item;
} | [
"public",
"ESigItem",
"add",
"(",
"ESigItem",
"item",
")",
"{",
"if",
"(",
"!",
"items",
".",
"contains",
"(",
"item",
")",
")",
"{",
"items",
".",
"add",
"(",
"item",
")",
";",
"fireEvent",
"(",
"\"ADD\"",
",",
"item",
")",
";",
"}",
"return",
"... | Adds a sig item to the list. Requests to add items already in the list are ignored. If an
item is successfully added, an ESIG.ADD event is fired.
@param item A sig item.
@return The item that was added. | [
"Adds",
"a",
"sig",
"item",
"to",
"the",
"list",
".",
"Requests",
"to",
"add",
"items",
"already",
"in",
"the",
"list",
"are",
"ignored",
".",
"If",
"an",
"item",
"is",
"successfully",
"added",
"an",
"ESIG",
".",
"ADD",
"event",
"is",
"fired",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java#L189-L196 |
153,303 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java | ESigList.remove | public boolean remove(ESigItem item) {
boolean result = items.remove(item);
if (result) {
removed(item);
}
return result;
} | java | public boolean remove(ESigItem item) {
boolean result = items.remove(item);
if (result) {
removed(item);
}
return result;
} | [
"public",
"boolean",
"remove",
"(",
"ESigItem",
"item",
")",
"{",
"boolean",
"result",
"=",
"items",
".",
"remove",
"(",
"item",
")",
";",
"if",
"(",
"result",
")",
"{",
"removed",
"(",
"item",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Removes a sig item from the list. Fires an ESIG.DELETE event if successful.
@param item Item to remove.
@return True if the operation was successful. | [
"Removes",
"a",
"sig",
"item",
"from",
"the",
"list",
".",
"Fires",
"an",
"ESIG",
".",
"DELETE",
"event",
"if",
"successful",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.esig/src/main/java/org/carewebframework/vista/esig/ESigList.java#L233-L241 |
153,304 | js-lib-com/commons | src/main/java/js/util/Types.java | Types.isConcrete | public static boolean isConcrete(Type t)
{
if(t instanceof Class) {
final Class<?> c = (Class<?>)t;
return !c.isInterface() && !Modifier.isAbstract(c.getModifiers());
}
if(t instanceof ParameterizedType) {
final ParameterizedType p = (ParameterizedType)t;
return isConcret... | java | public static boolean isConcrete(Type t)
{
if(t instanceof Class) {
final Class<?> c = (Class<?>)t;
return !c.isInterface() && !Modifier.isAbstract(c.getModifiers());
}
if(t instanceof ParameterizedType) {
final ParameterizedType p = (ParameterizedType)t;
return isConcret... | [
"public",
"static",
"boolean",
"isConcrete",
"(",
"Type",
"t",
")",
"{",
"if",
"(",
"t",
"instanceof",
"Class",
")",
"{",
"final",
"Class",
"<",
"?",
">",
"c",
"=",
"(",
"Class",
"<",
"?",
">",
")",
"t",
";",
"return",
"!",
"c",
".",
"isInterface... | Test if type is concrete, that is, is not interface or abstract. If type to test is parameterized uses its raw
type. If type to test is null returns false.
@param t type to test, possible null.
@return true if type is concrete. | [
"Test",
"if",
"type",
"is",
"concrete",
"that",
"is",
"is",
"not",
"interface",
"or",
"abstract",
".",
"If",
"type",
"to",
"test",
"is",
"parameterized",
"uses",
"its",
"raw",
"type",
".",
"If",
"type",
"to",
"test",
"is",
"null",
"returns",
"false",
"... | f8c64482142b163487745da74feb106f0765c16b | https://github.com/js-lib-com/commons/blob/f8c64482142b163487745da74feb106f0765c16b/src/main/java/js/util/Types.java#L192-L205 |
153,305 | js-lib-com/commons | src/main/java/js/util/Types.java | Types.isNumber | public static boolean isNumber(Type t)
{
for(int i = 0; i < NUMERICAL_TYPES.length; i++) {
if(NUMERICAL_TYPES[i] == t) {
return true;
}
}
return false;
} | java | public static boolean isNumber(Type t)
{
for(int i = 0; i < NUMERICAL_TYPES.length; i++) {
if(NUMERICAL_TYPES[i] == t) {
return true;
}
}
return false;
} | [
"public",
"static",
"boolean",
"isNumber",
"(",
"Type",
"t",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"NUMERICAL_TYPES",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"NUMERICAL_TYPES",
"[",
"i",
"]",
"==",
"t",
")",
"{",
... | Test if type is numeric. A type is considered numeric if is a Java standard class representing a number.
@param t type to test.
@return true if <code>type</code> is numeric. | [
"Test",
"if",
"type",
"is",
"numeric",
".",
"A",
"type",
"is",
"considered",
"numeric",
"if",
"is",
"a",
"Java",
"standard",
"class",
"representing",
"a",
"number",
"."
] | f8c64482142b163487745da74feb106f0765c16b | https://github.com/js-lib-com/commons/blob/f8c64482142b163487745da74feb106f0765c16b/src/main/java/js/util/Types.java#L232-L240 |
153,306 | js-lib-com/commons | src/main/java/js/util/Types.java | Types.isPrimitiveLike | public static boolean isPrimitiveLike(Type t)
{
if(isNumber(t)) {
return true;
}
if(isBoolean(t)) {
return true;
}
if(isEnum(t)) {
return true;
}
if(isCharacter(t)) {
return true;
}
if(isDate(t)) {
return true;
}
if(t == String... | java | public static boolean isPrimitiveLike(Type t)
{
if(isNumber(t)) {
return true;
}
if(isBoolean(t)) {
return true;
}
if(isEnum(t)) {
return true;
}
if(isCharacter(t)) {
return true;
}
if(isDate(t)) {
return true;
}
if(t == String... | [
"public",
"static",
"boolean",
"isPrimitiveLike",
"(",
"Type",
"t",
")",
"{",
"if",
"(",
"isNumber",
"(",
"t",
")",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"isBoolean",
"(",
"t",
")",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"isE... | Test if type is like a primitive? Return true only if given type is a number, boolean, enumeration, character or
string.
@param t type to test.
@return true if this type is like a primitive. | [
"Test",
"if",
"type",
"is",
"like",
"a",
"primitive?",
"Return",
"true",
"only",
"if",
"given",
"type",
"is",
"a",
"number",
"boolean",
"enumeration",
"character",
"or",
"string",
"."
] | f8c64482142b163487745da74feb106f0765c16b | https://github.com/js-lib-com/commons/blob/f8c64482142b163487745da74feb106f0765c16b/src/main/java/js/util/Types.java#L360-L381 |
153,307 | js-lib-com/commons | src/main/java/js/util/Types.java | Types.isClass | public static boolean isClass(String name)
{
if(name == null) {
return false;
}
Matcher matcher = CLASS_NAME_PATTERN.matcher(name);
return matcher.find();
} | java | public static boolean isClass(String name)
{
if(name == null) {
return false;
}
Matcher matcher = CLASS_NAME_PATTERN.matcher(name);
return matcher.find();
} | [
"public",
"static",
"boolean",
"isClass",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"Matcher",
"matcher",
"=",
"CLASS_NAME_PATTERN",
".",
"matcher",
"(",
"name",
")",
";",
"return",
"matcher"... | Test if given name is a valid Java class name. This predicate returns false if name to test is null.
@param name name to test, possible null.
@return true if given name is a valid Java class name. | [
"Test",
"if",
"given",
"name",
"is",
"a",
"valid",
"Java",
"class",
"name",
".",
"This",
"predicate",
"returns",
"false",
"if",
"name",
"to",
"test",
"is",
"null",
"."
] | f8c64482142b163487745da74feb106f0765c16b | https://github.com/js-lib-com/commons/blob/f8c64482142b163487745da74feb106f0765c16b/src/main/java/js/util/Types.java#L515-L522 |
153,308 | tvesalainen/util | util/src/main/java/org/vesalainen/graph/DiGraphIterator.java | DiGraphIterator.getInstance | public static <T> DiGraphIterator<T> getInstance(T root, Function<? super T, ? extends Collection<T>> edges)
{
return new DiGraphIterator<>(root, (y)->edges.apply(y).stream());
} | java | public static <T> DiGraphIterator<T> getInstance(T root, Function<? super T, ? extends Collection<T>> edges)
{
return new DiGraphIterator<>(root, (y)->edges.apply(y).stream());
} | [
"public",
"static",
"<",
"T",
">",
"DiGraphIterator",
"<",
"T",
">",
"getInstance",
"(",
"T",
"root",
",",
"Function",
"<",
"?",
"super",
"T",
",",
"?",
"extends",
"Collection",
"<",
"T",
">",
">",
"edges",
")",
"{",
"return",
"new",
"DiGraphIterator",... | Creates a DiGraphIterator. It will iterate once for every node.
@param root
@param edges | [
"Creates",
"a",
"DiGraphIterator",
".",
"It",
"will",
"iterate",
"once",
"for",
"every",
"node",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/graph/DiGraphIterator.java#L62-L65 |
153,309 | tvesalainen/util | util/src/main/java/org/vesalainen/graph/DiGraphIterator.java | DiGraphIterator.spliterator | public static <T> Spliterator<T> spliterator(T root, Function<? super T, ? extends Stream<T>> edges)
{
DiGraphIterator dgi = new DiGraphIterator(root, edges);
return Spliterators.spliteratorUnknownSize(dgi, 0);
} | java | public static <T> Spliterator<T> spliterator(T root, Function<? super T, ? extends Stream<T>> edges)
{
DiGraphIterator dgi = new DiGraphIterator(root, edges);
return Spliterators.spliteratorUnknownSize(dgi, 0);
} | [
"public",
"static",
"<",
"T",
">",
"Spliterator",
"<",
"T",
">",
"spliterator",
"(",
"T",
"root",
",",
"Function",
"<",
"?",
"super",
"T",
",",
"?",
"extends",
"Stream",
"<",
"T",
">",
">",
"edges",
")",
"{",
"DiGraphIterator",
"dgi",
"=",
"new",
"... | Creates a Spliterator
@param <T>
@param root
@param edges
@return | [
"Creates",
"a",
"Spliterator"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/graph/DiGraphIterator.java#L84-L88 |
153,310 | fuwjax/ev-oss | funco/src/main/java/org/fuwjax/oss/util/assertion/Assert2.java | Assert2.containsAll | public static void containsAll(final Path expected, final Path actual) throws IOException {
final Assertion<Path> exists = existsIn(expected, actual);
if(Files.exists(expected)) {
walkFileTree(expected, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(final Path file, final Basi... | java | public static void containsAll(final Path expected, final Path actual) throws IOException {
final Assertion<Path> exists = existsIn(expected, actual);
if(Files.exists(expected)) {
walkFileTree(expected, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(final Path file, final Basi... | [
"public",
"static",
"void",
"containsAll",
"(",
"final",
"Path",
"expected",
",",
"final",
"Path",
"actual",
")",
"throws",
"IOException",
"{",
"final",
"Assertion",
"<",
"Path",
">",
"exists",
"=",
"existsIn",
"(",
"expected",
",",
"actual",
")",
";",
"if... | Asserts that every file that exists relative to expected also exists
relative to actual.
@param expected the expected path
@param actual the actual path
@throws IOException if the paths cannot be walked | [
"Asserts",
"that",
"every",
"file",
"that",
"exists",
"relative",
"to",
"expected",
"also",
"exists",
"relative",
"to",
"actual",
"."
] | cbd88592e9b2fa9547c3bdd41e52e790061a2253 | https://github.com/fuwjax/ev-oss/blob/cbd88592e9b2fa9547c3bdd41e52e790061a2253/funco/src/main/java/org/fuwjax/oss/util/assertion/Assert2.java#L107-L118 |
153,311 | fuwjax/ev-oss | funco/src/main/java/org/fuwjax/oss/util/assertion/Assert2.java | Assert2.assertEquals | public static void assertEquals(final Path expected, final Path actual) throws IOException {
containsAll(actual, expected);
if(Files.exists(expected)) {
containsAll(expected, actual);
walkFileTree(expected, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(final Path file, fin... | java | public static void assertEquals(final Path expected, final Path actual) throws IOException {
containsAll(actual, expected);
if(Files.exists(expected)) {
containsAll(expected, actual);
walkFileTree(expected, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(final Path file, fin... | [
"public",
"static",
"void",
"assertEquals",
"(",
"final",
"Path",
"expected",
",",
"final",
"Path",
"actual",
")",
"throws",
"IOException",
"{",
"containsAll",
"(",
"actual",
",",
"expected",
")",
";",
"if",
"(",
"Files",
".",
"exists",
"(",
"expected",
")... | Asserts that two paths are deeply byte-equivalent.
@param expected one of the paths
@param actual the other path
@throws IOException if the paths cannot be traversed | [
"Asserts",
"that",
"two",
"paths",
"are",
"deeply",
"byte",
"-",
"equivalent",
"."
] | cbd88592e9b2fa9547c3bdd41e52e790061a2253 | https://github.com/fuwjax/ev-oss/blob/cbd88592e9b2fa9547c3bdd41e52e790061a2253/funco/src/main/java/org/fuwjax/oss/util/assertion/Assert2.java#L126-L143 |
153,312 | fuwjax/ev-oss | funco/src/main/java/org/fuwjax/oss/util/assertion/Assert2.java | Assert2.assertByteEquals | public static void assertByteEquals(final Path sub, final Path expected, final Path actual) throws IOException {
final int length = 4096;
final byte[] hereBuffer = new byte[length];
final byte[] thereBuffer = new byte[length];
long hereLimit = 0;
long thereLimit = 0;
try(InputStream hereStream = newInputStr... | java | public static void assertByteEquals(final Path sub, final Path expected, final Path actual) throws IOException {
final int length = 4096;
final byte[] hereBuffer = new byte[length];
final byte[] thereBuffer = new byte[length];
long hereLimit = 0;
long thereLimit = 0;
try(InputStream hereStream = newInputStr... | [
"public",
"static",
"void",
"assertByteEquals",
"(",
"final",
"Path",
"sub",
",",
"final",
"Path",
"expected",
",",
"final",
"Path",
"actual",
")",
"throws",
"IOException",
"{",
"final",
"int",
"length",
"=",
"4096",
";",
"final",
"byte",
"[",
"]",
"hereBu... | Asserts that two paths are byte-equivalent.
@param sub the shared portion of the two paths
@param expected the expected path
@param actual the actual path
@throws IOException if the paths cannot be opened and consumed | [
"Asserts",
"that",
"two",
"paths",
"are",
"byte",
"-",
"equivalent",
"."
] | cbd88592e9b2fa9547c3bdd41e52e790061a2253 | https://github.com/fuwjax/ev-oss/blob/cbd88592e9b2fa9547c3bdd41e52e790061a2253/funco/src/main/java/org/fuwjax/oss/util/assertion/Assert2.java#L152-L178 |
153,313 | lightblueseas/file-worker | src/main/java/de/alpharogroup/file/checksum/ChecksumExtensions.java | ChecksumExtensions.getChecksum | public static String getChecksum(final Algorithm algorithm, final byte[]... byteArrays)
throws NoSuchAlgorithmException
{
StringBuilder sb = new StringBuilder();
for (byte[] byteArray : byteArrays)
{
sb.append(getChecksum(byteArray, algorithm.getAlgorithm()));
}
return sb.toString();
} | java | public static String getChecksum(final Algorithm algorithm, final byte[]... byteArrays)
throws NoSuchAlgorithmException
{
StringBuilder sb = new StringBuilder();
for (byte[] byteArray : byteArrays)
{
sb.append(getChecksum(byteArray, algorithm.getAlgorithm()));
}
return sb.toString();
} | [
"public",
"static",
"String",
"getChecksum",
"(",
"final",
"Algorithm",
"algorithm",
",",
"final",
"byte",
"[",
"]",
"...",
"byteArrays",
")",
"throws",
"NoSuchAlgorithmException",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
... | Gets the checksum from the given byte arrays with the given algorithm
@param algorithm
the algorithm to get the checksum. This could be for instance "MD4", "MD5",
"SHA-1", "SHA-256", "SHA-384" or "SHA-512".
@param byteArrays
the array of byte arrays
@return The checksum from the given byte arrays as a String object.
@... | [
"Gets",
"the",
"checksum",
"from",
"the",
"given",
"byte",
"arrays",
"with",
"the",
"given",
"algorithm"
] | 2c81de10fb5d68de64c1abc3ed64ca681ce76da8 | https://github.com/lightblueseas/file-worker/blob/2c81de10fb5d68de64c1abc3ed64ca681ce76da8/src/main/java/de/alpharogroup/file/checksum/ChecksumExtensions.java#L80-L89 |
153,314 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/GeoDB.java | GeoDB.search | public GeoLocation search(double deltaNM, GeoSearch... searches)
{
List<GeoLocation> list = search(false, searches);
if (!list.isEmpty() && GeoDB.isUnique(list, deltaNM))
{
return list.get(0);
}
else
{
list.removeIf((gl)->!gl.match(tru... | java | public GeoLocation search(double deltaNM, GeoSearch... searches)
{
List<GeoLocation> list = search(false, searches);
if (!list.isEmpty() && GeoDB.isUnique(list, deltaNM))
{
return list.get(0);
}
else
{
list.removeIf((gl)->!gl.match(tru... | [
"public",
"GeoLocation",
"search",
"(",
"double",
"deltaNM",
",",
"GeoSearch",
"...",
"searches",
")",
"{",
"List",
"<",
"GeoLocation",
">",
"list",
"=",
"search",
"(",
"false",
",",
"searches",
")",
";",
"if",
"(",
"!",
"list",
".",
"isEmpty",
"(",
")... | Returns any GeoLocation which matches all tests and is unique in deltaNM
range.
@param deltaNM
@param searches
@return | [
"Returns",
"any",
"GeoLocation",
"which",
"matches",
"all",
"tests",
"and",
"is",
"unique",
"in",
"deltaNM",
"range",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/GeoDB.java#L60-L79 |
153,315 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/GeoDB.java | GeoDB.search | public List<GeoLocation> search(boolean strict, GeoSearch... searches)
{
List<GeoLocation> list = new ArrayList<>();
for (GeoFile gf : files)
{
gf.search(strict, list, searches);
}
return list;
} | java | public List<GeoLocation> search(boolean strict, GeoSearch... searches)
{
List<GeoLocation> list = new ArrayList<>();
for (GeoFile gf : files)
{
gf.search(strict, list, searches);
}
return list;
} | [
"public",
"List",
"<",
"GeoLocation",
">",
"search",
"(",
"boolean",
"strict",
",",
"GeoSearch",
"...",
"searches",
")",
"{",
"List",
"<",
"GeoLocation",
">",
"list",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"GeoFile",
"gf",
":",
"file... | Returns a list of GeoLocations which match all the searches
@param searches
@return | [
"Returns",
"a",
"list",
"of",
"GeoLocations",
"which",
"match",
"all",
"the",
"searches"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/GeoDB.java#L85-L93 |
153,316 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/GeoDB.java | GeoDB.isUnique | public static boolean isUnique(List<GeoLocation> list, double delta)
{
Location[] array = new Location[list.size()];
int index = 0;
for (GeoLocation gl : list)
{
array[index++] = gl.getLocation();
}
return (Location.radius(array) <= delta);
} | java | public static boolean isUnique(List<GeoLocation> list, double delta)
{
Location[] array = new Location[list.size()];
int index = 0;
for (GeoLocation gl : list)
{
array[index++] = gl.getLocation();
}
return (Location.radius(array) <= delta);
} | [
"public",
"static",
"boolean",
"isUnique",
"(",
"List",
"<",
"GeoLocation",
">",
"list",
",",
"double",
"delta",
")",
"{",
"Location",
"[",
"]",
"array",
"=",
"new",
"Location",
"[",
"list",
".",
"size",
"(",
")",
"]",
";",
"int",
"index",
"=",
"0",
... | Returns true if greatest distance of any location from their center is
less than given delta in nm.
@param list
@param delta
@return | [
"Returns",
"true",
"if",
"greatest",
"distance",
"of",
"any",
"location",
"from",
"their",
"center",
"is",
"less",
"than",
"given",
"delta",
"in",
"nm",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/GeoDB.java#L101-L110 |
153,317 | mlhartme/jasmin | src/main/java/net/oneandone/jasmin/model/Repository.java | Repository.load | public static Repository load(Resolver resolver) throws IOException {
Repository repository;
repository = new Repository();
repository.loadClasspath(resolver);
repository.link();
return repository;
} | java | public static Repository load(Resolver resolver) throws IOException {
Repository repository;
repository = new Repository();
repository.loadClasspath(resolver);
repository.link();
return repository;
} | [
"public",
"static",
"Repository",
"load",
"(",
"Resolver",
"resolver",
")",
"throws",
"IOException",
"{",
"Repository",
"repository",
";",
"repository",
"=",
"new",
"Repository",
"(",
")",
";",
"repository",
".",
"loadClasspath",
"(",
"resolver",
")",
";",
"re... | simplified load method for testing | [
"simplified",
"load",
"method",
"for",
"testing"
] | 1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d | https://github.com/mlhartme/jasmin/blob/1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d/src/main/java/net/oneandone/jasmin/model/Repository.java#L47-L54 |
153,318 | mlhartme/jasmin | src/main/java/net/oneandone/jasmin/model/Repository.java | Repository.loadClasspath | public void loadClasspath(Resolver resolver) throws IOException {
Enumeration<URL> e;
e = getClass().getClassLoader().getResources(MODULE_DESCRIPTOR);
while (e.hasMoreElements()) {
loadModule(resolver, e.nextElement());
}
} | java | public void loadClasspath(Resolver resolver) throws IOException {
Enumeration<URL> e;
e = getClass().getClassLoader().getResources(MODULE_DESCRIPTOR);
while (e.hasMoreElements()) {
loadModule(resolver, e.nextElement());
}
} | [
"public",
"void",
"loadClasspath",
"(",
"Resolver",
"resolver",
")",
"throws",
"IOException",
"{",
"Enumeration",
"<",
"URL",
">",
"e",
";",
"e",
"=",
"getClass",
"(",
")",
".",
"getClassLoader",
"(",
")",
".",
"getResources",
"(",
"MODULE_DESCRIPTOR",
")",
... | Loads modules from classpath | [
"Loads",
"modules",
"from",
"classpath"
] | 1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d | https://github.com/mlhartme/jasmin/blob/1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d/src/main/java/net/oneandone/jasmin/model/Repository.java#L237-L244 |
153,319 | mlhartme/jasmin | src/main/java/net/oneandone/jasmin/model/Repository.java | Repository.loadLibrary | public void loadLibrary(Resolver resolver, Node base, Node descriptor, Node properties) throws IOException {
Source source;
Module module;
Library library;
File file;
addReload(descriptor);
source = Source.load(properties, base);
library = (Library) Library.TYPE.... | java | public void loadLibrary(Resolver resolver, Node base, Node descriptor, Node properties) throws IOException {
Source source;
Module module;
Library library;
File file;
addReload(descriptor);
source = Source.load(properties, base);
library = (Library) Library.TYPE.... | [
"public",
"void",
"loadLibrary",
"(",
"Resolver",
"resolver",
",",
"Node",
"base",
",",
"Node",
"descriptor",
",",
"Node",
"properties",
")",
"throws",
"IOException",
"{",
"Source",
"source",
";",
"Module",
"module",
";",
"Library",
"library",
";",
"File",
"... | Core method for loading. A library is a module or an application
@param base jar file for module, docroot for application | [
"Core",
"method",
"for",
"loading",
".",
"A",
"library",
"is",
"a",
"module",
"or",
"an",
"application"
] | 1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d | https://github.com/mlhartme/jasmin/blob/1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d/src/main/java/net/oneandone/jasmin/model/Repository.java#L279-L300 |
153,320 | mlhartme/jasmin | src/main/java/net/oneandone/jasmin/model/Repository.java | Repository.link | public List<Node> link() {
List<Module> dependencies;
Module module;
Module resolved;
StringBuilder problems;
List<Node> result;
problems = new StringBuilder();
for (Map.Entry<Module, List<String>> entry : notLinked.entrySet()) {
module = entry.getKey... | java | public List<Node> link() {
List<Module> dependencies;
Module module;
Module resolved;
StringBuilder problems;
List<Node> result;
problems = new StringBuilder();
for (Map.Entry<Module, List<String>> entry : notLinked.entrySet()) {
module = entry.getKey... | [
"public",
"List",
"<",
"Node",
">",
"link",
"(",
")",
"{",
"List",
"<",
"Module",
">",
"dependencies",
";",
"Module",
"module",
";",
"Module",
"resolved",
";",
"StringBuilder",
"problems",
";",
"List",
"<",
"Node",
">",
"result",
";",
"problems",
"=",
... | Call this after you've loaded all libraries
@return reload files | [
"Call",
"this",
"after",
"you",
"ve",
"loaded",
"all",
"libraries"
] | 1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d | https://github.com/mlhartme/jasmin/blob/1c44339a2555ae7ffb7d40fd3a7d80d81c3fc39d/src/main/java/net/oneandone/jasmin/model/Repository.java#L501-L528 |
153,321 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/event/InitOnceFieldHandler.java | InitOnceFieldHandler.doSetData | public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode)
{
int iErrorCode = DBConstants.NORMAL_RETURN;
if ((m_bFirstTime) || (iMoveMode == DBConstants.READ_MOVE) || (iMoveMode == DBConstants.SCREEN_MOVE))
iErrorCode = super.doSetData(objData, bDisplayOption, iMoveMode)... | java | public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode)
{
int iErrorCode = DBConstants.NORMAL_RETURN;
if ((m_bFirstTime) || (iMoveMode == DBConstants.READ_MOVE) || (iMoveMode == DBConstants.SCREEN_MOVE))
iErrorCode = super.doSetData(objData, bDisplayOption, iMoveMode)... | [
"public",
"int",
"doSetData",
"(",
"Object",
"objData",
",",
"boolean",
"bDisplayOption",
",",
"int",
"iMoveMode",
")",
"{",
"int",
"iErrorCode",
"=",
"DBConstants",
".",
"NORMAL_RETURN",
";",
"if",
"(",
"(",
"m_bFirstTime",
")",
"||",
"(",
"iMoveMode",
"=="... | Move the physical binary data to this field.
If this is an init set, only does it until the first change.
@param objData the raw data to set the basefield to.
@param bDisplayOption If true, display the change.
@param iMoveMode The type of move being done (init/read/screen).
@return The error code (or NORMAL_RETURN if o... | [
"Move",
"the",
"physical",
"binary",
"data",
"to",
"this",
"field",
".",
"If",
"this",
"is",
"an",
"init",
"set",
"only",
"does",
"it",
"until",
"the",
"first",
"change",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/event/InitOnceFieldHandler.java#L120-L127 |
153,322 | jbundle/jbundle | thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java | JHtmlEditor.init | public void init(BaseApplet applet, URL url)
{
m_applet = applet;
this.setContentType(HTML_CONTENT);
this.setEditable(false);
this.addHyperlinkListener(this.createHyperLinkListener());
this.setOpaque(false);
this.setSize(new Dimension(500, 800));
i... | java | public void init(BaseApplet applet, URL url)
{
m_applet = applet;
this.setContentType(HTML_CONTENT);
this.setEditable(false);
this.addHyperlinkListener(this.createHyperLinkListener());
this.setOpaque(false);
this.setSize(new Dimension(500, 800));
i... | [
"public",
"void",
"init",
"(",
"BaseApplet",
"applet",
",",
"URL",
"url",
")",
"{",
"m_applet",
"=",
"applet",
";",
"this",
".",
"setContentType",
"(",
"HTML_CONTENT",
")",
";",
"this",
".",
"setEditable",
"(",
"false",
")",
";",
"this",
".",
"addHyperli... | HTMLView Constructor. | [
"HTMLView",
"Constructor",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java#L66-L78 |
153,323 | jbundle/jbundle | thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java | JHtmlEditor.createHyperLinkListener | public HyperlinkListener createHyperLinkListener()
{
return new HyperlinkListener()
{
public void hyperlinkUpdate(HyperlinkEvent e)
{
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
{
if (e instanceof HTMLFrameHy... | java | public HyperlinkListener createHyperLinkListener()
{
return new HyperlinkListener()
{
public void hyperlinkUpdate(HyperlinkEvent e)
{
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
{
if (e instanceof HTMLFrameHy... | [
"public",
"HyperlinkListener",
"createHyperLinkListener",
"(",
")",
"{",
"return",
"new",
"HyperlinkListener",
"(",
")",
"{",
"public",
"void",
"hyperlinkUpdate",
"(",
"HyperlinkEvent",
"e",
")",
"{",
"if",
"(",
"e",
".",
"getEventType",
"(",
")",
"==",
"Hyper... | Create the hyperlink listener.
@return The hyperlink listener. | [
"Create",
"the",
"hyperlink",
"listener",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java#L142-L172 |
153,324 | jbundle/jbundle | thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java | JHtmlEditor.setHTMLText | public void setHTMLText(String strHtmlText)
{
if (m_helpPane != null)
m_helpPane.setVisible(strHtmlText != null);
this.getTaskScheduler().addTask(PrivateTaskScheduler.CLEAR_JOBS); // Dump any stacked tasks
Thread thread = new SwingSyncPageWorker(this, new SyncPageLoader(null, strHtmlTex... | java | public void setHTMLText(String strHtmlText)
{
if (m_helpPane != null)
m_helpPane.setVisible(strHtmlText != null);
this.getTaskScheduler().addTask(PrivateTaskScheduler.CLEAR_JOBS); // Dump any stacked tasks
Thread thread = new SwingSyncPageWorker(this, new SyncPageLoader(null, strHtmlTex... | [
"public",
"void",
"setHTMLText",
"(",
"String",
"strHtmlText",
")",
"{",
"if",
"(",
"m_helpPane",
"!=",
"null",
")",
"m_helpPane",
".",
"setVisible",
"(",
"strHtmlText",
"!=",
"null",
")",
";",
"this",
".",
"getTaskScheduler",
"(",
")",
".",
"addTask",
"("... | Set this control to this html text.
@param strHtmlText | [
"Set",
"this",
"control",
"to",
"this",
"html",
"text",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java#L177-L185 |
153,325 | jbundle/jbundle | thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java | JHtmlEditor.getTaskScheduler | public TaskScheduler getTaskScheduler()
{
if (m_taskScheduler == null)
m_taskScheduler = new PrivateTaskScheduler(this.getBaseApplet().getApplication(), 0, true);
return m_taskScheduler;
} | java | public TaskScheduler getTaskScheduler()
{
if (m_taskScheduler == null)
m_taskScheduler = new PrivateTaskScheduler(this.getBaseApplet().getApplication(), 0, true);
return m_taskScheduler;
} | [
"public",
"TaskScheduler",
"getTaskScheduler",
"(",
")",
"{",
"if",
"(",
"m_taskScheduler",
"==",
"null",
")",
"m_taskScheduler",
"=",
"new",
"PrivateTaskScheduler",
"(",
"this",
".",
"getBaseApplet",
"(",
")",
".",
"getApplication",
"(",
")",
",",
"0",
",",
... | Get my private task scheduler.
@return The scheduler. | [
"Get",
"my",
"private",
"task",
"scheduler",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlEditor.java#L228-L233 |
153,326 | arxanchain/java-common | src/main/java/com/arxanfintech/common/util/Utils.java | Utils.addressStringToBytes | public static byte[] addressStringToBytes(String hex) {
final byte[] addr;
try {
addr = Hex.decode(hex);
} catch (DecoderException addressIsNotValid) {
return null;
}
if (isValidAddress(addr))
return addr;
return null;
} | java | public static byte[] addressStringToBytes(String hex) {
final byte[] addr;
try {
addr = Hex.decode(hex);
} catch (DecoderException addressIsNotValid) {
return null;
}
if (isValidAddress(addr))
return addr;
return null;
} | [
"public",
"static",
"byte",
"[",
"]",
"addressStringToBytes",
"(",
"String",
"hex",
")",
"{",
"final",
"byte",
"[",
"]",
"addr",
";",
"try",
"{",
"addr",
"=",
"Hex",
".",
"decode",
"(",
"hex",
")",
";",
"}",
"catch",
"(",
"DecoderException",
"addressIs... | Decodes a hex string to address bytes and checks validity
@param hex
- a hex string of the address, e.g.,
6c386a4b26f73c802f34673f7248bb118f97424a
@return - decode and validated address byte[] | [
"Decodes",
"a",
"hex",
"string",
"to",
"address",
"bytes",
"and",
"checks",
"validity"
] | 3ddfedfd948f5bab3fee0b74b85cdce4702ed84e | https://github.com/arxanchain/java-common/blob/3ddfedfd948f5bab3fee0b74b85cdce4702ed84e/src/main/java/com/arxanfintech/common/util/Utils.java#L109-L120 |
153,327 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.of | public static <R> Stream<R> of(R... elements) {
return new Stream<R>(new ArrayIterable.ArrayIterator<R>(elements));
} | java | public static <R> Stream<R> of(R... elements) {
return new Stream<R>(new ArrayIterable.ArrayIterator<R>(elements));
} | [
"public",
"static",
"<",
"R",
">",
"Stream",
"<",
"R",
">",
"of",
"(",
"R",
"...",
"elements",
")",
"{",
"return",
"new",
"Stream",
"<",
"R",
">",
"(",
"new",
"ArrayIterable",
".",
"ArrayIterator",
"<",
"R",
">",
"(",
"elements",
")",
")",
";",
"... | Create a stream of the elements provided.
@param elements elements of the new stream
@param <R> type of elements
@return a new stream | [
"Create",
"a",
"stream",
"of",
"the",
"elements",
"provided",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L58-L60 |
153,328 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.of | public static <R> Stream<R> of(Iterator<R> iterator) {
return new Stream<R>(iterator);
} | java | public static <R> Stream<R> of(Iterator<R> iterator) {
return new Stream<R>(iterator);
} | [
"public",
"static",
"<",
"R",
">",
"Stream",
"<",
"R",
">",
"of",
"(",
"Iterator",
"<",
"R",
">",
"iterator",
")",
"{",
"return",
"new",
"Stream",
"<",
"R",
">",
"(",
"iterator",
")",
";",
"}"
] | Create a stream based on an iterator.
@param iterator the iterator
@param <R> type of elements
@return a new stream
@since 1.9.1 | [
"Create",
"a",
"stream",
"based",
"on",
"an",
"iterator",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L70-L72 |
153,329 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.reduce | public Optional<T> reduce(final BiFunction<T, ? super T, T> accumulator) {
boolean found = false;
T result = null;
while (iterator.hasNext()) {
if (!found) {
result = iterator.next();
found = true;
} else {
result = accumula... | java | public Optional<T> reduce(final BiFunction<T, ? super T, T> accumulator) {
boolean found = false;
T result = null;
while (iterator.hasNext()) {
if (!found) {
result = iterator.next();
found = true;
} else {
result = accumula... | [
"public",
"Optional",
"<",
"T",
">",
"reduce",
"(",
"final",
"BiFunction",
"<",
"T",
",",
"?",
"super",
"T",
",",
"T",
">",
"accumulator",
")",
"{",
"boolean",
"found",
"=",
"false",
";",
"T",
"result",
"=",
"null",
";",
"while",
"(",
"iterator",
"... | Performs a reduction on the elements of the stream, using an accumulation function, and returns an Optional describing the reduced value, if any.
@param accumulator an associative function for combining two values
@return value of the reduction if any | [
"Performs",
"a",
"reduction",
"on",
"the",
"elements",
"of",
"the",
"stream",
"using",
"an",
"accumulation",
"function",
"and",
"returns",
"an",
"Optional",
"describing",
"the",
"reduced",
"value",
"if",
"any",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L95-L107 |
153,330 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.reduce | public <R> R reduce(final R initial, final BiFunction<R, ? super T, R> accumulator) {
R returnValue = initial;
while (iterator.hasNext()) {
returnValue = accumulator.apply(returnValue, iterator.next());
}
return returnValue;
} | java | public <R> R reduce(final R initial, final BiFunction<R, ? super T, R> accumulator) {
R returnValue = initial;
while (iterator.hasNext()) {
returnValue = accumulator.apply(returnValue, iterator.next());
}
return returnValue;
} | [
"public",
"<",
"R",
">",
"R",
"reduce",
"(",
"final",
"R",
"initial",
",",
"final",
"BiFunction",
"<",
"R",
",",
"?",
"super",
"T",
",",
"R",
">",
"accumulator",
")",
"{",
"R",
"returnValue",
"=",
"initial",
";",
"while",
"(",
"iterator",
".",
"has... | Performs a reduction on the elements of this stream, using the provided initial value and accumulation functions.
@param initial the initial value
@param accumulator the acummulation function
@param <R> return type
@return the result of the reduction | [
"Performs",
"a",
"reduction",
"on",
"the",
"elements",
"of",
"this",
"stream",
"using",
"the",
"provided",
"initial",
"value",
"and",
"accumulation",
"functions",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L117-L123 |
153,331 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.map | public <R> Stream<R> map(Function<? super T, ? extends R> mapper) {
List<R> list = new ArrayList<R>();
while (iterator.hasNext()) {
list.add(mapper.apply(iterator.next()));
}
return Stream.of(list);
} | java | public <R> Stream<R> map(Function<? super T, ? extends R> mapper) {
List<R> list = new ArrayList<R>();
while (iterator.hasNext()) {
list.add(mapper.apply(iterator.next()));
}
return Stream.of(list);
} | [
"public",
"<",
"R",
">",
"Stream",
"<",
"R",
">",
"map",
"(",
"Function",
"<",
"?",
"super",
"T",
",",
"?",
"extends",
"R",
">",
"mapper",
")",
"{",
"List",
"<",
"R",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"R",
">",
"(",
")",
";",
"while"... | Returns a stream consisting of the results of applying the given function to the elements of this stream.
@param mapper function to apply to each element
@param <R> The element type of the new stream
@return the new stream | [
"Returns",
"a",
"stream",
"consisting",
"of",
"the",
"results",
"of",
"applying",
"the",
"given",
"function",
"to",
"the",
"elements",
"of",
"this",
"stream",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L149-L155 |
153,332 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.anyMatch | public boolean anyMatch(Predicate<? super T> predicate) {
while (iterator.hasNext()) {
if (predicate.test(iterator.next())) {
return true;
}
}
return false;
} | java | public boolean anyMatch(Predicate<? super T> predicate) {
while (iterator.hasNext()) {
if (predicate.test(iterator.next())) {
return true;
}
}
return false;
} | [
"public",
"boolean",
"anyMatch",
"(",
"Predicate",
"<",
"?",
"super",
"T",
">",
"predicate",
")",
"{",
"while",
"(",
"iterator",
".",
"hasNext",
"(",
")",
")",
"{",
"if",
"(",
"predicate",
".",
"test",
"(",
"iterator",
".",
"next",
"(",
")",
")",
"... | Returns whether any elements of this stream match the provided predicate. If the stream is empty then false is
returned and the predicate is not evaluated.
@param predicate to apply to elements of this stream
@return true if any elements of the stream match the provided predicate | [
"Returns",
"whether",
"any",
"elements",
"of",
"this",
"stream",
"match",
"the",
"provided",
"predicate",
".",
"If",
"the",
"stream",
"is",
"empty",
"then",
"false",
"is",
"returned",
"and",
"the",
"predicate",
"is",
"not",
"evaluated",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L164-L171 |
153,333 | nwillc/almost-functional | src/main/java/almost/functional/Stream.java | Stream.concat | @SuppressWarnings("unchecked")
public static <T> Stream<T> concat(Stream<? extends T> a,
Stream<? extends T> b) {
return new Stream(Iterators.concat(a.iterator, b.iterator));
} | java | @SuppressWarnings("unchecked")
public static <T> Stream<T> concat(Stream<? extends T> a,
Stream<? extends T> b) {
return new Stream(Iterators.concat(a.iterator, b.iterator));
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
">",
"Stream",
"<",
"T",
">",
"concat",
"(",
"Stream",
"<",
"?",
"extends",
"T",
">",
"a",
",",
"Stream",
"<",
"?",
"extends",
"T",
">",
"b",
")",
"{",
"return",
"new... | Creates a concatenated stream whose elements are all the elements of the first stream followed by all the elements of the second stream.
@param a first stream
@param b second stream
@param <T> type of elements
@return a stream concatenating first and second | [
"Creates",
"a",
"concatenated",
"stream",
"whose",
"elements",
"are",
"all",
"the",
"elements",
"of",
"the",
"first",
"stream",
"followed",
"by",
"all",
"the",
"elements",
"of",
"the",
"second",
"stream",
"."
] | a6cc7c73b2be475ed1bce5128c24b2eb9c27d666 | https://github.com/nwillc/almost-functional/blob/a6cc7c73b2be475ed1bce5128c24b2eb9c27d666/src/main/java/almost/functional/Stream.java#L223-L227 |
153,334 | jbundle/jbundle | base/remote/src/main/java/org/jbundle/base/remote/proxy/TaskHolder.java | TaskHolder.init | public void init(ProxyTask proxyTask, RemoteTask remoteTask)
{
super.init(null, remoteTask); // TaskHolder doesn't have a parent (BaseHolder).
m_proxyTask = proxyTask;
} | java | public void init(ProxyTask proxyTask, RemoteTask remoteTask)
{
super.init(null, remoteTask); // TaskHolder doesn't have a parent (BaseHolder).
m_proxyTask = proxyTask;
} | [
"public",
"void",
"init",
"(",
"ProxyTask",
"proxyTask",
",",
"RemoteTask",
"remoteTask",
")",
"{",
"super",
".",
"init",
"(",
"null",
",",
"remoteTask",
")",
";",
"// TaskHolder doesn't have a parent (BaseHolder).",
"m_proxyTask",
"=",
"proxyTask",
";",
"}"
] | Creates a new instance of TaskHolder | [
"Creates",
"a",
"new",
"instance",
"of",
"TaskHolder"
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/remote/src/main/java/org/jbundle/base/remote/proxy/TaskHolder.java#L58-L62 |
153,335 | jbundle/jbundle | base/remote/src/main/java/org/jbundle/base/remote/proxy/TaskHolder.java | TaskHolder.getProperty | public String getProperty(String strKey, Map<String, Object> properties)
{
String strProperty = super.getProperty(strKey, properties);
if (strProperty == null)
if (!m_proxyTask.isShared())
strProperty = m_proxyTask.getProperty(strKey);
return strProperty;
} | java | public String getProperty(String strKey, Map<String, Object> properties)
{
String strProperty = super.getProperty(strKey, properties);
if (strProperty == null)
if (!m_proxyTask.isShared())
strProperty = m_proxyTask.getProperty(strKey);
return strProperty;
} | [
"public",
"String",
"getProperty",
"(",
"String",
"strKey",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"String",
"strProperty",
"=",
"super",
".",
"getProperty",
"(",
"strKey",
",",
"properties",
")",
";",
"if",
"(",
"strPropert... | Get the servlet's property.
For Ajax proxies, the top level proxy is shared among sessions. since it is not unique, don't return property. | [
"Get",
"the",
"servlet",
"s",
"property",
".",
"For",
"Ajax",
"proxies",
"the",
"top",
"level",
"proxy",
"is",
"shared",
"among",
"sessions",
".",
"since",
"it",
"is",
"not",
"unique",
"don",
"t",
"return",
"property",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/remote/src/main/java/org/jbundle/base/remote/proxy/TaskHolder.java#L152-L159 |
153,336 | bremersee/pagebuilder | bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java | PageBuilderUtils.cast | @SuppressWarnings("unchecked")
public static <E> Page<E> cast(final Page<?> page) {
return (Page<E>) page;
} | java | @SuppressWarnings("unchecked")
public static <E> Page<E> cast(final Page<?> page) {
return (Page<E>) page;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"E",
">",
"Page",
"<",
"E",
">",
"cast",
"(",
"final",
"Page",
"<",
"?",
">",
"page",
")",
"{",
"return",
"(",
"Page",
"<",
"E",
">",
")",
"page",
";",
"}"
] | Casts a page.
@param page the page to cast
@param <E> type of the page entries
@return the casted page | [
"Casts",
"a",
"page",
"."
] | 498614b02f577b08d2d65131ba472a09f080a192 | https://github.com/bremersee/pagebuilder/blob/498614b02f577b08d2d65131ba472a09f080a192/bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java#L77-L80 |
153,337 | bremersee/pagebuilder | bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java | PageBuilderUtils.createPage | @SuppressWarnings("unchecked")
public static <E, T> PageResult<T> createPage(final Iterable<? extends E> entries, final PageRequest pageRequest,
final long totalSize, final PageEntryTransformer<T, E> transformer) {
final PageResult<T> page = new PageResult<... | java | @SuppressWarnings("unchecked")
public static <E, T> PageResult<T> createPage(final Iterable<? extends E> entries, final PageRequest pageRequest,
final long totalSize, final PageEntryTransformer<T, E> transformer) {
final PageResult<T> page = new PageResult<... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"E",
",",
"T",
">",
"PageResult",
"<",
"T",
">",
"createPage",
"(",
"final",
"Iterable",
"<",
"?",
"extends",
"E",
">",
"entries",
",",
"final",
"PageRequest",
"pageRequest",
",",... | Creates a page.
@param entries the page entries
@param pageRequest the page request
@param totalSize the total size
@param transformer the entry transformer (may be {@code null} - than all entries
will be added to the page without transforming)
@param <E> type of the entries
@param <T> target typ... | [
"Creates",
"a",
"page",
"."
] | 498614b02f577b08d2d65131ba472a09f080a192 | https://github.com/bremersee/pagebuilder/blob/498614b02f577b08d2d65131ba472a09f080a192/bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java#L94-L112 |
153,338 | bremersee/pagebuilder | bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java | PageBuilderUtils.createPage | public static <E, T> Page<T> createPage(final Page<? extends E> sourcePage,
final PageEntryTransformer<T, E> transformer) {
if (sourcePage == null) {
return null;
}
if (transformer == null) {
return cast(sourcePage);
}
... | java | public static <E, T> Page<T> createPage(final Page<? extends E> sourcePage,
final PageEntryTransformer<T, E> transformer) {
if (sourcePage == null) {
return null;
}
if (transformer == null) {
return cast(sourcePage);
}
... | [
"public",
"static",
"<",
"E",
",",
"T",
">",
"Page",
"<",
"T",
">",
"createPage",
"(",
"final",
"Page",
"<",
"?",
"extends",
"E",
">",
"sourcePage",
",",
"final",
"PageEntryTransformer",
"<",
"T",
",",
"E",
">",
"transformer",
")",
"{",
"if",
"(",
... | Transforms a page into another page.
@param sourcePage the source page
@param transformer the entry transformer (may be {@code null} - than all entries
of the source page will be added to the target page without
transforming)
@param <E> source type of the page entries
@param <T> target type of the pag... | [
"Transforms",
"a",
"page",
"into",
"another",
"page",
"."
] | 498614b02f577b08d2d65131ba472a09f080a192 | https://github.com/bremersee/pagebuilder/blob/498614b02f577b08d2d65131ba472a09f080a192/bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java#L125-L134 |
153,339 | bremersee/pagebuilder | bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java | PageBuilderUtils.createPageDto | public static <E, T> PageDto createPageDto(final Page<? extends E> page,
final PageEntryTransformer<T, E> transformer) {
if (page == null) {
return null;
}
if (page instanceof PageDto && transformer == null) {
return (PageDto... | java | public static <E, T> PageDto createPageDto(final Page<? extends E> page,
final PageEntryTransformer<T, E> transformer) {
if (page == null) {
return null;
}
if (page instanceof PageDto && transformer == null) {
return (PageDto... | [
"public",
"static",
"<",
"E",
",",
"T",
">",
"PageDto",
"createPageDto",
"(",
"final",
"Page",
"<",
"?",
"extends",
"E",
">",
"page",
",",
"final",
"PageEntryTransformer",
"<",
"T",
",",
"E",
">",
"transformer",
")",
"{",
"if",
"(",
"page",
"==",
"nu... | Transforms a page into a page DTO.
@param page the page
@param transformer the entry transformer (may be {@code null} - than all entries
of the page will be added to the DTO without transforming)
@param <E> source type of the page entries
@param <T> target type of the page entries
@return the pa... | [
"Transforms",
"a",
"page",
"into",
"a",
"page",
"DTO",
"."
] | 498614b02f577b08d2d65131ba472a09f080a192 | https://github.com/bremersee/pagebuilder/blob/498614b02f577b08d2d65131ba472a09f080a192/bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java#L146-L167 |
153,340 | bremersee/pagebuilder | bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java | PageBuilderUtils.createPageRequestDto | public static PageRequestDto createPageRequestDto(final PageRequest pageRequest) {
final PageRequestDto pageRequestDto;
if (pageRequest == null) {
pageRequestDto = null;
} else if (pageRequest instanceof PageRequestDto) {
pageRequestDto = (PageRequestDto) pageRequest;
... | java | public static PageRequestDto createPageRequestDto(final PageRequest pageRequest) {
final PageRequestDto pageRequestDto;
if (pageRequest == null) {
pageRequestDto = null;
} else if (pageRequest instanceof PageRequestDto) {
pageRequestDto = (PageRequestDto) pageRequest;
... | [
"public",
"static",
"PageRequestDto",
"createPageRequestDto",
"(",
"final",
"PageRequest",
"pageRequest",
")",
"{",
"final",
"PageRequestDto",
"pageRequestDto",
";",
"if",
"(",
"pageRequest",
"==",
"null",
")",
"{",
"pageRequestDto",
"=",
"null",
";",
"}",
"else",... | Transforms a page request into a page request DTO.
@param pageRequest the page request (can be {@code null})
@return the page request DTO (can be {@code null}) | [
"Transforms",
"a",
"page",
"request",
"into",
"a",
"page",
"request",
"DTO",
"."
] | 498614b02f577b08d2d65131ba472a09f080a192 | https://github.com/bremersee/pagebuilder/blob/498614b02f577b08d2d65131ba472a09f080a192/bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java#L175-L185 |
153,341 | bremersee/pagebuilder | bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java | PageBuilderUtils.transform | @SuppressWarnings("unchecked")
public static <T, S extends T> T transform(final Object xmlNodeOrJsonMap, final Class<T> valueType,
final S defaultObject, final JAXBContext jaxbContext,
final ObjectMapper objectMapper) thro... | java | @SuppressWarnings("unchecked")
public static <T, S extends T> T transform(final Object xmlNodeOrJsonMap, final Class<T> valueType,
final S defaultObject, final JAXBContext jaxbContext,
final ObjectMapper objectMapper) thro... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
",",
"S",
"extends",
"T",
">",
"T",
"transform",
"(",
"final",
"Object",
"xmlNodeOrJsonMap",
",",
"final",
"Class",
"<",
"T",
">",
"valueType",
",",
"final",
"S",
"defaultObj... | Transforms a XML node or a JSON map into an object.
@param xmlNodeOrJsonMap the XML node or JSON map
@param valueType the class of the target object
@param defaultObject a default object (optional)
@param jaxbContext the {@link JAXBContext} (can be null)
@param objectMapper the JSON object mapper (o... | [
"Transforms",
"a",
"XML",
"node",
"or",
"a",
"JSON",
"map",
"into",
"an",
"object",
"."
] | 498614b02f577b08d2d65131ba472a09f080a192 | https://github.com/bremersee/pagebuilder/blob/498614b02f577b08d2d65131ba472a09f080a192/bremersee-pagebuilder/src/main/java/org/bremersee/pagebuilder/PageBuilderUtils.java#L200-L220 |
153,342 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/TableLink.java | TableLink.getLeftField | public BaseField getLeftField(int iFieldSeq)
{
if (m_rgiFldLeft.length <= iFieldSeq)
return null;
if ((m_rgiFldLeft[iFieldSeq] instanceof String))
if (!Utility.isNumeric((String)m_rgiFldLeft[iFieldSeq]))
return this.getLeftRecord().getTable().getCurrentTable()... | java | public BaseField getLeftField(int iFieldSeq)
{
if (m_rgiFldLeft.length <= iFieldSeq)
return null;
if ((m_rgiFldLeft[iFieldSeq] instanceof String))
if (!Utility.isNumeric((String)m_rgiFldLeft[iFieldSeq]))
return this.getLeftRecord().getTable().getCurrentTable()... | [
"public",
"BaseField",
"getLeftField",
"(",
"int",
"iFieldSeq",
")",
"{",
"if",
"(",
"m_rgiFldLeft",
".",
"length",
"<=",
"iFieldSeq",
")",
"return",
"null",
";",
"if",
"(",
"(",
"m_rgiFldLeft",
"[",
"iFieldSeq",
"]",
"instanceof",
"String",
")",
")",
"if"... | Get the equal field from the left table for this link.
@param iFieldSeq The sequence of this field.
@return The field. | [
"Get",
"the",
"equal",
"field",
"from",
"the",
"left",
"table",
"for",
"this",
"link",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/TableLink.java#L161-L172 |
153,343 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/TableLink.java | TableLink.getRightField | public BaseField getRightField(int iFieldSeq)
{
if (m_rgiFldRight.length <= iFieldSeq)
return null;
if (m_rgiFldRight[iFieldSeq] == null)
return null;
// Note that the right record does NOT get the current record (because you will need the BASE record to do a seek).
... | java | public BaseField getRightField(int iFieldSeq)
{
if (m_rgiFldRight.length <= iFieldSeq)
return null;
if (m_rgiFldRight[iFieldSeq] == null)
return null;
// Note that the right record does NOT get the current record (because you will need the BASE record to do a seek).
... | [
"public",
"BaseField",
"getRightField",
"(",
"int",
"iFieldSeq",
")",
"{",
"if",
"(",
"m_rgiFldRight",
".",
"length",
"<=",
"iFieldSeq",
")",
"return",
"null",
";",
"if",
"(",
"m_rgiFldRight",
"[",
"iFieldSeq",
"]",
"==",
"null",
")",
"return",
"null",
";"... | Get the equal field from the right table for this link.
@param iFieldSeq The sequence of this field.
@return The field. | [
"Get",
"the",
"equal",
"field",
"from",
"the",
"right",
"table",
"for",
"this",
"link",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/TableLink.java#L178-L186 |
153,344 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/TableLink.java | TableLink.getTableNames | public String getTableNames(boolean bAddQuotes, Map<String, Object> properties)
{
String strString = "";
strString += this.getLeftRecord().getTableNames(bAddQuotes);
String strOn = "ON";
switch (m_JoinType)
{
case DBConstants.LEFT_INNER:
if (properties.get... | java | public String getTableNames(boolean bAddQuotes, Map<String, Object> properties)
{
String strString = "";
strString += this.getLeftRecord().getTableNames(bAddQuotes);
String strOn = "ON";
switch (m_JoinType)
{
case DBConstants.LEFT_INNER:
if (properties.get... | [
"public",
"String",
"getTableNames",
"(",
"boolean",
"bAddQuotes",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"String",
"strString",
"=",
"\"\"",
";",
"strString",
"+=",
"this",
".",
"getLeftRecord",
"(",
")",
".",
"getTableNames"... | Get the SQL table names for this link.
@param bAddQuotes Add quotes to fields with spaces?
@param properties The database properties.
@return The SQL table string. | [
"Get",
"the",
"SQL",
"table",
"names",
"for",
"this",
"link",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/TableLink.java#L205-L237 |
153,345 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/TableLink.java | TableLink.moveDataRight | public void moveDataRight()
{
for (int i = 1; i < m_rgiFldLeft.length; i++)
{
if (this.getRightField(i) == null)
break;
if (this.getLeftField(i) == null)
this.getRightField(i).setString(this.getLeftFieldNameOrValue(i, true, true), DBConstants.D... | java | public void moveDataRight()
{
for (int i = 1; i < m_rgiFldLeft.length; i++)
{
if (this.getRightField(i) == null)
break;
if (this.getLeftField(i) == null)
this.getRightField(i).setString(this.getLeftFieldNameOrValue(i, true, true), DBConstants.D... | [
"public",
"void",
"moveDataRight",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"m_rgiFldLeft",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"this",
".",
"getRightField",
"(",
"i",
")",
"==",
"null",
")",
"break",
";",
... | Fill the right fields with the values from the left fields. | [
"Fill",
"the",
"right",
"fields",
"with",
"the",
"values",
"from",
"the",
"left",
"fields",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/TableLink.java#L241-L252 |
153,346 | jbundle/jbundle | thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java | RemoteFieldTable.open | public void open() throws DBException
{
m_objLastModBookmark = null;
try {
// FROM is automatic, since the remote BaseRecord is exactly the same as this one
// ORDER BY
String strKeyArea = this.getRecord().getKeyName();
// ASC / DESCending
KeyAreaInfo keyArea = ... | java | public void open() throws DBException
{
m_objLastModBookmark = null;
try {
// FROM is automatic, since the remote BaseRecord is exactly the same as this one
// ORDER BY
String strKeyArea = this.getRecord().getKeyName();
// ASC / DESCending
KeyAreaInfo keyArea = ... | [
"public",
"void",
"open",
"(",
")",
"throws",
"DBException",
"{",
"m_objLastModBookmark",
"=",
"null",
";",
"try",
"{",
"// FROM is automatic, since the remote BaseRecord is exactly the same as this one",
"// ORDER BY",
"String",
"strKeyArea",
"=",
"this",
".",
"getRecord",... | Reset the current position and open the file. | [
"Reset",
"the",
"current",
"position",
"and",
"open",
"the",
"file",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java#L99-L129 |
153,347 | jbundle/jbundle | thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java | RemoteFieldTable.hasPrevious | public boolean hasPrevious() throws DBException
{
if (m_iCurrentRecord >= m_iRecordsAccessed)
return true;
Object record = this.previous();
if (record == null)
return false;
else
{
m_iRecordsAccessed--; // Offically this record has not be... | java | public boolean hasPrevious() throws DBException
{
if (m_iCurrentRecord >= m_iRecordsAccessed)
return true;
Object record = this.previous();
if (record == null)
return false;
else
{
m_iRecordsAccessed--; // Offically this record has not be... | [
"public",
"boolean",
"hasPrevious",
"(",
")",
"throws",
"DBException",
"{",
"if",
"(",
"m_iCurrentRecord",
">=",
"m_iRecordsAccessed",
")",
"return",
"true",
";",
"Object",
"record",
"=",
"this",
".",
"previous",
"(",
")",
";",
"if",
"(",
"record",
"==",
"... | Does this list have a previous record? | [
"Does",
"this",
"list",
"have",
"a",
"previous",
"record?"
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java#L257-L269 |
153,348 | jbundle/jbundle | thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java | RemoteFieldTable.doGet | public Object doGet(int iRowIndex) throws DBException
{
try {
m_objLastModBookmark = null;
return m_tableRemote.get(iRowIndex, 1);
} catch (RemoteException ex) {
ex.printStackTrace();
throw new DBException(ex.getMessage());
}
} | java | public Object doGet(int iRowIndex) throws DBException
{
try {
m_objLastModBookmark = null;
return m_tableRemote.get(iRowIndex, 1);
} catch (RemoteException ex) {
ex.printStackTrace();
throw new DBException(ex.getMessage());
}
} | [
"public",
"Object",
"doGet",
"(",
"int",
"iRowIndex",
")",
"throws",
"DBException",
"{",
"try",
"{",
"m_objLastModBookmark",
"=",
"null",
";",
"return",
"m_tableRemote",
".",
"get",
"(",
"iRowIndex",
",",
"1",
")",
";",
"}",
"catch",
"(",
"RemoteException",
... | Returns an attribute value for the cell at columnIndex and rowIndex. | [
"Returns",
"an",
"attribute",
"value",
"for",
"the",
"cell",
"at",
"columnIndex",
"and",
"rowIndex",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java#L320-L329 |
153,349 | jbundle/jbundle | thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java | RemoteFieldTable.setRemoteTable | public void setRemoteTable(RemoteTable tableRemote, Object syncObject)
{
if (syncObject != null)
tableRemote = new SyncRemoteTable(tableRemote, syncObject); // Synchronize all calls
m_tableRemote = tableRemote;
m_syncObject = syncObject;
} | java | public void setRemoteTable(RemoteTable tableRemote, Object syncObject)
{
if (syncObject != null)
tableRemote = new SyncRemoteTable(tableRemote, syncObject); // Synchronize all calls
m_tableRemote = tableRemote;
m_syncObject = syncObject;
} | [
"public",
"void",
"setRemoteTable",
"(",
"RemoteTable",
"tableRemote",
",",
"Object",
"syncObject",
")",
"{",
"if",
"(",
"syncObject",
"!=",
"null",
")",
"tableRemote",
"=",
"new",
"SyncRemoteTable",
"(",
"tableRemote",
",",
"syncObject",
")",
";",
"// Synchroni... | Set the remote table reference. | [
"Set",
"the",
"remote",
"table",
"reference",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/misc/src/main/java/org/jbundle/thin/base/db/client/RemoteFieldTable.java#L356-L362 |
153,350 | jbundle/jbundle | thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java | FieldList.getRemoteClassName | public String getRemoteClassName()
{
String strClassName = this.getClass().getName().toString();
int iThinPos = strClassName.indexOf(Constants.THIN_SUBPACKAGE);
return strClassName.substring(0, iThinPos) + strClassName.substring(iThinPos + Constants.THIN_SUBPACKAGE.length());
} | java | public String getRemoteClassName()
{
String strClassName = this.getClass().getName().toString();
int iThinPos = strClassName.indexOf(Constants.THIN_SUBPACKAGE);
return strClassName.substring(0, iThinPos) + strClassName.substring(iThinPos + Constants.THIN_SUBPACKAGE.length());
} | [
"public",
"String",
"getRemoteClassName",
"(",
")",
"{",
"String",
"strClassName",
"=",
"this",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
".",
"toString",
"(",
")",
";",
"int",
"iThinPos",
"=",
"strClassName",
".",
"indexOf",
"(",
"Constants",
... | Get the remote class name.
Just remove thin from this class name!.
@return The full remote class name. | [
"Get",
"the",
"remote",
"class",
"name",
".",
"Just",
"remove",
"thin",
"from",
"this",
"class",
"name!",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java#L212-L217 |
153,351 | jbundle/jbundle | thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java | FieldList.setupKeys | public void setupKeys()
{ // Override this to set up the actual keys
KeyAreaInfo keyArea = null;
keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
keyArea.addKeyField(ID, Constants.ASCENDING);
} | java | public void setupKeys()
{ // Override this to set up the actual keys
KeyAreaInfo keyArea = null;
keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
keyArea.addKeyField(ID, Constants.ASCENDING);
} | [
"public",
"void",
"setupKeys",
"(",
")",
"{",
"// Override this to set up the actual keys",
"KeyAreaInfo",
"keyArea",
"=",
"null",
";",
"keyArea",
"=",
"new",
"KeyAreaInfo",
"(",
"this",
",",
"Constants",
".",
"UNIQUE",
",",
"ID_KEY",
")",
";",
"keyArea",
".",
... | Set up all the key areas for this record.
Override this to add the key areas. | [
"Set",
"up",
"all",
"the",
"key",
"areas",
"for",
"this",
"record",
".",
"Override",
"this",
"to",
"add",
"the",
"key",
"areas",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java#L267-L272 |
153,352 | jbundle/jbundle | thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java | FieldList.addPropertyChangeListener | public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
{
if (propertyChange == null)
propertyChange = new java.beans.PropertyChangeSupport(this);
propertyChange.addPropertyChangeListener(listener);
} | java | public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
{
if (propertyChange == null)
propertyChange = new java.beans.PropertyChangeSupport(this);
propertyChange.addPropertyChangeListener(listener);
} | [
"public",
"synchronized",
"void",
"addPropertyChangeListener",
"(",
"java",
".",
"beans",
".",
"PropertyChangeListener",
"listener",
")",
"{",
"if",
"(",
"propertyChange",
"==",
"null",
")",
"propertyChange",
"=",
"new",
"java",
".",
"beans",
".",
"PropertyChangeS... | The addPropertyChangeListener method was generated to support the propertyChange field.
@param listener The propery change listener to add to my listeners. | [
"The",
"addPropertyChangeListener",
"method",
"was",
"generated",
"to",
"support",
"the",
"propertyChange",
"field",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java#L393-L398 |
153,353 | jbundle/jbundle | thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java | FieldList.removePropertyChangeListener | public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
{
if (propertyChange != null)
propertyChange.removePropertyChangeListener(listener);
} | java | public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
{
if (propertyChange != null)
propertyChange.removePropertyChangeListener(listener);
} | [
"public",
"synchronized",
"void",
"removePropertyChangeListener",
"(",
"java",
".",
"beans",
".",
"PropertyChangeListener",
"listener",
")",
"{",
"if",
"(",
"propertyChange",
"!=",
"null",
")",
"propertyChange",
".",
"removePropertyChangeListener",
"(",
"listener",
")... | The removePropertyChangeListener method was generated to support the propertyChange field.
@param listener The propery change listener to remove from my listeners. | [
"The",
"removePropertyChangeListener",
"method",
"was",
"generated",
"to",
"support",
"the",
"propertyChange",
"field",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java#L414-L418 |
153,354 | jbundle/jbundle | thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java | FieldList.getString | public String getString(String strResource)
{
String strResult = null;
if (m_menuResourceBundle == null)
{
m_menuResourceBundle = new ResourceBundle[10];
Class<?> classResource = this.getClass();
Locale locale = Locale.getDefault();
for (int i ... | java | public String getString(String strResource)
{
String strResult = null;
if (m_menuResourceBundle == null)
{
m_menuResourceBundle = new ResourceBundle[10];
Class<?> classResource = this.getClass();
Locale locale = Locale.getDefault();
for (int i ... | [
"public",
"String",
"getString",
"(",
"String",
"strResource",
")",
"{",
"String",
"strResult",
"=",
"null",
";",
"if",
"(",
"m_menuResourceBundle",
"==",
"null",
")",
"{",
"m_menuResourceBundle",
"=",
"new",
"ResourceBundle",
"[",
"10",
"]",
";",
"Class",
"... | Get the string that matches this key.
This method traverses the class hierarchy for a matching string that matches this key value.
If the resource bundle hasn't been read yet, reads the bundle from the .res package.
@param strResource The key.
@return The value (returns the key if no value is found). | [
"Get",
"the",
"string",
"that",
"matches",
"this",
"key",
".",
"This",
"method",
"traverses",
"the",
"class",
"hierarchy",
"for",
"a",
"matching",
"string",
"that",
"matches",
"this",
"key",
"value",
".",
"If",
"the",
"resource",
"bundle",
"hasn",
"t",
"be... | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java#L501-L539 |
153,355 | jbundle/jbundle | thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java | FieldList.getRecordResource | public ResourceBundle getRecordResource(Class<?> classResource, Locale locale)
{
ClassLoader classLoader = this.getClass().getClassLoader();
ResourceBundle resourceBundle = null;
String typicalResourceClassName = null;
try {
typicalResourceClassName = Util.convertClassN... | java | public ResourceBundle getRecordResource(Class<?> classResource, Locale locale)
{
ClassLoader classLoader = this.getClass().getClassLoader();
ResourceBundle resourceBundle = null;
String typicalResourceClassName = null;
try {
typicalResourceClassName = Util.convertClassN... | [
"public",
"ResourceBundle",
"getRecordResource",
"(",
"Class",
"<",
"?",
">",
"classResource",
",",
"Locale",
"locale",
")",
"{",
"ClassLoader",
"classLoader",
"=",
"this",
".",
"getClass",
"(",
")",
".",
"getClassLoader",
"(",
")",
";",
"ResourceBundle",
"res... | Get the record resource bundle.
@param classResource
@param locale
@return | [
"Get",
"the",
"record",
"resource",
"bundle",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/db/base/src/main/java/org/jbundle/thin/base/db/FieldList.java#L546-L574 |
153,356 | carewebframework/carewebframework-vista | org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java | RPCParameter.hasData | public HasData hasData() {
boolean scalar = values.containsKey("");
boolean vector = scalar ? getCount() > 1 : getCount() > 0;
return scalar && vector ? HasData.BOTH : scalar ? HasData.SCALAR : vector ? HasData.VECTOR : HasData.NONE;
} | java | public HasData hasData() {
boolean scalar = values.containsKey("");
boolean vector = scalar ? getCount() > 1 : getCount() > 0;
return scalar && vector ? HasData.BOTH : scalar ? HasData.SCALAR : vector ? HasData.VECTOR : HasData.NONE;
} | [
"public",
"HasData",
"hasData",
"(",
")",
"{",
"boolean",
"scalar",
"=",
"values",
".",
"containsKey",
"(",
"\"\"",
")",
";",
"boolean",
"vector",
"=",
"scalar",
"?",
"getCount",
"(",
")",
">",
"1",
":",
"getCount",
"(",
")",
">",
"0",
";",
"return",... | Returns the type of data contained in the parameter.
@return Type of data. | [
"Returns",
"the",
"type",
"of",
"data",
"contained",
"in",
"the",
"parameter",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java#L80-L84 |
153,357 | carewebframework/carewebframework-vista | org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java | RPCParameter.get | public Object get(String subscript) {
if (!values.containsKey(subscript)) {
throw new RuntimeException("Subscript not found");
}
return values.get(subscript);
} | java | public Object get(String subscript) {
if (!values.containsKey(subscript)) {
throw new RuntimeException("Subscript not found");
}
return values.get(subscript);
} | [
"public",
"Object",
"get",
"(",
"String",
"subscript",
")",
"{",
"if",
"(",
"!",
"values",
".",
"containsKey",
"(",
"subscript",
")",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Subscript not found\"",
")",
";",
"}",
"return",
"values",
".",
"get... | Returns the subscripted vector value. A runtime exception is thrown if no vector value exists
at the specified subscript.
@param subscript The subscript specifier.
@return The vector value. | [
"Returns",
"the",
"subscripted",
"vector",
"value",
".",
"A",
"runtime",
"exception",
"is",
"thrown",
"if",
"no",
"vector",
"value",
"exists",
"at",
"the",
"specified",
"subscript",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java#L102-L108 |
153,358 | carewebframework/carewebframework-vista | org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java | RPCParameter.assign | public void assign(Iterable<?> source) {
clear();
int i = 0;
for (Object value : source) {
values.put(Integer.toString(++i), value);
}
} | java | public void assign(Iterable<?> source) {
clear();
int i = 0;
for (Object value : source) {
values.put(Integer.toString(++i), value);
}
} | [
"public",
"void",
"assign",
"(",
"Iterable",
"<",
"?",
">",
"source",
")",
"{",
"clear",
"(",
")",
";",
"int",
"i",
"=",
"0",
";",
"for",
"(",
"Object",
"value",
":",
"source",
")",
"{",
"values",
".",
"put",
"(",
"Integer",
".",
"toString",
"(",... | Copies source values as integer-indexed vector values.
@param source Source values. | [
"Copies",
"source",
"values",
"as",
"integer",
"-",
"indexed",
"vector",
"values",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java#L125-L132 |
153,359 | carewebframework/carewebframework-vista | org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java | RPCParameter.assignArray | public void assignArray(Object source) {
int len = Array.getLength(source);
List<Object> list = new ArrayList<Object>(len);
for (int i = 0; i < len; i++) {
list.add(Array.get(source, i));
}
assign(list);
} | java | public void assignArray(Object source) {
int len = Array.getLength(source);
List<Object> list = new ArrayList<Object>(len);
for (int i = 0; i < len; i++) {
list.add(Array.get(source, i));
}
assign(list);
} | [
"public",
"void",
"assignArray",
"(",
"Object",
"source",
")",
"{",
"int",
"len",
"=",
"Array",
".",
"getLength",
"(",
"source",
")",
";",
"List",
"<",
"Object",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"Object",
">",
"(",
"len",
")",
";",
"for",
... | Copies source values from an input array as integer-indexed vector values.
@param source Source values. | [
"Copies",
"source",
"values",
"from",
"an",
"input",
"array",
"as",
"integer",
"-",
"indexed",
"vector",
"values",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java#L139-L148 |
153,360 | carewebframework/carewebframework-vista | org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java | RPCParameter.put | public void put(Object[] subscript, Object value) {
put(BrokerUtil.buildSubscript(subscript), value);
} | java | public void put(Object[] subscript, Object value) {
put(BrokerUtil.buildSubscript(subscript), value);
} | [
"public",
"void",
"put",
"(",
"Object",
"[",
"]",
"subscript",
",",
"Object",
"value",
")",
"{",
"put",
"(",
"BrokerUtil",
".",
"buildSubscript",
"(",
"subscript",
")",
",",
"value",
")",
";",
"}"
] | Adds a vector value at the specified subscript.
@param subscript Array of subscript values.
@param value Value. | [
"Adds",
"a",
"vector",
"value",
"at",
"the",
"specified",
"subscript",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.mbroker/src/main/java/org/carewebframework/vista/mbroker/RPCParameter.java#L186-L188 |
153,361 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/message/event/FieldListMessageHandler.java | FieldListMessageHandler.handleMessage | public int handleMessage(BaseMessage message)
{
try {
int iMessageType = Integer.parseInt((String)message.get(MessageConstants.MESSAGE_TYPE_PARAM));
if ((iMessageType == Constants.AFTER_UPDATE_TYPE)
|| (iMessageType == Constants.CACHE_UPDATE_TYPE... | java | public int handleMessage(BaseMessage message)
{
try {
int iMessageType = Integer.parseInt((String)message.get(MessageConstants.MESSAGE_TYPE_PARAM));
if ((iMessageType == Constants.AFTER_UPDATE_TYPE)
|| (iMessageType == Constants.CACHE_UPDATE_TYPE... | [
"public",
"int",
"handleMessage",
"(",
"BaseMessage",
"message",
")",
"{",
"try",
"{",
"int",
"iMessageType",
"=",
"Integer",
".",
"parseInt",
"(",
"(",
"String",
")",
"message",
".",
"get",
"(",
"MessageConstants",
".",
"MESSAGE_TYPE_PARAM",
")",
")",
";",
... | Handle this message.
Basically, if I get a message that the current record changed, I re-read the record.
@param The message to handle.
@return An error code. | [
"Handle",
"this",
"message",
".",
"Basically",
"if",
"I",
"get",
"a",
"message",
"that",
"the",
"current",
"record",
"changed",
"I",
"re",
"-",
"read",
"the",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/message/event/FieldListMessageHandler.java#L84-L97 |
153,362 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.add | public void add(final ITopicNode specTopic, final String key) {
if (specTopic == null) return;
final Integer topicId = specTopic.getDBId();
if (!topics.containsKey(topicId)) {
topics.put(topicId, new LinkedList<ITopicNode>());
}
// Make sure the key exists
i... | java | public void add(final ITopicNode specTopic, final String key) {
if (specTopic == null) return;
final Integer topicId = specTopic.getDBId();
if (!topics.containsKey(topicId)) {
topics.put(topicId, new LinkedList<ITopicNode>());
}
// Make sure the key exists
i... | [
"public",
"void",
"add",
"(",
"final",
"ITopicNode",
"specTopic",
",",
"final",
"String",
"key",
")",
"{",
"if",
"(",
"specTopic",
"==",
"null",
")",
"return",
";",
"final",
"Integer",
"topicId",
"=",
"specTopic",
".",
"getDBId",
"(",
")",
";",
"if",
"... | Add a SpecTopic to the database.
@param specTopic The SpecTopic object to be added.
@param key A key that represents the Topic mapped to the SpecTopic | [
"Add",
"a",
"SpecTopic",
"to",
"the",
"database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L50-L65 |
153,363 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.setDatabaseDuplicateIds | public void setDatabaseDuplicateIds() {
// Set the spec topic duplicate ids based on topic title
for (final Entry<Integer, List<ITopicNode>> topicTitleEntry : topics.entrySet()) {
final List<ITopicNode> topics = topicTitleEntry.getValue();
if (topics.size() > 1) {
... | java | public void setDatabaseDuplicateIds() {
// Set the spec topic duplicate ids based on topic title
for (final Entry<Integer, List<ITopicNode>> topicTitleEntry : topics.entrySet()) {
final List<ITopicNode> topics = topicTitleEntry.getValue();
if (topics.size() > 1) {
... | [
"public",
"void",
"setDatabaseDuplicateIds",
"(",
")",
"{",
"// Set the spec topic duplicate ids based on topic title",
"for",
"(",
"final",
"Entry",
"<",
"Integer",
",",
"List",
"<",
"ITopicNode",
">",
">",
"topicTitleEntry",
":",
"topics",
".",
"entrySet",
"(",
")... | Sets the Duplicate IDs for all the SpecTopics in the Database. | [
"Sets",
"the",
"Duplicate",
"IDs",
"for",
"all",
"the",
"SpecTopics",
"in",
"the",
"Database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L81-L91 |
153,364 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.isUniqueSpecTopic | public boolean isUniqueSpecTopic(final SpecTopic topic) {
return topics.containsKey(topic.getDBId()) ? topics.get(topic.getDBId()).size() == 1 : false;
} | java | public boolean isUniqueSpecTopic(final SpecTopic topic) {
return topics.containsKey(topic.getDBId()) ? topics.get(topic.getDBId()).size() == 1 : false;
} | [
"public",
"boolean",
"isUniqueSpecTopic",
"(",
"final",
"SpecTopic",
"topic",
")",
"{",
"return",
"topics",
".",
"containsKey",
"(",
"topic",
".",
"getDBId",
"(",
")",
")",
"?",
"topics",
".",
"get",
"(",
"topic",
".",
"getDBId",
"(",
")",
")",
".",
"s... | Checks if a topic is unique in the database.
@param topic The Topic to be checked to see if it's unique.
@return True if the topic exists in the database and it is unique, otherwise false. | [
"Checks",
"if",
"a",
"topic",
"is",
"unique",
"in",
"the",
"database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L108-L110 |
153,365 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.getAllSpecTopics | public List<SpecTopic> getAllSpecTopics() {
final ArrayList<SpecTopic> specTopics = new ArrayList<SpecTopic>();
for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
for (final ITopicNode topic : topicEntry.getValue()) {
if (topic instanceof SpecTopic)... | java | public List<SpecTopic> getAllSpecTopics() {
final ArrayList<SpecTopic> specTopics = new ArrayList<SpecTopic>();
for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
for (final ITopicNode topic : topicEntry.getValue()) {
if (topic instanceof SpecTopic)... | [
"public",
"List",
"<",
"SpecTopic",
">",
"getAllSpecTopics",
"(",
")",
"{",
"final",
"ArrayList",
"<",
"SpecTopic",
">",
"specTopics",
"=",
"new",
"ArrayList",
"<",
"SpecTopic",
">",
"(",
")",
";",
"for",
"(",
"final",
"Entry",
"<",
"Integer",
",",
"List... | Get a List of all the SpecTopics in the Database.
@return A list of SpecTopic objects. | [
"Get",
"a",
"List",
"of",
"all",
"the",
"SpecTopics",
"in",
"the",
"Database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L145-L156 |
153,366 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.getAllTopicNodes | public List<ITopicNode> getAllTopicNodes() {
final ArrayList<ITopicNode> topicNodes = new ArrayList<ITopicNode>();
for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
topicNodes.addAll(topicEntry.getValue());
}
return topicNodes;
} | java | public List<ITopicNode> getAllTopicNodes() {
final ArrayList<ITopicNode> topicNodes = new ArrayList<ITopicNode>();
for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
topicNodes.addAll(topicEntry.getValue());
}
return topicNodes;
} | [
"public",
"List",
"<",
"ITopicNode",
">",
"getAllTopicNodes",
"(",
")",
"{",
"final",
"ArrayList",
"<",
"ITopicNode",
">",
"topicNodes",
"=",
"new",
"ArrayList",
"<",
"ITopicNode",
">",
"(",
")",
";",
"for",
"(",
"final",
"Entry",
"<",
"Integer",
",",
"L... | Get a List of all the Topic nodes in the Database.
@return A list of ITopicNode objects. | [
"Get",
"a",
"List",
"of",
"all",
"the",
"Topic",
"nodes",
"in",
"the",
"Database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L163-L170 |
153,367 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.getAllSpecNodes | public List<SpecNode> getAllSpecNodes() {
final ArrayList<SpecNode> retValue = new ArrayList<SpecNode>();
// Add all the levels
retValue.addAll(levels);
// Add all the topics
for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
for (final IT... | java | public List<SpecNode> getAllSpecNodes() {
final ArrayList<SpecNode> retValue = new ArrayList<SpecNode>();
// Add all the levels
retValue.addAll(levels);
// Add all the topics
for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
for (final IT... | [
"public",
"List",
"<",
"SpecNode",
">",
"getAllSpecNodes",
"(",
")",
"{",
"final",
"ArrayList",
"<",
"SpecNode",
">",
"retValue",
"=",
"new",
"ArrayList",
"<",
"SpecNode",
">",
"(",
")",
";",
"// Add all the levels",
"retValue",
".",
"addAll",
"(",
"levels",... | Get a List of all the SpecNodes in the Database.
@return A list of Level objects. | [
"Get",
"a",
"List",
"of",
"all",
"the",
"SpecNodes",
"in",
"the",
"Database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L186-L202 |
153,368 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.getIdAttributes | public Set<String> getIdAttributes(final BuildData buildData) {
final Set<String> ids = new HashSet<String>();
// Add all the level id attributes
for (final Level level : levels) {
ids.add(level.getUniqueLinkId(buildData.isUseFixedUrls()));
}
// Add all the topic id... | java | public Set<String> getIdAttributes(final BuildData buildData) {
final Set<String> ids = new HashSet<String>();
// Add all the level id attributes
for (final Level level : levels) {
ids.add(level.getUniqueLinkId(buildData.isUseFixedUrls()));
}
// Add all the topic id... | [
"public",
"Set",
"<",
"String",
">",
"getIdAttributes",
"(",
"final",
"BuildData",
"buildData",
")",
"{",
"final",
"Set",
"<",
"String",
">",
"ids",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"// Add all the level id attributes",
"for",
"(",
... | Get a list of all the ID Attributes of all the topics and levels held in the database.
@param buildData
@return A List of IDs that exist for levels and topics in the database. | [
"Get",
"a",
"list",
"of",
"all",
"the",
"ID",
"Attributes",
"of",
"all",
"the",
"topics",
"and",
"levels",
"held",
"in",
"the",
"database",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L210-L230 |
153,369 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.getAllTopics | @SuppressWarnings("unchecked")
public <T extends BaseTopicWrapper<T>> List<T> getAllTopics(boolean ignoreRevisions) {
final List<T> topics = new ArrayList<T>();
for (final Entry<Integer, List<ITopicNode>> entry : this.topics.entrySet()) {
final Integer topicId = entry.getKey();
... | java | @SuppressWarnings("unchecked")
public <T extends BaseTopicWrapper<T>> List<T> getAllTopics(boolean ignoreRevisions) {
final List<T> topics = new ArrayList<T>();
for (final Entry<Integer, List<ITopicNode>> entry : this.topics.entrySet()) {
final Integer topicId = entry.getKey();
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"BaseTopicWrapper",
"<",
"T",
">",
">",
"List",
"<",
"T",
">",
"getAllTopics",
"(",
"boolean",
"ignoreRevisions",
")",
"{",
"final",
"List",
"<",
"T",
">",
"topics",
"=",
... | Get all of the Topics that exist in the database. You can either choose to ignore revisions, meaning two topics with the
same ID but different revisions are classed as the same topic. Or choose to take note of revisions, meaning if two topics
have different revisions but the same ID, they are still classed as different... | [
"Get",
"all",
"of",
"the",
"Topics",
"that",
"exist",
"in",
"the",
"database",
".",
"You",
"can",
"either",
"choose",
"to",
"ignore",
"revisions",
"meaning",
"two",
"topics",
"with",
"the",
"same",
"ID",
"but",
"different",
"revisions",
"are",
"classed",
"... | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L249-L264 |
153,370 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java | BuildDatabase.getUniqueTopicsFromSpecTopics | @SuppressWarnings("unchecked")
protected <T extends BaseTopicWrapper<T>> List<T> getUniqueTopicsFromSpecTopics(final List<ITopicNode> topics) {
// Find all the unique topics first
final Map<Integer, T> revisionToTopic = new HashMap<Integer, T>();
for (final ITopicNode specTopic : topics) {
... | java | @SuppressWarnings("unchecked")
protected <T extends BaseTopicWrapper<T>> List<T> getUniqueTopicsFromSpecTopics(final List<ITopicNode> topics) {
// Find all the unique topics first
final Map<Integer, T> revisionToTopic = new HashMap<Integer, T>();
for (final ITopicNode specTopic : topics) {
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"<",
"T",
"extends",
"BaseTopicWrapper",
"<",
"T",
">",
">",
"List",
"<",
"T",
">",
"getUniqueTopicsFromSpecTopics",
"(",
"final",
"List",
"<",
"ITopicNode",
">",
"topics",
")",
"{",
"// Find all... | Get a list of Unique Topics from a list of SpecTopics.
@param topics The list of SpecTopic object to get the topics from.
@return A Unique list of Topics. | [
"Get",
"a",
"list",
"of",
"Unique",
"Topics",
"from",
"a",
"list",
"of",
"SpecTopics",
"."
] | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/structures/BuildDatabase.java#L272-L294 |
153,371 | drewwills/cernunnos | cernunnos-core/src/main/java/org/danann/cernunnos/AbstractContainerTask.java | AbstractContainerTask.loadSubtasks | @SuppressWarnings("unchecked")
protected List<Task> loadSubtasks(EntityConfig config, Reagent subtasksPhrase, boolean warnIfMissing) {
final List<Task> subtasks = new LinkedList<Task>();
final List<Element> taskElements = (List<Element>) config.getValue(subtasksPhrase);
final Grammar grammar = ... | java | @SuppressWarnings("unchecked")
protected List<Task> loadSubtasks(EntityConfig config, Reagent subtasksPhrase, boolean warnIfMissing) {
final List<Task> subtasks = new LinkedList<Task>();
final List<Element> taskElements = (List<Element>) config.getValue(subtasksPhrase);
final Grammar grammar = ... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"List",
"<",
"Task",
">",
"loadSubtasks",
"(",
"EntityConfig",
"config",
",",
"Reagent",
"subtasksPhrase",
",",
"boolean",
"warnIfMissing",
")",
"{",
"final",
"List",
"<",
"Task",
">",
"subtasks",
... | Abstracts the loading of subtasks for a Reagent into a single menthod
@param warnIfMissing If true a WARN level log message will be issued if no tasks are loaded for the Reagent | [
"Abstracts",
"the",
"loading",
"of",
"subtasks",
"for",
"a",
"Reagent",
"into",
"a",
"single",
"menthod"
] | dc6848e0253775e22b6c869fd06506d4ddb6d728 | https://github.com/drewwills/cernunnos/blob/dc6848e0253775e22b6c869fd06506d4ddb6d728/cernunnos-core/src/main/java/org/danann/cernunnos/AbstractContainerTask.java#L87-L109 |
153,372 | drewwills/cernunnos | cernunnos-core/src/main/java/org/danann/cernunnos/AbstractContainerTask.java | AbstractContainerTask.performSubtasks | protected void performSubtasks(TaskRequest req, TaskResponse res, List<Task> tasks) {
// Assertions...
if (req == null) {
String msg = "Argument 'req' cannot be null.";
throw new IllegalArgumentException(msg);
}
if (res == null) {
String msg = "Argumen... | java | protected void performSubtasks(TaskRequest req, TaskResponse res, List<Task> tasks) {
// Assertions...
if (req == null) {
String msg = "Argument 'req' cannot be null.";
throw new IllegalArgumentException(msg);
}
if (res == null) {
String msg = "Argumen... | [
"protected",
"void",
"performSubtasks",
"(",
"TaskRequest",
"req",
",",
"TaskResponse",
"res",
",",
"List",
"<",
"Task",
">",
"tasks",
")",
"{",
"// Assertions...",
"if",
"(",
"req",
"==",
"null",
")",
"{",
"String",
"msg",
"=",
"\"Argument 'req' cannot be nul... | Executes a List of Tasks as children of this Task | [
"Executes",
"a",
"List",
"of",
"Tasks",
"as",
"children",
"of",
"this",
"Task"
] | dc6848e0253775e22b6c869fd06506d4ddb6d728 | https://github.com/drewwills/cernunnos/blob/dc6848e0253775e22b6c869fd06506d4ddb6d728/cernunnos-core/src/main/java/org/danann/cernunnos/AbstractContainerTask.java#L129-L150 |
153,373 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.free | public void free()
{
m_DBObject = null;
while (m_listener != null)
{
this.removeListener(m_listener, true); // free all the behaviors
}
if (m_vScreenField != null)
{ // Remove all the screen fields
while (!m_vScreenField.isEmpty())
... | java | public void free()
{
m_DBObject = null;
while (m_listener != null)
{
this.removeListener(m_listener, true); // free all the behaviors
}
if (m_vScreenField != null)
{ // Remove all the screen fields
while (!m_vScreenField.isEmpty())
... | [
"public",
"void",
"free",
"(",
")",
"{",
"m_DBObject",
"=",
"null",
";",
"while",
"(",
"m_listener",
"!=",
"null",
")",
"{",
"this",
".",
"removeListener",
"(",
"m_listener",
",",
"true",
")",
";",
"// free all the behaviors",
"}",
"if",
"(",
"m_vScreenFie... | Free this field. | [
"Free",
"this",
"field",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L142-L160 |
153,374 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.cloneField | public static BaseField cloneField(BaseField fieldToClone) throws CloneNotSupportedException
{
BaseField field = null;
String strClassName = fieldToClone.getClass().getName();
field = (BaseField)ClassServiceUtility.getClassService().makeObjectFromClassName(strClassName);
if (field !=... | java | public static BaseField cloneField(BaseField fieldToClone) throws CloneNotSupportedException
{
BaseField field = null;
String strClassName = fieldToClone.getClass().getName();
field = (BaseField)ClassServiceUtility.getClassService().makeObjectFromClassName(strClassName);
if (field !=... | [
"public",
"static",
"BaseField",
"cloneField",
"(",
"BaseField",
"fieldToClone",
")",
"throws",
"CloneNotSupportedException",
"{",
"BaseField",
"field",
"=",
"null",
";",
"String",
"strClassName",
"=",
"fieldToClone",
".",
"getClass",
"(",
")",
".",
"getName",
"("... | Creates a new object of the exact same class as this field.
The clone method will clone a field that can contain the same kind of data but may not be the exact same field class.
@return a clone of this instance.
@exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code... | [
"Creates",
"a",
"new",
"object",
"of",
"the",
"exact",
"same",
"class",
"as",
"this",
"field",
".",
"The",
"clone",
"method",
"will",
"clone",
"a",
"field",
"that",
"can",
"contain",
"the",
"same",
"kind",
"of",
"data",
"but",
"may",
"not",
"be",
"the"... | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L240-L251 |
153,375 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.removeListener | public void removeListener(BaseListener listener, boolean bFreeListener)
{
if (m_listener != null)
{
if (m_listener == listener)
{
m_listener = (FieldListener)listener.getNextListener();
listener.unlink(bFreeListener); // remove theBehavior... | java | public void removeListener(BaseListener listener, boolean bFreeListener)
{
if (m_listener != null)
{
if (m_listener == listener)
{
m_listener = (FieldListener)listener.getNextListener();
listener.unlink(bFreeListener); // remove theBehavior... | [
"public",
"void",
"removeListener",
"(",
"BaseListener",
"listener",
",",
"boolean",
"bFreeListener",
")",
"{",
"if",
"(",
"m_listener",
"!=",
"null",
")",
"{",
"if",
"(",
"m_listener",
"==",
"listener",
")",
"{",
"m_listener",
"=",
"(",
"FieldListener",
")"... | Remove this listener from the chain.
@param listener The listener to remove.
@param bFreeListener If true, the listener is also freed. | [
"Remove",
"this",
"listener",
"from",
"the",
"chain",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L293-L305 |
153,376 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.addQuotes | public static final String addQuotes(String szTableNames, char charStart, char charEnd)
{
String strFileName = szTableNames;
if (charStart == -1)
charStart = DBConstants.SQL_START_QUOTE;
if (charEnd == -1)
charEnd = DBConstants.SQL_END_QUOTE;
for (int iIndex ... | java | public static final String addQuotes(String szTableNames, char charStart, char charEnd)
{
String strFileName = szTableNames;
if (charStart == -1)
charStart = DBConstants.SQL_START_QUOTE;
if (charEnd == -1)
charEnd = DBConstants.SQL_END_QUOTE;
for (int iIndex ... | [
"public",
"static",
"final",
"String",
"addQuotes",
"(",
"String",
"szTableNames",
",",
"char",
"charStart",
",",
"char",
"charEnd",
")",
"{",
"String",
"strFileName",
"=",
"szTableNames",
";",
"if",
"(",
"charStart",
"==",
"-",
"1",
")",
"charStart",
"=",
... | Add these quotes to this string.
@param szTableNames The source string.
@param charStart The starting quote.
@param charEnd The ending quote.
@return The new (quoted) string. | [
"Add",
"these",
"quotes",
"to",
"this",
"string",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L330-L353 |
153,377 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.displayField | public void displayField() // init this field override for other value
{
if (m_vScreenField == null)
return;
for (Enumeration<Object> e = m_vScreenField.elements() ; e.hasMoreElements() ;) {
ScreenComponent sField = (ScreenComponent)e.nextElement();
... | java | public void displayField() // init this field override for other value
{
if (m_vScreenField == null)
return;
for (Enumeration<Object> e = m_vScreenField.elements() ; e.hasMoreElements() ;) {
ScreenComponent sField = (ScreenComponent)e.nextElement();
... | [
"public",
"void",
"displayField",
"(",
")",
"// init this field override for other value",
"{",
"if",
"(",
"m_vScreenField",
"==",
"null",
")",
"return",
";",
"for",
"(",
"Enumeration",
"<",
"Object",
">",
"e",
"=",
"m_vScreenField",
".",
"elements",
"(",
")",
... | Display this field using all this field's screen fields. | [
"Display",
"this",
"field",
"using",
"all",
"this",
"field",
"s",
"screen",
"fields",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L423-L431 |
153,378 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.setEnableListeners | public void setEnableListeners(boolean[] rgbEnabled)
{
int iIndex = 0;
FieldListener fieldBehavior = this.getListener();
while (fieldBehavior != null)
{
boolean bEnable = true;
if ((rgbEnabled != null) && (iIndex < rgbEnabled.length))
bEnable =... | java | public void setEnableListeners(boolean[] rgbEnabled)
{
int iIndex = 0;
FieldListener fieldBehavior = this.getListener();
while (fieldBehavior != null)
{
boolean bEnable = true;
if ((rgbEnabled != null) && (iIndex < rgbEnabled.length))
bEnable =... | [
"public",
"void",
"setEnableListeners",
"(",
"boolean",
"[",
"]",
"rgbEnabled",
")",
"{",
"int",
"iIndex",
"=",
"0",
";",
"FieldListener",
"fieldBehavior",
"=",
"this",
".",
"getListener",
"(",
")",
";",
"while",
"(",
"fieldBehavior",
"!=",
"null",
")",
"{... | Get the status of the the FieldChanged behaviors?
@return The handle field change flag (if false field change handling is disabled). | [
"Get",
"the",
"status",
"of",
"the",
"the",
"FieldChanged",
"behaviors?"
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L600-L614 |
153,379 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.getData | public Object getData()
{
Object objData = null;
FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); // Fix this
if (nextListener != null)
{
boolean bOldState = nextListener.setEnabledListener(false); // Disable the liste... | java | public Object getData()
{
Object objData = null;
FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); // Fix this
if (nextListener != null)
{
boolean bOldState = nextListener.setEnabledListener(false); // Disable the liste... | [
"public",
"Object",
"getData",
"(",
")",
"{",
"Object",
"objData",
"=",
"null",
";",
"FieldListener",
"nextListener",
"=",
"(",
"FieldListener",
")",
"this",
".",
"getNextValidListener",
"(",
"DBConstants",
".",
"SCREEN_MOVE",
")",
";",
"// Fix this",
"if",
"(... | Get the physical binary data from this field.
Behaviors are often used to initiate a complicated action only when the system asks for this data.
@return The raw data for this field. | [
"Get",
"the",
"physical",
"binary",
"data",
"from",
"this",
"field",
".",
"Behaviors",
"are",
"often",
"used",
"to",
"initiate",
"a",
"complicated",
"action",
"only",
"when",
"the",
"system",
"asks",
"for",
"this",
"data",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L620-L633 |
153,380 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.getFieldName | public String getFieldName(boolean bAddQuotes, boolean bIncludeFileName)
{
if (!bAddQuotes) if (!bIncludeFileName)
return super.getFieldName(bAddQuotes, bIncludeFileName); // Return m_sFieldName
String strFieldName = Constants.BLANK;
if (bIncludeFileName)
if (this.... | java | public String getFieldName(boolean bAddQuotes, boolean bIncludeFileName)
{
if (!bAddQuotes) if (!bIncludeFileName)
return super.getFieldName(bAddQuotes, bIncludeFileName); // Return m_sFieldName
String strFieldName = Constants.BLANK;
if (bIncludeFileName)
if (this.... | [
"public",
"String",
"getFieldName",
"(",
"boolean",
"bAddQuotes",
",",
"boolean",
"bIncludeFileName",
")",
"{",
"if",
"(",
"!",
"bAddQuotes",
")",
"if",
"(",
"!",
"bIncludeFileName",
")",
"return",
"super",
".",
"getFieldName",
"(",
"bAddQuotes",
",",
"bInclud... | Get this field's name.
@param bAddQuotes Add quotes if this field contains a space.
@param bIncludeFileName include the file name as file.field.
@return The field name. | [
"Get",
"this",
"field",
"s",
"name",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L658-L672 |
153,381 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.isSameType | public boolean isSameType(FieldInfo field)
{ // Copy this data to a field //Change this to lock the objects down first!
boolean bSameType = false;
if (this.getClass().getName().equals(field.getClass().getName()))
bSameType = true;
else
{
Object data = this.ge... | java | public boolean isSameType(FieldInfo field)
{ // Copy this data to a field //Change this to lock the objects down first!
boolean bSameType = false;
if (this.getClass().getName().equals(field.getClass().getName()))
bSameType = true;
else
{
Object data = this.ge... | [
"public",
"boolean",
"isSameType",
"(",
"FieldInfo",
"field",
")",
"{",
"// Copy this data to a field //Change this to lock the objects down first!",
"boolean",
"bSameType",
"=",
"false",
";",
"if",
"(",
"this",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
... | Are the data in these fields the same type?
@param field The field to check.
@return True if the raw data type is the same for both fields. | [
"Are",
"the",
"data",
"in",
"these",
"fields",
"the",
"same",
"type?"
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L938-L957 |
153,382 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.moveFieldToThis | public int moveFieldToThis(FieldInfo field, boolean bDisplayOption, int iMoveMode)
{ // Copy a field to this
if (this.isSameType(field))
{ // Same type, just move the info
Object data = field.getData();
return this.setData(data, bDisplayOption, iMoveMode);
}
e... | java | public int moveFieldToThis(FieldInfo field, boolean bDisplayOption, int iMoveMode)
{ // Copy a field to this
if (this.isSameType(field))
{ // Same type, just move the info
Object data = field.getData();
return this.setData(data, bDisplayOption, iMoveMode);
}
e... | [
"public",
"int",
"moveFieldToThis",
"(",
"FieldInfo",
"field",
",",
"boolean",
"bDisplayOption",
",",
"int",
"iMoveMode",
")",
"{",
"// Copy a field to this",
"if",
"(",
"this",
".",
"isSameType",
"(",
"field",
")",
")",
"{",
"// Same type, just move the info",
"O... | Move data to this field from another field.
If the data types are the same data is moved, otherwise a string conversion is done.
@param field The source field.
@param bDisplayOption If true, display changes.
@param iMoveMode The move mode.
@return The error code (or NORMAL_RETURN). | [
"Move",
"data",
"to",
"this",
"field",
"from",
"another",
"field",
".",
"If",
"the",
"data",
"types",
"are",
"the",
"same",
"data",
"is",
"moved",
"otherwise",
"a",
"string",
"conversion",
"is",
"done",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L1008-L1020 |
153,383 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.setSFieldToProperty | public int setSFieldToProperty()
{
int iErrorCode = DBConstants.NORMAL_RETURN;
m_bJustChanged = false;
for (int iComponent = 0; ; iComponent++)
{
ScreenComponent sField = this.getComponent(iComponent);
if (sField == null)
break;
iEr... | java | public int setSFieldToProperty()
{
int iErrorCode = DBConstants.NORMAL_RETURN;
m_bJustChanged = false;
for (int iComponent = 0; ; iComponent++)
{
ScreenComponent sField = this.getComponent(iComponent);
if (sField == null)
break;
iEr... | [
"public",
"int",
"setSFieldToProperty",
"(",
")",
"{",
"int",
"iErrorCode",
"=",
"DBConstants",
".",
"NORMAL_RETURN",
";",
"m_bJustChanged",
"=",
"false",
";",
"for",
"(",
"int",
"iComponent",
"=",
"0",
";",
";",
"iComponent",
"++",
")",
"{",
"ScreenComponen... | This is a utility method to simplify setting a single field to the field's property.
@return The error code on set. | [
"This",
"is",
"a",
"utility",
"method",
"to",
"simplify",
"setting",
"a",
"single",
"field",
"to",
"the",
"field",
"s",
"property",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L1073-L1096 |
153,384 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/BaseField.java | BaseField.createScreenComponent | public static ScreenComponent createScreenComponent(String componentType, ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String,Object> properties)
{
String screenFieldClass = null;
if (!componentType.contains("."))
screenFieldClass = S... | java | public static ScreenComponent createScreenComponent(String componentType, ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String,Object> properties)
{
String screenFieldClass = null;
if (!componentType.contains("."))
screenFieldClass = S... | [
"public",
"static",
"ScreenComponent",
"createScreenComponent",
"(",
"String",
"componentType",
",",
"ScreenLoc",
"itsLocation",
",",
"ComponentParent",
"targetScreen",
",",
"Convert",
"converter",
",",
"int",
"iDisplayFieldDesc",
",",
"Map",
"<",
"String",
",",
"Obje... | Create a screen component of this type.
@param componentType
@param itsLocation
@param targetScreen
@param convert
@param iDisplayFieldDesc
@param properties
@return | [
"Create",
"a",
"screen",
"component",
"of",
"this",
"type",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BaseField.java#L1412-L1429 |
153,385 | jbundle/jbundle | thin/base/screen/cal/other/src/main/java/org/jbundle/thin/base/screen/cal/opt/DateChangeTask.java | DateChangeTask.setStartDate | public void setStartDate(Date dateStart)
{
try {
// NOTE: I ignore dateStart and use the date as it appears on the screen
dateStart = m_productItem.getStartDate(); // Date as it appears on the screen
Date timeNew = m_productItem.setRemoteStartDate(dateStart);
... | java | public void setStartDate(Date dateStart)
{
try {
// NOTE: I ignore dateStart and use the date as it appears on the screen
dateStart = m_productItem.getStartDate(); // Date as it appears on the screen
Date timeNew = m_productItem.setRemoteStartDate(dateStart);
... | [
"public",
"void",
"setStartDate",
"(",
"Date",
"dateStart",
")",
"{",
"try",
"{",
"// NOTE: I ignore dateStart and use the date as it appears on the screen",
"dateStart",
"=",
"m_productItem",
".",
"getStartDate",
"(",
")",
";",
"// Date as it appears on the screen",
"Date",
... | Set the new start date for the remote item. | [
"Set",
"the",
"new",
"start",
"date",
"for",
"the",
"remote",
"item",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/cal/other/src/main/java/org/jbundle/thin/base/screen/cal/opt/DateChangeTask.java#L56-L79 |
153,386 | jbundle/jbundle | thin/base/screen/cal/other/src/main/java/org/jbundle/thin/base/screen/cal/opt/DateChangeTask.java | DateChangeTask.setEndDate | public void setEndDate(Date dateEnd)
{
try {
dateEnd = m_productItem.getEndDate(); // Date as it appears on the screen
Date timeNew = m_productItem.setRemoteEndDate(dateEnd);
if (!timeNew.equals(dateEnd))
{
Date dateStart = m_productItem.getS... | java | public void setEndDate(Date dateEnd)
{
try {
dateEnd = m_productItem.getEndDate(); // Date as it appears on the screen
Date timeNew = m_productItem.setRemoteEndDate(dateEnd);
if (!timeNew.equals(dateEnd))
{
Date dateStart = m_productItem.getS... | [
"public",
"void",
"setEndDate",
"(",
"Date",
"dateEnd",
")",
"{",
"try",
"{",
"dateEnd",
"=",
"m_productItem",
".",
"getEndDate",
"(",
")",
";",
"// Date as it appears on the screen",
"Date",
"timeNew",
"=",
"m_productItem",
".",
"setRemoteEndDate",
"(",
"dateEnd"... | Set the new end date for the remote item. | [
"Set",
"the",
"new",
"end",
"date",
"for",
"the",
"remote",
"item",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/cal/other/src/main/java/org/jbundle/thin/base/screen/cal/opt/DateChangeTask.java#L83-L104 |
153,387 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java | SharedFileHandler.doNewRecord | public void doNewRecord(boolean bDisplayOption)
{
super.doNewRecord(bDisplayOption);
BaseField fldTarget = null;
if (typeFieldName != null)
fldTarget = this.getOwner().getField(typeFieldName);
else
fldTarget = this.getOwner().getField(m_iTypeField);
bo... | java | public void doNewRecord(boolean bDisplayOption)
{
super.doNewRecord(bDisplayOption);
BaseField fldTarget = null;
if (typeFieldName != null)
fldTarget = this.getOwner().getField(typeFieldName);
else
fldTarget = this.getOwner().getField(m_iTypeField);
bo... | [
"public",
"void",
"doNewRecord",
"(",
"boolean",
"bDisplayOption",
")",
"{",
"super",
".",
"doNewRecord",
"(",
"bDisplayOption",
")",
";",
"BaseField",
"fldTarget",
"=",
"null",
";",
"if",
"(",
"typeFieldName",
"!=",
"null",
")",
"fldTarget",
"=",
"this",
".... | DoNewRecord Method. | [
"DoNewRecord",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java#L78-L93 |
153,388 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java | SharedFileHandler.doRemoteCriteria | public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
BaseField fldTarget = null;
if (typeFieldName != null)
fldTarget = this.getOwner().getField(typeFieldName);
else
fldTarget = this.getOwner().getField(m_i... | java | public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
BaseField fldTarget = null;
if (typeFieldName != null)
fldTarget = this.getOwner().getField(typeFieldName);
else
fldTarget = this.getOwner().getField(m_i... | [
"public",
"boolean",
"doRemoteCriteria",
"(",
"StringBuffer",
"strbFilter",
",",
"boolean",
"bIncludeFileName",
",",
"Vector",
"<",
"BaseField",
">",
"vParamList",
")",
"{",
"BaseField",
"fldTarget",
"=",
"null",
";",
"if",
"(",
"typeFieldName",
"!=",
"null",
")... | Add the criteria to the SQL string. | [
"Add",
"the",
"criteria",
"to",
"the",
"SQL",
"string",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java#L104-L119 |
153,389 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java | SharedFileHandler.initRemoteStub | public void initRemoteStub(ObjectOutputStream daOut)
{
try {
daOut.writeInt(m_iTypeField);
daOut.writeUTF(typeFieldName);
daOut.writeInt(m_iTargetValue);
} catch (IOException ex) {
ex.printStackTrace();
}
} | java | public void initRemoteStub(ObjectOutputStream daOut)
{
try {
daOut.writeInt(m_iTypeField);
daOut.writeUTF(typeFieldName);
daOut.writeInt(m_iTargetValue);
} catch (IOException ex) {
ex.printStackTrace();
}
} | [
"public",
"void",
"initRemoteStub",
"(",
"ObjectOutputStream",
"daOut",
")",
"{",
"try",
"{",
"daOut",
".",
"writeInt",
"(",
"m_iTypeField",
")",
";",
"daOut",
".",
"writeUTF",
"(",
"typeFieldName",
")",
";",
"daOut",
".",
"writeInt",
"(",
"m_iTargetValue",
... | InitRemoteStub Method. | [
"InitRemoteStub",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java#L123-L132 |
153,390 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java | SharedFileHandler.initRemoteSkel | public void initRemoteSkel(ObjectInputStream daIn)
{
try {
int iTypeField = daIn.readInt();
String typeFieldName = daIn.readUTF();
int iTargetValue = daIn.readInt();
this.init(iTypeField, typeFieldName, iTargetValue);
} catch (IOException ex... | java | public void initRemoteSkel(ObjectInputStream daIn)
{
try {
int iTypeField = daIn.readInt();
String typeFieldName = daIn.readUTF();
int iTargetValue = daIn.readInt();
this.init(iTypeField, typeFieldName, iTargetValue);
} catch (IOException ex... | [
"public",
"void",
"initRemoteSkel",
"(",
"ObjectInputStream",
"daIn",
")",
"{",
"try",
"{",
"int",
"iTypeField",
"=",
"daIn",
".",
"readInt",
"(",
")",
";",
"String",
"typeFieldName",
"=",
"daIn",
".",
"readUTF",
"(",
")",
";",
"int",
"iTargetValue",
"=",
... | InitRemoteSkel Method. | [
"InitRemoteSkel",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/shared/SharedFileHandler.java#L136-L147 |
153,391 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/message/process/TrxMessageListener.java | TrxMessageListener.handleMessage | public int handleMessage(BaseMessage message)
{
String strClassName = this.getMessageProcessorClassName(message);
if ((strClassName == null) || (strClassName.length() == 0))
return this.handleOtherMessage(message);
message.consume(); // I'll be handling this one.
Str... | java | public int handleMessage(BaseMessage message)
{
String strClassName = this.getMessageProcessorClassName(message);
if ((strClassName == null) || (strClassName.length() == 0))
return this.handleOtherMessage(message);
message.consume(); // I'll be handling this one.
Str... | [
"public",
"int",
"handleMessage",
"(",
"BaseMessage",
"message",
")",
"{",
"String",
"strClassName",
"=",
"this",
".",
"getMessageProcessorClassName",
"(",
"message",
")",
";",
"if",
"(",
"(",
"strClassName",
"==",
"null",
")",
"||",
"(",
"strClassName",
".",
... | Handle this message.
Get the name of this process and run it. | [
"Handle",
"this",
"message",
".",
"Get",
"the",
"name",
"of",
"this",
"process",
"and",
"run",
"it",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/message/process/TrxMessageListener.java#L97-L112 |
153,392 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/message/process/TrxMessageListener.java | TrxMessageListener.getMessageProcessorClassName | public String getMessageProcessorClassName(BaseMessage message)
{
String strClass = (String)message.getMessageHeader().get(DBParams.PROCESS);
if ((strClass == null)
|| (strClass.length() == 0))
{
String strMessageCode = (String)message.getMessageHeader().get(BaseMessa... | java | public String getMessageProcessorClassName(BaseMessage message)
{
String strClass = (String)message.getMessageHeader().get(DBParams.PROCESS);
if ((strClass == null)
|| (strClass.length() == 0))
{
String strMessageCode = (String)message.getMessageHeader().get(BaseMessa... | [
"public",
"String",
"getMessageProcessorClassName",
"(",
"BaseMessage",
"message",
")",
"{",
"String",
"strClass",
"=",
"(",
"String",
")",
"message",
".",
"getMessageHeader",
"(",
")",
".",
"get",
"(",
"DBParams",
".",
"PROCESS",
")",
";",
"if",
"(",
"(",
... | Get the message processor class name.
@return The message processor task name. | [
"Get",
"the",
"message",
"processor",
"class",
"name",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/message/process/TrxMessageListener.java#L117-L154 |
153,393 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/filter/DependentFileFilter.java | DependentFileFilter.setOwner | public void setOwner(ListenerOwner owner)
{
super.setOwner(owner);
if (owner == null)
return;
if (m_fldThisFile == null)
if (thisFileFieldName != null)
m_fldThisFile = this.getOwner().getField(thisFileFieldName);
if (m_fldThisFile2 == null)
... | java | public void setOwner(ListenerOwner owner)
{
super.setOwner(owner);
if (owner == null)
return;
if (m_fldThisFile == null)
if (thisFileFieldName != null)
m_fldThisFile = this.getOwner().getField(thisFileFieldName);
if (m_fldThisFile2 == null)
... | [
"public",
"void",
"setOwner",
"(",
"ListenerOwner",
"owner",
")",
"{",
"super",
".",
"setOwner",
"(",
"owner",
")",
";",
"if",
"(",
"owner",
"==",
"null",
")",
"return",
";",
"if",
"(",
"m_fldThisFile",
"==",
"null",
")",
"if",
"(",
"thisFileFieldName",
... | Set the record that owns this listener.
This method looks up up all the fields in the record.
@param owner My owner. | [
"Set",
"the",
"record",
"that",
"owns",
"this",
"listener",
".",
"This",
"method",
"looks",
"up",
"up",
"all",
"the",
"fields",
"in",
"the",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/filter/DependentFileFilter.java#L85-L106 |
153,394 | lunisolar/magma | magma-basics-assert/src/main/java/eu/lunisolar/magma/basics/asserts/Evaluation.java | Evaluation.toEqualTo | public CTX toEqualTo(R equalsTo) {
to(rs -> rs.isEqualTo(equalsTo));
return context.self();
} | java | public CTX toEqualTo(R equalsTo) {
to(rs -> rs.isEqualTo(equalsTo));
return context.self();
} | [
"public",
"CTX",
"toEqualTo",
"(",
"R",
"equalsTo",
")",
"{",
"to",
"(",
"rs",
"->",
"rs",
".",
"isEqualTo",
"(",
"equalsTo",
")",
")",
";",
"return",
"context",
".",
"self",
"(",
")",
";",
"}"
] | Convenient method to just check equality | [
"Convenient",
"method",
"to",
"just",
"check",
"equality"
] | 83809c6d1a33d913aec6c49920251e4f0be8b213 | https://github.com/lunisolar/magma/blob/83809c6d1a33d913aec6c49920251e4f0be8b213/magma-basics-assert/src/main/java/eu/lunisolar/magma/basics/asserts/Evaluation.java#L58-L61 |
153,395 | tvesalainen/hoski-lib | src/main/java/fi/hoski/datastore/repository/Event.java | Event.getEventType | public static EventType getEventType(Key key)
{
Key ek = findAncestor(Repository.EVENTTYPE, key);
return EventType.values()[(int)ek.getId()-1];
} | java | public static EventType getEventType(Key key)
{
Key ek = findAncestor(Repository.EVENTTYPE, key);
return EventType.values()[(int)ek.getId()-1];
} | [
"public",
"static",
"EventType",
"getEventType",
"(",
"Key",
"key",
")",
"{",
"Key",
"ek",
"=",
"findAncestor",
"(",
"Repository",
".",
"EVENTTYPE",
",",
"key",
")",
";",
"return",
"EventType",
".",
"values",
"(",
")",
"[",
"(",
"int",
")",
"ek",
".",
... | Returns current EventType from EventType, Event or Reservation keys
@param key
@return | [
"Returns",
"current",
"EventType",
"from",
"EventType",
"Event",
"or",
"Reservation",
"keys"
] | 9b5bab44113e0adb74bf1ee436013e8a7c608d00 | https://github.com/tvesalainen/hoski-lib/blob/9b5bab44113e0adb74bf1ee436013e8a7c608d00/src/main/java/fi/hoski/datastore/repository/Event.java#L129-L133 |
153,396 | tvesalainen/hoski-lib | src/main/java/fi/hoski/datastore/repository/Event.java | Event.getEventDate | public static Date getEventDate(Key key)
{
Key ek = findAncestor(Repository.EVENT, key);
return new Date(ek.getId());
} | java | public static Date getEventDate(Key key)
{
Key ek = findAncestor(Repository.EVENT, key);
return new Date(ek.getId());
} | [
"public",
"static",
"Date",
"getEventDate",
"(",
"Key",
"key",
")",
"{",
"Key",
"ek",
"=",
"findAncestor",
"(",
"Repository",
".",
"EVENT",
",",
"key",
")",
";",
"return",
"new",
"Date",
"(",
"ek",
".",
"getId",
"(",
")",
")",
";",
"}"
] | Returns current Event Date from Event or Reservation keys
@param key
@return | [
"Returns",
"current",
"Event",
"Date",
"from",
"Event",
"or",
"Reservation",
"keys"
] | 9b5bab44113e0adb74bf1ee436013e8a7c608d00 | https://github.com/tvesalainen/hoski-lib/blob/9b5bab44113e0adb74bf1ee436013e8a7c608d00/src/main/java/fi/hoski/datastore/repository/Event.java#L139-L143 |
153,397 | elbkind/osgi | reporting/api/src/main/java/eu/elbkind/osgi/reporting/api/ReportFormatter.java | ReportFormatter.format | public void format(PrintStream out, String[] headers, String[]... rows) {
int[] columnWidth = computeEachColumnWidth(this.defaultColumnWidth, headers, rows);
printRow(out, columnWidth, headers);
printTableSeperatir(out, headers, columnWidth);
for (String[] row : rows) {
pri... | java | public void format(PrintStream out, String[] headers, String[]... rows) {
int[] columnWidth = computeEachColumnWidth(this.defaultColumnWidth, headers, rows);
printRow(out, columnWidth, headers);
printTableSeperatir(out, headers, columnWidth);
for (String[] row : rows) {
pri... | [
"public",
"void",
"format",
"(",
"PrintStream",
"out",
",",
"String",
"[",
"]",
"headers",
",",
"String",
"[",
"]",
"...",
"rows",
")",
"{",
"int",
"[",
"]",
"columnWidth",
"=",
"computeEachColumnWidth",
"(",
"this",
".",
"defaultColumnWidth",
",",
"header... | Prints a table
@param out PrintStream to write to, not null
@param headers Array of not null values
@param rows Array of not null values, row length must always be headers length | [
"Prints",
"a",
"table"
] | 206fdcb4587556c289d3cee54ef36c7f1ed93920 | https://github.com/elbkind/osgi/blob/206fdcb4587556c289d3cee54ef36c7f1ed93920/reporting/api/src/main/java/eu/elbkind/osgi/reporting/api/ReportFormatter.java#L52-L61 |
153,398 | eostermueller/headlessInTraceClient | src/main/java/org/headlessintrace/client/connection/HostPort.java | HostPort.isIpv4 | public static boolean isIpv4(String hostName) {
int periodCount = 0;
int numberCount = 0;
int lowerCount = 0;
int upperCount = 0;
int otherCount = 0;
for(int i = 0; i < hostName.length(); i++ ) {
char myChar = hostName.charAt(i);
if (myChar=='.') {
periodCount++;
} else if (myChar... | java | public static boolean isIpv4(String hostName) {
int periodCount = 0;
int numberCount = 0;
int lowerCount = 0;
int upperCount = 0;
int otherCount = 0;
for(int i = 0; i < hostName.length(); i++ ) {
char myChar = hostName.charAt(i);
if (myChar=='.') {
periodCount++;
} else if (myChar... | [
"public",
"static",
"boolean",
"isIpv4",
"(",
"String",
"hostName",
")",
"{",
"int",
"periodCount",
"=",
"0",
";",
"int",
"numberCount",
"=",
"0",
";",
"int",
"lowerCount",
"=",
"0",
";",
"int",
"upperCount",
"=",
"0",
";",
"int",
"otherCount",
"=",
"0... | Return true of the string is an IP address instead of a hostname.
No, this is not a perfect algorithm, but is is close enough.
If no number
@param hostName
@return | [
"Return",
"true",
"of",
"the",
"string",
"is",
"an",
"IP",
"address",
"instead",
"of",
"a",
"hostname",
".",
"No",
"this",
"is",
"not",
"a",
"perfect",
"algorithm",
"but",
"is",
"is",
"close",
"enough",
".",
"If",
"no",
"number"
] | 50b1dccc5ff9e342c7c1d06b5a382e8c0afc7604 | https://github.com/eostermueller/headlessInTraceClient/blob/50b1dccc5ff9e342c7c1d06b5a382e8c0afc7604/src/main/java/org/headlessintrace/client/connection/HostPort.java#L28-L55 |
153,399 | jbundle/jbundle | thin/base/message/src/main/java/org/jbundle/thin/base/message/BaseMessageRecordDesc.java | BaseMessageRecordDesc.addMessageFieldDesc | public MessageFieldDesc addMessageFieldDesc(String strParam, Class<?> classRawObject, boolean bRequired, Object objRawDefault)
{
return new MessageFieldDesc(this, strParam, classRawObject, bRequired, objRawDefault);
} | java | public MessageFieldDesc addMessageFieldDesc(String strParam, Class<?> classRawObject, boolean bRequired, Object objRawDefault)
{
return new MessageFieldDesc(this, strParam, classRawObject, bRequired, objRawDefault);
} | [
"public",
"MessageFieldDesc",
"addMessageFieldDesc",
"(",
"String",
"strParam",
",",
"Class",
"<",
"?",
">",
"classRawObject",
",",
"boolean",
"bRequired",
",",
"Object",
"objRawDefault",
")",
"{",
"return",
"new",
"MessageFieldDesc",
"(",
"this",
",",
"strParam",... | Add the data description for this param. | [
"Add",
"the",
"data",
"description",
"for",
"this",
"param",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/message/src/main/java/org/jbundle/thin/base/message/BaseMessageRecordDesc.java#L107-L110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.