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
148,300
jledit/jledit
core/src/main/java/org/jledit/AbstractConsoleEditor.java
AbstractConsoleEditor.redrawRestOfLine
void redrawRestOfLine() { //The number of lines to reach the end of the frame. int maxLinesToRepaint = terminal.getHeight() - getFooterSize() - frameLine; LinkedList<String> toRepaintLines = new LinkedList<String>(); String currentLine = getContent(getLine()); toRepaintLines.addA...
java
void redrawRestOfLine() { //The number of lines to reach the end of the frame. int maxLinesToRepaint = terminal.getHeight() - getFooterSize() - frameLine; LinkedList<String> toRepaintLines = new LinkedList<String>(); String currentLine = getContent(getLine()); toRepaintLines.addA...
[ "void", "redrawRestOfLine", "(", ")", "{", "//The number of lines to reach the end of the frame.", "int", "maxLinesToRepaint", "=", "terminal", ".", "getHeight", "(", ")", "-", "getFooterSize", "(", ")", "-", "frameLine", ";", "LinkedList", "<", "String", ">", "toRe...
Redraws the rest of the multi line.
[ "Redraws", "the", "rest", "of", "the", "multi", "line", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/AbstractConsoleEditor.java#L409-L428
148,301
jledit/jledit
core/src/main/java/org/jledit/AbstractConsoleEditor.java
AbstractConsoleEditor.redrawRestOfScreen
void redrawRestOfScreen() { int linesToRepaint = terminal.getHeight() - getFooterSize() - frameLine; LinkedList<String> toRepaintLines = new LinkedList<String>(); String currentLine = getContent(getLine()); toRepaintLines.addAll(toDisplayLines(currentLine)); //Remove already show...
java
void redrawRestOfScreen() { int linesToRepaint = terminal.getHeight() - getFooterSize() - frameLine; LinkedList<String> toRepaintLines = new LinkedList<String>(); String currentLine = getContent(getLine()); toRepaintLines.addAll(toDisplayLines(currentLine)); //Remove already show...
[ "void", "redrawRestOfScreen", "(", ")", "{", "int", "linesToRepaint", "=", "terminal", ".", "getHeight", "(", ")", "-", "getFooterSize", "(", ")", "-", "frameLine", ";", "LinkedList", "<", "String", ">", "toRepaintLines", "=", "new", "LinkedList", "<", "Stri...
Redraws content from the current line to the end of the frame.
[ "Redraws", "content", "from", "the", "current", "line", "to", "the", "end", "of", "the", "frame", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/AbstractConsoleEditor.java#L433-L464
148,302
jledit/jledit
core/src/main/java/org/jledit/AbstractConsoleEditor.java
AbstractConsoleEditor.moveVertical
private void moveVertical(int offset) { if (offset < 0) { moveUp(Math.abs(offset)); } else if (offset > 0) { moveDown(offset); } }
java
private void moveVertical(int offset) { if (offset < 0) { moveUp(Math.abs(offset)); } else if (offset > 0) { moveDown(offset); } }
[ "private", "void", "moveVertical", "(", "int", "offset", ")", "{", "if", "(", "offset", "<", "0", ")", "{", "moveUp", "(", "Math", ".", "abs", "(", "offset", ")", ")", ";", "}", "else", "if", "(", "offset", ">", "0", ")", "{", "moveDown", "(", ...
Moves the cursor vertically and scroll if needed. @param offset
[ "Moves", "the", "cursor", "vertically", "and", "scroll", "if", "needed", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/AbstractConsoleEditor.java#L507-L513
148,303
jledit/jledit
core/src/main/java/org/jledit/AbstractConsoleEditor.java
AbstractConsoleEditor.moveHorizontally
private void moveHorizontally(int offset) { if (offset < 0) { moveLeft(Math.abs(offset)); } else if (offset > 0) { moveRight(offset); } }
java
private void moveHorizontally(int offset) { if (offset < 0) { moveLeft(Math.abs(offset)); } else if (offset > 0) { moveRight(offset); } }
[ "private", "void", "moveHorizontally", "(", "int", "offset", ")", "{", "if", "(", "offset", "<", "0", ")", "{", "moveLeft", "(", "Math", ".", "abs", "(", "offset", ")", ")", ";", "}", "else", "if", "(", "offset", ">", "0", ")", "{", "moveRight", ...
Moves the cursor horizontally. @param offset
[ "Moves", "the", "cursor", "horizontally", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/AbstractConsoleEditor.java#L588-L594
148,304
jledit/jledit
core/src/main/java/org/jledit/AbstractConsoleEditor.java
AbstractConsoleEditor.displayText
protected void displayText(String text) { if (highLight != null && !highLight.isEmpty() && text.contains(highLight)) { String highLightedText = text.replaceAll(highLight, ansi().bold().bg(theme.getHighLightBackground()).fg(theme.getHighLightForeground()).a(highLight).boldOff().reset().toString()); ...
java
protected void displayText(String text) { if (highLight != null && !highLight.isEmpty() && text.contains(highLight)) { String highLightedText = text.replaceAll(highLight, ansi().bold().bg(theme.getHighLightBackground()).fg(theme.getHighLightForeground()).a(highLight).boldOff().reset().toString()); ...
[ "protected", "void", "displayText", "(", "String", "text", ")", "{", "if", "(", "highLight", "!=", "null", "&&", "!", "highLight", ".", "isEmpty", "(", ")", "&&", "text", ".", "contains", "(", "highLight", ")", ")", "{", "String", "highLightedText", "=",...
Displays Text highlighting the text that was marked as highlighted. @param text
[ "Displays", "Text", "highlighting", "the", "text", "that", "was", "marked", "as", "highlighted", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/AbstractConsoleEditor.java#L952-L959
148,305
jledit/jledit
core/src/main/java/org/jledit/AbstractConsoleEditor.java
AbstractConsoleEditor.toDisplayLines
private LinkedList<String> toDisplayLines(String line) { LinkedList<String> displayLines = new LinkedList<String>(); if (line.length() <= terminal.getWidth()) { displayLines.add(line); } else { int total = Math.max(0, line.length() - 1) / terminal.getWidth() + 1; ...
java
private LinkedList<String> toDisplayLines(String line) { LinkedList<String> displayLines = new LinkedList<String>(); if (line.length() <= terminal.getWidth()) { displayLines.add(line); } else { int total = Math.max(0, line.length() - 1) / terminal.getWidth() + 1; ...
[ "private", "LinkedList", "<", "String", ">", "toDisplayLines", "(", "String", "line", ")", "{", "LinkedList", "<", "String", ">", "displayLines", "=", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "if", "(", "line", ".", "length", "(", ")", "...
Creates a list of lines that represent how the line will be displayed on screen. @param line @return
[ "Creates", "a", "list", "of", "lines", "that", "represent", "how", "the", "line", "will", "be", "displayed", "on", "screen", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/AbstractConsoleEditor.java#L1061-L1074
148,306
chocotan/datepicker4j
src/main/java/io/loli/datepicker/TimePicker.java
TimePicker.getDateField
public static JTextField getDateField(String format) { JTextField field = new JTextField(); field.setEditable(false); timePicker(field); return field; }
java
public static JTextField getDateField(String format) { JTextField field = new JTextField(); field.setEditable(false); timePicker(field); return field; }
[ "public", "static", "JTextField", "getDateField", "(", "String", "format", ")", "{", "JTextField", "field", "=", "new", "JTextField", "(", ")", ";", "field", ".", "setEditable", "(", "false", ")", ";", "timePicker", "(", "field", ")", ";", "return", "field...
Get time field with format @param format time format @return text field with format
[ "Get", "time", "field", "with", "format" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/TimePicker.java#L102-L107
148,307
jledit/jledit
core/src/main/java/org/jledit/FileContentManager.java
FileContentManager.load
@Override public String load(String location) throws IOException { File file = new File(location); return Files.toString(file, detectCharset(location)); }
java
@Override public String load(String location) throws IOException { File file = new File(location); return Files.toString(file, detectCharset(location)); }
[ "@", "Override", "public", "String", "load", "(", "String", "location", ")", "throws", "IOException", "{", "File", "file", "=", "new", "File", "(", "location", ")", ";", "return", "Files", ".", "toString", "(", "file", ",", "detectCharset", "(", "location"...
Loads content from the specified location. @param location @return
[ "Loads", "content", "from", "the", "specified", "location", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/FileContentManager.java#L35-L39
148,308
jledit/jledit
core/src/main/java/org/jledit/FileContentManager.java
FileContentManager.save
@Override public boolean save(String content, String location) { return save(content, Charsets.UTF_8, location); }
java
@Override public boolean save(String content, String location) { return save(content, Charsets.UTF_8, location); }
[ "@", "Override", "public", "boolean", "save", "(", "String", "content", ",", "String", "location", ")", "{", "return", "save", "(", "content", ",", "Charsets", ".", "UTF_8", ",", "location", ")", ";", "}" ]
Saves content to the specified location. @param content @param location @return
[ "Saves", "content", "to", "the", "specified", "location", "." ]
ced2c4b44330664adb65f8be4c8fff780ccaa6fd
https://github.com/jledit/jledit/blob/ced2c4b44330664adb65f8be4c8fff780ccaa6fd/core/src/main/java/org/jledit/FileContentManager.java#L67-L70
148,309
luuuis/jcalendar
src/main/java/com/toedter/calendar/JYearChooser.java
JYearChooser.setYear
public void setYear(int y) { super.setValue(y, true, false); if (dayChooser != null) { dayChooser.setYear(value); } spinner.setValue(new Integer(value)); firePropertyChange("year", oldYear, value); oldYear = value; }
java
public void setYear(int y) { super.setValue(y, true, false); if (dayChooser != null) { dayChooser.setYear(value); } spinner.setValue(new Integer(value)); firePropertyChange("year", oldYear, value); oldYear = value; }
[ "public", "void", "setYear", "(", "int", "y", ")", "{", "super", ".", "setValue", "(", "y", ",", "true", ",", "false", ")", ";", "if", "(", "dayChooser", "!=", "null", ")", "{", "dayChooser", ".", "setYear", "(", "value", ")", ";", "}", "spinner", ...
Sets the year. This is a bound property. @param y the new year @see #getYear
[ "Sets", "the", "year", ".", "This", "is", "a", "bound", "property", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JYearChooser.java#L62-L72
148,310
eigengo/specs2-spring
src/main/java/org/specs2/spring/EnvironmentExtractor.java
EnvironmentExtractor.extract
public Environment extract(Object specification) { Assert.notNull(specification, "The 'specification' argument cannot be null."); final Environment environment = new Environment(); final Class<?> clazz = specification.getClass(); final Jndi annotation = AnnotationUtils.findAnnotation(clazz, Jndi.class); if ...
java
public Environment extract(Object specification) { Assert.notNull(specification, "The 'specification' argument cannot be null."); final Environment environment = new Environment(); final Class<?> clazz = specification.getClass(); final Jndi annotation = AnnotationUtils.findAnnotation(clazz, Jndi.class); if ...
[ "public", "Environment", "extract", "(", "Object", "specification", ")", "{", "Assert", ".", "notNull", "(", "specification", ",", "\"The 'specification' argument cannot be null.\"", ")", ";", "final", "Environment", "environment", "=", "new", "Environment", "(", ")",...
Extracts the environment from the test object. @param specification the test object; never {@code null}. @return the extracted Environment object.
[ "Extracts", "the", "environment", "from", "the", "test", "object", "." ]
96f411d997a83cac41cb2127e58afee0ef92133b
https://github.com/eigengo/specs2-spring/blob/96f411d997a83cac41cb2127e58afee0ef92133b/src/main/java/org/specs2/spring/EnvironmentExtractor.java#L21-L43
148,311
zamrokk/fabric-sdk-java
src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java
ChaincodeStub.putState
public void putState(String key, String value) { handler.handlePutState(key, ByteString.copyFromUtf8(value), uuid); }
java
public void putState(String key, String value) { handler.handlePutState(key, ByteString.copyFromUtf8(value), uuid); }
[ "public", "void", "putState", "(", "String", "key", ",", "String", "value", ")", "{", "handler", ".", "handlePutState", "(", "key", ",", "ByteString", ".", "copyFromUtf8", "(", "value", ")", ",", "uuid", ")", ";", "}" ]
Puts the given state into a ledger, automatically wrapping it in a ByteString @param key reference key @param value value to be put
[ "Puts", "the", "given", "state", "into", "a", "ledger", "automatically", "wrapping", "it", "in", "a", "ByteString" ]
d4993ca602f72d412cd682e1b92e805e48b27afa
https://github.com/zamrokk/fabric-sdk-java/blob/d4993ca602f72d412cd682e1b92e805e48b27afa/src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java#L72-L74
148,312
zamrokk/fabric-sdk-java
src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java
ChaincodeStub.rangeQueryState
public Map<String, String> rangeQueryState(String startKey, String endKey) { Map<String, String> retMap = new HashMap<>(); for (Map.Entry<String, ByteString> item : rangeQueryRawState(startKey, endKey).entrySet()) { retMap.put(item.getKey(), item.getValue().toStringUtf8()); } ...
java
public Map<String, String> rangeQueryState(String startKey, String endKey) { Map<String, String> retMap = new HashMap<>(); for (Map.Entry<String, ByteString> item : rangeQueryRawState(startKey, endKey).entrySet()) { retMap.put(item.getKey(), item.getValue().toStringUtf8()); } ...
[ "public", "Map", "<", "String", ",", "String", ">", "rangeQueryState", "(", "String", "startKey", ",", "String", "endKey", ")", "{", "Map", "<", "String", ",", "String", ">", "retMap", "=", "new", "HashMap", "<>", "(", ")", ";", "for", "(", "Map", "....
Given a start key and end key, this method returns a map of items with value converted to UTF-8 string. @param startKey @param endKey @return
[ "Given", "a", "start", "key", "and", "end", "key", "this", "method", "returns", "a", "map", "of", "items", "with", "value", "converted", "to", "UTF", "-", "8", "string", "." ]
d4993ca602f72d412cd682e1b92e805e48b27afa
https://github.com/zamrokk/fabric-sdk-java/blob/d4993ca602f72d412cd682e1b92e805e48b27afa/src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java#L92-L98
148,313
zamrokk/fabric-sdk-java
src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java
ChaincodeStub.rangeQueryRawState
public Map<String, ByteString> rangeQueryRawState(String startKey, String endKey) { Map<String, ByteString> map = new HashMap<>(); for (Chaincode.RangeQueryStateKeyValue mapping : handler.handleRangeQueryState( startKey, endKey, uuid).getKeysAndValuesList()) { map.put(mapping...
java
public Map<String, ByteString> rangeQueryRawState(String startKey, String endKey) { Map<String, ByteString> map = new HashMap<>(); for (Chaincode.RangeQueryStateKeyValue mapping : handler.handleRangeQueryState( startKey, endKey, uuid).getKeysAndValuesList()) { map.put(mapping...
[ "public", "Map", "<", "String", ",", "ByteString", ">", "rangeQueryRawState", "(", "String", "startKey", ",", "String", "endKey", ")", "{", "Map", "<", "String", ",", "ByteString", ">", "map", "=", "new", "HashMap", "<>", "(", ")", ";", "for", "(", "Ch...
This method is same as rangeQueryState, except it returns value in ByteString, useful in cases where serialized object can be retrieved. @param startKey @param endKey @return
[ "This", "method", "is", "same", "as", "rangeQueryState", "except", "it", "returns", "value", "in", "ByteString", "useful", "in", "cases", "where", "serialized", "object", "can", "be", "retrieved", "." ]
d4993ca602f72d412cd682e1b92e805e48b27afa
https://github.com/zamrokk/fabric-sdk-java/blob/d4993ca602f72d412cd682e1b92e805e48b27afa/src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java#L108-L115
148,314
zamrokk/fabric-sdk-java
src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java
ChaincodeStub.invokeRawChaincode
public ByteString invokeRawChaincode(String chaincodeName, String function, List<ByteString> args) { return handler.handleInvokeChaincode(chaincodeName, function, args, uuid); }
java
public ByteString invokeRawChaincode(String chaincodeName, String function, List<ByteString> args) { return handler.handleInvokeChaincode(chaincodeName, function, args, uuid); }
[ "public", "ByteString", "invokeRawChaincode", "(", "String", "chaincodeName", ",", "String", "function", ",", "List", "<", "ByteString", ">", "args", ")", "{", "return", "handler", ".", "handleInvokeChaincode", "(", "chaincodeName", ",", "function", ",", "args", ...
Invokes the provided chaincode with the given function and arguments, and returns the raw ByteString value that invocation generated. @param chaincodeName The name of the chaincode to invoke @param function the function parameter to pass to the chaincode @param args the arguments to be provided in the ch...
[ "Invokes", "the", "provided", "chaincode", "with", "the", "given", "function", "and", "arguments", "and", "returns", "the", "raw", "ByteString", "value", "that", "invocation", "generated", "." ]
d4993ca602f72d412cd682e1b92e805e48b27afa
https://github.com/zamrokk/fabric-sdk-java/blob/d4993ca602f72d412cd682e1b92e805e48b27afa/src/main/java/org/hyperledger/fabric/sdk/shim/ChaincodeStub.java#L185-L187
148,315
groundupworks/wings
wings-gcp/src/main/java/com/groundupworks/wings/gcp/GoogleCloudPrintSettingsActivity.java
GoogleCloudPrintSettingsActivity.findPrinters
private void findPrinters() { mOauthObservable.subscribe(new Action1<String>() { @Override public void call(final String token) { searchPrinters(token).subscribe(new Action1<JacksonPrinterSearchResult>() { @Override public void call...
java
private void findPrinters() { mOauthObservable.subscribe(new Action1<String>() { @Override public void call(final String token) { searchPrinters(token).subscribe(new Action1<JacksonPrinterSearchResult>() { @Override public void call...
[ "private", "void", "findPrinters", "(", ")", "{", "mOauthObservable", ".", "subscribe", "(", "new", "Action1", "<", "String", ">", "(", ")", "{", "@", "Override", "public", "void", "call", "(", "final", "String", "token", ")", "{", "searchPrinters", "(", ...
Finds printers associated with the account.
[ "Finds", "printers", "associated", "with", "the", "account", "." ]
03d2827c30ef55f2db4e23f7500e016c7771fa39
https://github.com/groundupworks/wings/blob/03d2827c30ef55f2db4e23f7500e016c7771fa39/wings-gcp/src/main/java/com/groundupworks/wings/gcp/GoogleCloudPrintSettingsActivity.java#L303-L315
148,316
diirt/util
src/main/java/org/epics/util/time/TimeDuration.java
TimeDuration.dividedBy
public TimeDuration dividedBy(int factor) { return createWithCarry(sec / factor, ((sec % factor) * NANOSEC_IN_SEC + (long) nanoSec) / factor); }
java
public TimeDuration dividedBy(int factor) { return createWithCarry(sec / factor, ((sec % factor) * NANOSEC_IN_SEC + (long) nanoSec) / factor); }
[ "public", "TimeDuration", "dividedBy", "(", "int", "factor", ")", "{", "return", "createWithCarry", "(", "sec", "/", "factor", ",", "(", "(", "sec", "%", "factor", ")", "*", "NANOSEC_IN_SEC", "+", "(", "long", ")", "nanoSec", ")", "/", "factor", ")", "...
Returns a new duration which is smaller by the given factor. @param factor constant to divide @return a new duration
[ "Returns", "a", "new", "duration", "which", "is", "smaller", "by", "the", "given", "factor", "." ]
24aca0a173a635aaf0b78d213a3fee8d4f91c077
https://github.com/diirt/util/blob/24aca0a173a635aaf0b78d213a3fee8d4f91c077/src/main/java/org/epics/util/time/TimeDuration.java#L155-L157
148,317
diirt/util
src/main/java/org/epics/util/time/TimeDuration.java
TimeDuration.dividedBy
public int dividedBy(TimeDuration duration) { // (a + b)/(c + d) = 1 / ((c + d) / a) + 1 / ((c + d) / b) // XXX This will not have the precision it should double thisDuration = (double) getSec() * (double) NANOSEC_IN_SEC + (double) getNanoSec(); double otherDuration = (double) duration.g...
java
public int dividedBy(TimeDuration duration) { // (a + b)/(c + d) = 1 / ((c + d) / a) + 1 / ((c + d) / b) // XXX This will not have the precision it should double thisDuration = (double) getSec() * (double) NANOSEC_IN_SEC + (double) getNanoSec(); double otherDuration = (double) duration.g...
[ "public", "int", "dividedBy", "(", "TimeDuration", "duration", ")", "{", "// (a + b)/(c + d) = 1 / ((c + d) / a) + 1 / ((c + d) / b)", "// XXX This will not have the precision it should", "double", "thisDuration", "=", "(", "double", ")", "getSec", "(", ")", "*", "(", "doub...
Returns the number of times the given duration is present in this duration. @param duration another duration @return the result of the division
[ "Returns", "the", "number", "of", "times", "the", "given", "duration", "is", "present", "in", "this", "duration", "." ]
24aca0a173a635aaf0b78d213a3fee8d4f91c077
https://github.com/diirt/util/blob/24aca0a173a635aaf0b78d213a3fee8d4f91c077/src/main/java/org/epics/util/time/TimeDuration.java#L165-L171
148,318
diirt/util
src/main/java/org/epics/util/time/TimeDuration.java
TimeDuration.plus
public TimeDuration plus(TimeDuration duration) { return createWithCarry(sec + duration.getSec(), nanoSec + duration.getNanoSec()); }
java
public TimeDuration plus(TimeDuration duration) { return createWithCarry(sec + duration.getSec(), nanoSec + duration.getNanoSec()); }
[ "public", "TimeDuration", "plus", "(", "TimeDuration", "duration", ")", "{", "return", "createWithCarry", "(", "sec", "+", "duration", ".", "getSec", "(", ")", ",", "nanoSec", "+", "duration", ".", "getNanoSec", "(", ")", ")", ";", "}" ]
Returns the sum of this duration with the given. @param duration another duration @return a new duration
[ "Returns", "the", "sum", "of", "this", "duration", "with", "the", "given", "." ]
24aca0a173a635aaf0b78d213a3fee8d4f91c077
https://github.com/diirt/util/blob/24aca0a173a635aaf0b78d213a3fee8d4f91c077/src/main/java/org/epics/util/time/TimeDuration.java#L205-L207
148,319
diirt/util
src/main/java/org/epics/util/time/TimeDuration.java
TimeDuration.minus
public TimeDuration minus(TimeDuration duration) { return createWithCarry(sec - duration.getSec(), nanoSec - duration.getNanoSec()); }
java
public TimeDuration minus(TimeDuration duration) { return createWithCarry(sec - duration.getSec(), nanoSec - duration.getNanoSec()); }
[ "public", "TimeDuration", "minus", "(", "TimeDuration", "duration", ")", "{", "return", "createWithCarry", "(", "sec", "-", "duration", ".", "getSec", "(", ")", ",", "nanoSec", "-", "duration", ".", "getNanoSec", "(", ")", ")", ";", "}" ]
Returns the difference between this duration and the given. @param duration another duration @return a new duration
[ "Returns", "the", "difference", "between", "this", "duration", "and", "the", "given", "." ]
24aca0a173a635aaf0b78d213a3fee8d4f91c077
https://github.com/diirt/util/blob/24aca0a173a635aaf0b78d213a3fee8d4f91c077/src/main/java/org/epics/util/time/TimeDuration.java#L215-L217
148,320
diirt/util
src/main/java/org/epics/util/time/TimeDuration.java
TimeDuration.around
public TimeInterval around(Timestamp reference) { TimeDuration half = this.dividedBy(2); return TimeInterval.between(reference.minus(half), reference.plus(half)); }
java
public TimeInterval around(Timestamp reference) { TimeDuration half = this.dividedBy(2); return TimeInterval.between(reference.minus(half), reference.plus(half)); }
[ "public", "TimeInterval", "around", "(", "Timestamp", "reference", ")", "{", "TimeDuration", "half", "=", "this", ".", "dividedBy", "(", "2", ")", ";", "return", "TimeInterval", ".", "between", "(", "reference", ".", "minus", "(", "half", ")", ",", "refere...
Returns a time interval that lasts this duration and is centered around the given timestamp. @param reference a timestamp @return a new time interval
[ "Returns", "a", "time", "interval", "that", "lasts", "this", "duration", "and", "is", "centered", "around", "the", "given", "timestamp", "." ]
24aca0a173a635aaf0b78d213a3fee8d4f91c077
https://github.com/diirt/util/blob/24aca0a173a635aaf0b78d213a3fee8d4f91c077/src/main/java/org/epics/util/time/TimeDuration.java#L226-L229
148,321
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/Goal.java
Goal.getTargetedBy
public Collection<Project> getTargetedBy(ProjectFilter filter) { filter = (filter != null) ? filter : new ProjectFilter(); filter.targets.clear(); filter.targets.add(this); return getInstance().get().projects(filter); }
java
public Collection<Project> getTargetedBy(ProjectFilter filter) { filter = (filter != null) ? filter : new ProjectFilter(); filter.targets.clear(); filter.targets.add(this); return getInstance().get().projects(filter); }
[ "public", "Collection", "<", "Project", ">", "getTargetedBy", "(", "ProjectFilter", "filter", ")", "{", "filter", "=", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "ProjectFilter", "(", ")", ";", "filter", ".", "targets", ".", "clear", "(...
A collection of Projects Targeted by this Goal. @param filter Limit the project returned (If null, then all items returned). @return A collection projects that belong to this goal filtered by the passed in filter.
[ "A", "collection", "of", "Projects", "Targeted", "by", "this", "Goal", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/Goal.java#L49-L55
148,322
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/Goal.java
Goal.getEpics
public Collection<Epic> getEpics(EpicFilter filter) { filter = (filter != null) ? filter : new EpicFilter(); filter.goals.clear(); filter.goals.add(this); return getInstance().get().epics(filter); }
java
public Collection<Epic> getEpics(EpicFilter filter) { filter = (filter != null) ? filter : new EpicFilter(); filter.goals.clear(); filter.goals.add(this); return getInstance().get().epics(filter); }
[ "public", "Collection", "<", "Epic", ">", "getEpics", "(", "EpicFilter", "filter", ")", "{", "filter", "=", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "EpicFilter", "(", ")", ";", "filter", ".", "goals", ".", "clear", "(", ")", ";",...
Epics assigned to this Goal. @param filter Limit the epic returned (If null, then all items returned). @return A collection epics that belong to this goal filtered by the passed in filter.
[ "Epics", "assigned", "to", "this", "Goal", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/Goal.java#L64-L70
148,323
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/Goal.java
Goal.getThemes
public Collection<Theme> getThemes(ThemeFilter filter) { filter = (filter != null) ? filter : new ThemeFilter(); filter.goals.clear(); filter.goals.add(this); return getInstance().get().themes(filter); }
java
public Collection<Theme> getThemes(ThemeFilter filter) { filter = (filter != null) ? filter : new ThemeFilter(); filter.goals.clear(); filter.goals.add(this); return getInstance().get().themes(filter); }
[ "public", "Collection", "<", "Theme", ">", "getThemes", "(", "ThemeFilter", "filter", ")", "{", "filter", "=", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "ThemeFilter", "(", ")", ";", "filter", ".", "goals", ".", "clear", "(", ")", ...
Themes assigned to this Goal. @param filter Limit the theme returned (If null, then all items returned). @return A collection themes that belong to this goal filtered by the passed in filter.
[ "Themes", "assigned", "to", "this", "Goal", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/Goal.java#L80-L86
148,324
iipc/openwayback-access-control
access-control/src/main/java/org/archive/accesscontrol/robotstxt/RobotClient.java
RobotClient.isRobotPermitted
public boolean isRobotPermitted(String url, String userAgent) throws IOException, RobotsUnavailableException { RobotRules rules = getRulesForUrl(url, userAgent); return !rules.blocksPathForUA(new LaxURI(url, false).getPath(), userAgent); }
java
public boolean isRobotPermitted(String url, String userAgent) throws IOException, RobotsUnavailableException { RobotRules rules = getRulesForUrl(url, userAgent); return !rules.blocksPathForUA(new LaxURI(url, false).getPath(), userAgent); }
[ "public", "boolean", "isRobotPermitted", "(", "String", "url", ",", "String", "userAgent", ")", "throws", "IOException", ",", "RobotsUnavailableException", "{", "RobotRules", "rules", "=", "getRulesForUrl", "(", "url", ",", "userAgent", ")", ";", "return", "!", ...
Returns true if a robot with the given user-agent is allowed to access the given url. @param url @param userAgent @return @throws IOException @throws RobotsUnavailableException
[ "Returns", "true", "if", "a", "robot", "with", "the", "given", "user", "-", "agent", "is", "allowed", "to", "access", "the", "given", "url", "." ]
4a0f70f200fd8d7b6e313624b7628656d834bf31
https://github.com/iipc/openwayback-access-control/blob/4a0f70f200fd8d7b6e313624b7628656d834bf31/access-control/src/main/java/org/archive/accesscontrol/robotstxt/RobotClient.java#L27-L32
148,325
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.addMonth
private void addMonth(int i) { Calendar cal = Calendar.getInstance(); cal.set(getDisplayYear(), getDisplayMonth() - 1, 1); int month = cal.get(Calendar.MONTH) + 1; if (i > 0 && month == 12) { addYear(1); } if (i < 0 && month == 1) { addYear(-1); ...
java
private void addMonth(int i) { Calendar cal = Calendar.getInstance(); cal.set(getDisplayYear(), getDisplayMonth() - 1, 1); int month = cal.get(Calendar.MONTH) + 1; if (i > 0 && month == 12) { addYear(1); } if (i < 0 && month == 1) { addYear(-1); ...
[ "private", "void", "addMonth", "(", "int", "i", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "cal", ".", "set", "(", "getDisplayYear", "(", ")", ",", "getDisplayMonth", "(", ")", "-", "1", ",", "1", ")", ";", "in...
Add month count to month field @param i month to add
[ "Add", "month", "count", "to", "month", "field" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L178-L193
148,326
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.addYear
private void addYear(int i) { Calendar cal = Calendar.getInstance(); cal.set(getDisplayYear(), 1, 1); cal.add(Calendar.YEAR, i); yearTextField.setText(String.valueOf(cal.get(Calendar.YEAR))); }
java
private void addYear(int i) { Calendar cal = Calendar.getInstance(); cal.set(getDisplayYear(), 1, 1); cal.add(Calendar.YEAR, i); yearTextField.setText(String.valueOf(cal.get(Calendar.YEAR))); }
[ "private", "void", "addYear", "(", "int", "i", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "cal", ".", "set", "(", "getDisplayYear", "(", ")", ",", "1", ",", "1", ")", ";", "cal", ".", "add", "(", "Calendar", ...
Add year count to year field @param i year nums to add
[ "Add", "year", "count", "to", "year", "field" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L200-L205
148,327
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.getDays
private String[] getDays(int year, int month) { Calendar cal = Calendar.getInstance(); cal.set(year, month, 1); int dayNum = cal.getActualMaximum(Calendar.DAY_OF_MONTH); String[] days = new String[dayNum]; for (int i = 0; i < dayNum; i++) { days[i] = String.valueOf(i...
java
private String[] getDays(int year, int month) { Calendar cal = Calendar.getInstance(); cal.set(year, month, 1); int dayNum = cal.getActualMaximum(Calendar.DAY_OF_MONTH); String[] days = new String[dayNum]; for (int i = 0; i < dayNum; i++) { days[i] = String.valueOf(i...
[ "private", "String", "[", "]", "getDays", "(", "int", "year", ",", "int", "month", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "cal", ".", "set", "(", "year", ",", "month", ",", "1", ")", ";", "int", "dayNum", ...
Get days of a month @param year value of the year @param month value of the month @return days array of this month
[ "Get", "days", "of", "a", "month" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L232-L243
148,328
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.getDayIndex
private int getDayIndex(int year, int month, int day) { Calendar cal = Calendar.getInstance(); cal.set(year, month, day); return cal.get(Calendar.DAY_OF_WEEK); }
java
private int getDayIndex(int year, int month, int day) { Calendar cal = Calendar.getInstance(); cal.set(year, month, day); return cal.get(Calendar.DAY_OF_WEEK); }
[ "private", "int", "getDayIndex", "(", "int", "year", ",", "int", "month", ",", "int", "day", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "cal", ".", "set", "(", "year", ",", "month", ",", "day", ")", ";", "retur...
Get DAY_OF_WEEK of a day @param year the year @param month the month @param day the day @return DAY_OF_WEEK of this day
[ "Get", "DAY_OF_WEEK", "of", "a", "day" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L253-L257
148,329
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.getBeforeDays
private Date[] getBeforeDays(int year, int month) { Calendar cal = Calendar.getInstance(); cal.set(year, month, 1); int dayNum = getDayIndex(year, month, 1) - 1; Date[] date = new Date[dayNum]; if (dayNum > 0) for (int i = 0; i < dayNum; i++) { cal.add...
java
private Date[] getBeforeDays(int year, int month) { Calendar cal = Calendar.getInstance(); cal.set(year, month, 1); int dayNum = getDayIndex(year, month, 1) - 1; Date[] date = new Date[dayNum]; if (dayNum > 0) for (int i = 0; i < dayNum; i++) { cal.add...
[ "private", "Date", "[", "]", "getBeforeDays", "(", "int", "year", ",", "int", "month", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "cal", ".", "set", "(", "year", ",", "month", ",", "1", ")", ";", "int", "dayNum...
Get date arrays before 1st day of the month in that week @param year the year @param month the month @return date arrays before 1st day of the month in that week
[ "Get", "date", "arrays", "before", "1st", "day", "of", "the", "month", "in", "that", "week" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L267-L279
148,330
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.getAfterDays
private Date[] getAfterDays(int year, int month) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, year); cal.set(Calendar.MONTH, month); int dayNum = cal.getActualMaximum(Calendar.DAY_OF_MONTH); cal.set(year, month, dayNum); int afterDayNum = 7 - getDayInde...
java
private Date[] getAfterDays(int year, int month) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, year); cal.set(Calendar.MONTH, month); int dayNum = cal.getActualMaximum(Calendar.DAY_OF_MONTH); cal.set(year, month, dayNum); int afterDayNum = 7 - getDayInde...
[ "private", "Date", "[", "]", "getAfterDays", "(", "int", "year", ",", "int", "month", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "cal", ".", "set", "(", "Calendar", ".", "YEAR", ",", "year", ")", ";", "cal", "....
Get date arrays after the last day of the month in that week @param year the year @param month the month @return date arrays after 1st day of the month in that week
[ "Get", "date", "arrays", "after", "the", "last", "day", "of", "the", "month", "in", "that", "week" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L288-L304
148,331
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.addDayHeadLabels
private void addDayHeadLabels() { for (JLabel it : getDayHeadLabels()) { it.setVerticalAlignment(JLabel.CENTER); it.setHorizontalAlignment(JLabel.CENTER); daysPanel.add(it); } }
java
private void addDayHeadLabels() { for (JLabel it : getDayHeadLabels()) { it.setVerticalAlignment(JLabel.CENTER); it.setHorizontalAlignment(JLabel.CENTER); daysPanel.add(it); } }
[ "private", "void", "addDayHeadLabels", "(", ")", "{", "for", "(", "JLabel", "it", ":", "getDayHeadLabels", "(", ")", ")", "{", "it", ".", "setVerticalAlignment", "(", "JLabel", ".", "CENTER", ")", ";", "it", ".", "setHorizontalAlignment", "(", "JLabel", "....
Add day header to top of month btns
[ "Add", "day", "header", "to", "top", "of", "month", "btns" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L309-L316
148,332
chocotan/datepicker4j
src/main/java/io/loli/datepicker/DatePanel.java
DatePanel.refreshDayBtns
@SuppressWarnings("deprecation") private void refreshDayBtns() { remove(daysPanel); daysPanel = new JPanel(); daysPanel.removeAll(); daysPanel.setLayout(new GridLayout(0, 7)); int displayYear = getDisplayYear(); int displayMonth = getDisplayMonth(); String...
java
@SuppressWarnings("deprecation") private void refreshDayBtns() { remove(daysPanel); daysPanel = new JPanel(); daysPanel.removeAll(); daysPanel.setLayout(new GridLayout(0, 7)); int displayYear = getDisplayYear(); int displayMonth = getDisplayMonth(); String...
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "private", "void", "refreshDayBtns", "(", ")", "{", "remove", "(", "daysPanel", ")", ";", "daysPanel", "=", "new", "JPanel", "(", ")", ";", "daysPanel", ".", "removeAll", "(", ")", ";", "daysPanel", "."...
Refresh day btn tables
[ "Refresh", "day", "btn", "tables" ]
d65d7a6b29f9efe77aeec2024dc31a38a7852676
https://github.com/chocotan/datepicker4j/blob/d65d7a6b29f9efe77aeec2024dc31a38a7852676/src/main/java/io/loli/datepicker/DatePanel.java#L328-L400
148,333
xdcrafts/flower
flower-spring/src/main/java/com/github/xdcrafts/flower/spring/impl/AbstractActionFactoryBean.java
AbstractActionFactoryBean.getMiddleware
protected List<Middleware> getMiddleware(String name) { final List<Middleware> middleware = this.applicationContext .getBeansOfType(MiddlewareDefinition.class, true, false) .values() .stream() .flatMap(d -> d.getDefinition().entrySet().stream()) .colle...
java
protected List<Middleware> getMiddleware(String name) { final List<Middleware> middleware = this.applicationContext .getBeansOfType(MiddlewareDefinition.class, true, false) .values() .stream() .flatMap(d -> d.getDefinition().entrySet().stream()) .colle...
[ "protected", "List", "<", "Middleware", ">", "getMiddleware", "(", "String", "name", ")", "{", "final", "List", "<", "Middleware", ">", "middleware", "=", "this", ".", "applicationContext", ".", "getBeansOfType", "(", "MiddlewareDefinition", ".", "class", ",", ...
Resolves middleware assigned to action by it's name.
[ "Resolves", "middleware", "assigned", "to", "action", "by", "it", "s", "name", "." ]
96a8e49102fea434bd383a3c7852f0ee9545f999
https://github.com/xdcrafts/flower/blob/96a8e49102fea434bd383a3c7852f0ee9545f999/flower-spring/src/main/java/com/github/xdcrafts/flower/spring/impl/AbstractActionFactoryBean.java#L93-L102
148,334
xdcrafts/flower
flower-tools/src/main/java/com/github/xdcrafts/flower/tools/map/MapDsl.java
MapDsl.with
public static MapOperator with(final Map map, final Class<? extends Map> nodeClass) { return new MapOperator(map, nodeClass); }
java
public static MapOperator with(final Map map, final Class<? extends Map> nodeClass) { return new MapOperator(map, nodeClass); }
[ "public", "static", "MapOperator", "with", "(", "final", "Map", "map", ",", "final", "Class", "<", "?", "extends", "Map", ">", "nodeClass", ")", "{", "return", "new", "MapOperator", "(", "map", ",", "nodeClass", ")", ";", "}" ]
Entry point for mutable map dsl. @param map subject @param nodeClass map class @return operator
[ "Entry", "point", "for", "mutable", "map", "dsl", "." ]
96a8e49102fea434bd383a3c7852f0ee9545f999
https://github.com/xdcrafts/flower/blob/96a8e49102fea434bd383a3c7852f0ee9545f999/flower-tools/src/main/java/com/github/xdcrafts/flower/tools/map/MapDsl.java#L36-L38
148,335
stephanenicolas/mimic
mimic-library/src/main/java/com/github/stephanenicolas/mimic/MimicCreator.java
MimicCreator.mimicClass
public void mimicClass(CtClass src, CtClass dst, MimicMode defaultMimicMode, MimicMethod[] mimicMethods) throws NotFoundException, CannotCompileException, MimicException { mimicInterfaces(src, dst); mimicFields(src, dst); mimicConstructors(src, dst); mimicMethods(src, dst, defaultMimicMo...
java
public void mimicClass(CtClass src, CtClass dst, MimicMode defaultMimicMode, MimicMethod[] mimicMethods) throws NotFoundException, CannotCompileException, MimicException { mimicInterfaces(src, dst); mimicFields(src, dst); mimicConstructors(src, dst); mimicMethods(src, dst, defaultMimicMo...
[ "public", "void", "mimicClass", "(", "CtClass", "src", ",", "CtClass", "dst", ",", "MimicMode", "defaultMimicMode", ",", "MimicMethod", "[", "]", "mimicMethods", ")", "throws", "NotFoundException", ",", "CannotCompileException", ",", "MimicException", "{", "mimicInt...
Copies all fields, constructors and methods declared in class src into dst. All interfaces implemented by src will also be implemented by dst. @param src the src class. @param dst the dst class. @param defaultMimicMode the default mimic mode for methods. @param mimicMethods @throws NotFoundException should not be thro...
[ "Copies", "all", "fields", "constructors", "and", "methods", "declared", "in", "class", "src", "into", "dst", ".", "All", "interfaces", "implemented", "by", "src", "will", "also", "be", "implemented", "by", "dst", "." ]
28991c5a10a87eb1c58d834f5a1e07fe1f731c48
https://github.com/stephanenicolas/mimic/blob/28991c5a10a87eb1c58d834f5a1e07fe1f731c48/mimic-library/src/main/java/com/github/stephanenicolas/mimic/MimicCreator.java#L161-L166
148,336
Jasig/portlet-utils
portlet-security-util/src/main/java/org/jasig/web/filter/SimpleCorsFilter.java
SimpleCorsFilter.doFilter
@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletResponse response = (HttpServletResponse) res; response.setHeader("Access-Control-Allow-Origin", allowOrigin); response.setHeader("Access-Control-Allow...
java
@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletResponse response = (HttpServletResponse) res; response.setHeader("Access-Control-Allow-Origin", allowOrigin); response.setHeader("Access-Control-Allow...
[ "@", "Override", "public", "void", "doFilter", "(", "ServletRequest", "req", ",", "ServletResponse", "res", ",", "FilterChain", "chain", ")", "throws", "IOException", ",", "ServletException", "{", "HttpServletResponse", "response", "=", "(", "HttpServletResponse", "...
Sets the headers to support CORS @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
[ "Sets", "the", "headers", "to", "support", "CORS" ]
bb54047a90b92bdfecd0ca51cc4371929c941ff5
https://github.com/Jasig/portlet-utils/blob/bb54047a90b92bdfecd0ca51cc4371929c941ff5/portlet-security-util/src/main/java/org/jasig/web/filter/SimpleCorsFilter.java#L115-L123
148,337
devnewton/jnuit
jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java
JPEGDecoder.decodeHeader
public void decodeHeader() throws IOException { if(!headerDecoded) { headerDecoded = true; int m = getMarker(); if(m != 0xD8) { throw new IOException("no SOI"); } m = getMarker(); while(m != 0xC0 && m != 0xC1) { // SOF ...
java
public void decodeHeader() throws IOException { if(!headerDecoded) { headerDecoded = true; int m = getMarker(); if(m != 0xD8) { throw new IOException("no SOI"); } m = getMarker(); while(m != 0xC0 && m != 0xC1) { // SOF ...
[ "public", "void", "decodeHeader", "(", ")", "throws", "IOException", "{", "if", "(", "!", "headerDecoded", ")", "{", "headerDecoded", "=", "true", ";", "int", "m", "=", "getMarker", "(", ")", ";", "if", "(", "m", "!=", "0xD8", ")", "{", "throw", "new...
Decodes the JPEG header. This must be called before the image size can be queried. @throws IOException if an IO error occurred
[ "Decodes", "the", "JPEG", "header", ".", "This", "must", "be", "called", "before", "the", "image", "size", "can", "be", "queried", "." ]
191f19b55a17451d0f277c151c7e9b4427a12415
https://github.com/devnewton/jnuit/blob/191f19b55a17451d0f277c151c7e9b4427a12415/jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java#L126-L145
148,338
devnewton/jnuit
jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java
JPEGDecoder.startDecode
public boolean startDecode() throws IOException { if(insideSOS) { throw new IllegalStateException("decode already started"); } if(foundEOI) { return false; } decodeHeader(); int m = getMarker(); while(m != 0xD9) { // EOI if(m ...
java
public boolean startDecode() throws IOException { if(insideSOS) { throw new IllegalStateException("decode already started"); } if(foundEOI) { return false; } decodeHeader(); int m = getMarker(); while(m != 0xD9) { // EOI if(m ...
[ "public", "boolean", "startDecode", "(", ")", "throws", "IOException", "{", "if", "(", "insideSOS", ")", "{", "throw", "new", "IllegalStateException", "(", "\"decode already started\"", ")", ";", "}", "if", "(", "foundEOI", ")", "{", "return", "false", ";", ...
Starts the decode process. This will advance the JPEG stream to the start of the image data. It also checks if that JPEG file can be decoded by this library. @return true if the JPEG can be decoded. @throws IOException if an IO error occurred
[ "Starts", "the", "decode", "process", ".", "This", "will", "advance", "the", "JPEG", "stream", "to", "the", "start", "of", "the", "image", "data", ".", "It", "also", "checks", "if", "that", "JPEG", "file", "can", "be", "decoded", "by", "this", "library",...
191f19b55a17451d0f277c151c7e9b4427a12415
https://github.com/devnewton/jnuit/blob/191f19b55a17451d0f277c151c7e9b4427a12415/jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java#L236-L261
148,339
devnewton/jnuit
jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java
JPEGDecoder.decodeRAW
public void decodeRAW(ByteBuffer[] buffer, int[] strides, int numMCURows) throws IOException { if(!insideSOS) { throw new IllegalStateException("decode not started"); } if(numMCURows <= 0 || currentMCURow + numMCURows > mcuCountY) { throw new IllegalArgumentException("nu...
java
public void decodeRAW(ByteBuffer[] buffer, int[] strides, int numMCURows) throws IOException { if(!insideSOS) { throw new IllegalStateException("decode not started"); } if(numMCURows <= 0 || currentMCURow + numMCURows > mcuCountY) { throw new IllegalArgumentException("nu...
[ "public", "void", "decodeRAW", "(", "ByteBuffer", "[", "]", "buffer", ",", "int", "[", "]", "strides", ",", "int", "numMCURows", ")", "throws", "IOException", "{", "if", "(", "!", "insideSOS", ")", "{", "throw", "new", "IllegalStateException", "(", "\"deco...
Decodes each color component of the JPEG file separately into a separate ByteBuffer. The number of buffers must match the number of color channels. Each color channel can have a different sub sampling factor. @param buffer the ByteBuffers for each color component @param strides the distance in bytes from the start of ...
[ "Decodes", "each", "color", "component", "of", "the", "JPEG", "file", "separately", "into", "a", "separate", "ByteBuffer", ".", "The", "number", "of", "buffers", "must", "match", "the", "number", "of", "color", "channels", ".", "Each", "color", "channel", "c...
191f19b55a17451d0f277c151c7e9b4427a12415
https://github.com/devnewton/jnuit/blob/191f19b55a17451d0f277c151c7e9b4427a12415/jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java#L378-L432
148,340
devnewton/jnuit
jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java
JPEGDecoder.decodeDCTCoeffs
public void decodeDCTCoeffs(ShortBuffer[] buffer, int numMCURows) throws IOException { if(!insideSOS) { throw new IllegalStateException("decode not started"); } if(numMCURows <= 0 || currentMCURow + numMCURows > mcuCountY) { throw new IllegalArgumentException("numMCURows...
java
public void decodeDCTCoeffs(ShortBuffer[] buffer, int numMCURows) throws IOException { if(!insideSOS) { throw new IllegalStateException("decode not started"); } if(numMCURows <= 0 || currentMCURow + numMCURows > mcuCountY) { throw new IllegalArgumentException("numMCURows...
[ "public", "void", "decodeDCTCoeffs", "(", "ShortBuffer", "[", "]", "buffer", ",", "int", "numMCURows", ")", "throws", "IOException", "{", "if", "(", "!", "insideSOS", ")", "{", "throw", "new", "IllegalStateException", "(", "\"decode not started\"", ")", ";", "...
Decodes the dequantizied DCT coefficients into a buffer per color component. The number of buffers must match the number of color channels. Each color channel can have a different sub sampling factor. @param buffer the ShortBuffers for each color component @param numMCURows the number of MCU rows to decode. @throws IO...
[ "Decodes", "the", "dequantizied", "DCT", "coefficients", "into", "a", "buffer", "per", "color", "component", ".", "The", "number", "of", "buffers", "must", "match", "the", "number", "of", "color", "channels", ".", "Each", "color", "channel", "can", "have", "...
191f19b55a17451d0f277c151c7e9b4427a12415
https://github.com/devnewton/jnuit/blob/191f19b55a17451d0f277c151c7e9b4427a12415/jpegdecoder/src/main/java/de/matthiasmann/jpegdecoder/JPEGDecoder.java#L448-L506
148,341
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/EntityValidator.java
EntityValidator.validate
public boolean validate(Entity entity, String attribute) throws APIException, ConnectionException, OidException { Asset asset = v1Instance.getAsset(entity.getInstanceKey()) != null ? v1Instance.getAsset(entity.getInstanceKey()) : v1Instance.getAsset(entity.getID()); IAttributeDefinition attributeDefinit...
java
public boolean validate(Entity entity, String attribute) throws APIException, ConnectionException, OidException { Asset asset = v1Instance.getAsset(entity.getInstanceKey()) != null ? v1Instance.getAsset(entity.getInstanceKey()) : v1Instance.getAsset(entity.getID()); IAttributeDefinition attributeDefinit...
[ "public", "boolean", "validate", "(", "Entity", "entity", ",", "String", "attribute", ")", "throws", "APIException", ",", "ConnectionException", ",", "OidException", "{", "Asset", "asset", "=", "v1Instance", ".", "getAsset", "(", "entity", ".", "getInstanceKey", ...
Validate single attribute of an entity. @param entity - Entity. @param attribute - Name of attribute to be validated. @return true, if attribute value is valid; false, otherwise. @throws OidException @throws ConnectionException @throws APIException
[ "Validate", "single", "attribute", "of", "an", "entity", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/EntityValidator.java#L42-L46
148,342
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/EntityValidator.java
EntityValidator.validate
public List<String> validate(Entity entity) throws APIException, ConnectionException, OidException { Asset asset = v1Instance.getAsset(entity.getInstanceKey()) != null ? v1Instance.getAsset(entity.getInstanceKey()) : v1Instance.getAsset(entity.getID()); return validate(asset); }
java
public List<String> validate(Entity entity) throws APIException, ConnectionException, OidException { Asset asset = v1Instance.getAsset(entity.getInstanceKey()) != null ? v1Instance.getAsset(entity.getInstanceKey()) : v1Instance.getAsset(entity.getID()); return validate(asset); }
[ "public", "List", "<", "String", ">", "validate", "(", "Entity", "entity", ")", "throws", "APIException", ",", "ConnectionException", ",", "OidException", "{", "Asset", "asset", "=", "v1Instance", ".", "getAsset", "(", "entity", ".", "getInstanceKey", "(", ")"...
Validate single Entity. @param entity - Entity to validate. @return Collection of invalid attribute names. @throws OidException @throws ConnectionException @throws APIException
[ "Validate", "single", "Entity", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/EntityValidator.java#L56-L59
148,343
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/EntityValidator.java
EntityValidator.validate
public Map<Entity, List<String>> validate(Entity[] entities) throws APIException, ConnectionException, OidException { Map<Entity, List<String>> results = new HashMap<Entity, List<String>>(); for (Entity entity : entities) { results.put(entity, validate(entity)); } return re...
java
public Map<Entity, List<String>> validate(Entity[] entities) throws APIException, ConnectionException, OidException { Map<Entity, List<String>> results = new HashMap<Entity, List<String>>(); for (Entity entity : entities) { results.put(entity, validate(entity)); } return re...
[ "public", "Map", "<", "Entity", ",", "List", "<", "String", ">", ">", "validate", "(", "Entity", "[", "]", "entities", ")", "throws", "APIException", ",", "ConnectionException", ",", "OidException", "{", "Map", "<", "Entity", ",", "List", "<", "String", ...
Validate a collection of entities. @param entities - Entities to validate. @return Map where Entities are keys, and corresponding validation results are values (@see Validate(Entity)). @throws OidException @throws ConnectionException @throws APIException
[ "Validate", "a", "collection", "of", "entities", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/EntityValidator.java#L69-L77
148,344
luuuis/jcalendar
src/main/java/com/toedter/components/GenericBeanInfo.java
GenericBeanInfo.getIcon
public Image getIcon(int iconKind) { switch (iconKind) { case ICON_COLOR_16x16 : return iconColor16; case ICON_COLOR_32x32 : return iconColor32; case ICON_MONO_16x16 : return iconMono16; case ICON_MONO_32x32 : return iconMono32; } return null; }
java
public Image getIcon(int iconKind) { switch (iconKind) { case ICON_COLOR_16x16 : return iconColor16; case ICON_COLOR_32x32 : return iconColor32; case ICON_MONO_16x16 : return iconMono16; case ICON_MONO_32x32 : return iconMono32; } return null; }
[ "public", "Image", "getIcon", "(", "int", "iconKind", ")", "{", "switch", "(", "iconKind", ")", "{", "case", "ICON_COLOR_16x16", ":", "return", "iconColor16", ";", "case", "ICON_COLOR_32x32", ":", "return", "iconColor32", ";", "case", "ICON_MONO_16x16", ":", "...
This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc. @param iconKind the kind of requested icon @return the icon image
[ "This", "method", "returns", "an", "image", "object", "that", "can", "be", "used", "to", "represent", "the", "bean", "in", "toolboxes", "toolbars", "etc", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/components/GenericBeanInfo.java#L75-L91
148,345
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/BaseAsset.java
BaseAsset.createAttachment
public Attachment createAttachment(String name, String fileName, InputStream stream) throws AttachmentLengthExceededException, ApplicationUnavailableException { return getInstance().create().attachment(name, this, fileName, stream); }
java
public Attachment createAttachment(String name, String fileName, InputStream stream) throws AttachmentLengthExceededException, ApplicationUnavailableException { return getInstance().create().attachment(name, this, fileName, stream); }
[ "public", "Attachment", "createAttachment", "(", "String", "name", ",", "String", "fileName", ",", "InputStream", "stream", ")", "throws", "AttachmentLengthExceededException", ",", "ApplicationUnavailableException", "{", "return", "getInstance", "(", ")", ".", "create",...
Create an attachment that belongs to this asset. @param name The name of the attachment. @param fileName The name of the original attachment file. @param stream The read-enabled stream that contains the attachment. content to upload. @return {@code Attachment} object with corresponding parameters. @throws Attach...
[ "Create", "an", "attachment", "that", "belongs", "to", "this", "asset", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/BaseAsset.java#L272-L275
148,346
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/BaseAsset.java
BaseAsset.createConversation
public Conversation createConversation(Member author, String content) { Conversation conversation = getInstance().create().conversation(author, content); Iterator<Expression> iterator = conversation.getContainedExpressions().iterator(); iterator.next().getMentions().add(this); conversati...
java
public Conversation createConversation(Member author, String content) { Conversation conversation = getInstance().create().conversation(author, content); Iterator<Expression> iterator = conversation.getContainedExpressions().iterator(); iterator.next().getMentions().add(this); conversati...
[ "public", "Conversation", "createConversation", "(", "Member", "author", ",", "String", "content", ")", "{", "Conversation", "conversation", "=", "getInstance", "(", ")", ".", "create", "(", ")", ".", "conversation", "(", "author", ",", "content", ")", ";", ...
Creates conversation with an expression which mentioned this asset. @param author Author of conversation expression. @param content Content of conversation expression. @return Created conversation
[ "Creates", "conversation", "with", "an", "expression", "which", "mentioned", "this", "asset", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/BaseAsset.java#L304-L310
148,347
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.propertyChange
public void propertyChange(PropertyChangeEvent evt) { if (calendar != null) { Calendar c = (Calendar) calendar.clone(); if (evt.getPropertyName().equals("day")) { c.set(Calendar.DAY_OF_MONTH, ((Integer) evt.getNewValue()).intValue()); setCalendar(c, false); } else if (evt.getPropertyName().equals("m...
java
public void propertyChange(PropertyChangeEvent evt) { if (calendar != null) { Calendar c = (Calendar) calendar.clone(); if (evt.getPropertyName().equals("day")) { c.set(Calendar.DAY_OF_MONTH, ((Integer) evt.getNewValue()).intValue()); setCalendar(c, false); } else if (evt.getPropertyName().equals("m...
[ "public", "void", "propertyChange", "(", "PropertyChangeEvent", "evt", ")", "{", "if", "(", "calendar", "!=", "null", ")", "{", "Calendar", "c", "=", "(", "Calendar", ")", "calendar", ".", "clone", "(", ")", ";", "if", "(", "evt", ".", "getPropertyName",...
JCalendar is a PropertyChangeListener, for its day, month and year chooser. @param evt the property change event
[ "JCalendar", "is", "a", "PropertyChangeListener", "for", "its", "day", "month", "and", "year", "chooser", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L296-L314
148,348
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.setBackground
public void setBackground(Color bg) { super.setBackground(bg); if (dayChooser != null) { dayChooser.setBackground(bg); } }
java
public void setBackground(Color bg) { super.setBackground(bg); if (dayChooser != null) { dayChooser.setBackground(bg); } }
[ "public", "void", "setBackground", "(", "Color", "bg", ")", "{", "super", ".", "setBackground", "(", "bg", ")", ";", "if", "(", "dayChooser", "!=", "null", ")", "{", "dayChooser", ".", "setBackground", "(", "bg", ")", ";", "}", "}" ]
Sets the background color. @param bg the new background
[ "Sets", "the", "background", "color", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L322-L328
148,349
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.setCalendar
private void setCalendar(Calendar c, boolean update) { if (c == null) { setDate(null); } Calendar oldCalendar = calendar; calendar = c; if (update) { // Thanks to Jeff Ulmer for correcting a bug in the sequence :) yearChooser.setYear(c.get(Calendar.YEAR)); monthChooser.setMonth(c.get(Calendar.MON...
java
private void setCalendar(Calendar c, boolean update) { if (c == null) { setDate(null); } Calendar oldCalendar = calendar; calendar = c; if (update) { // Thanks to Jeff Ulmer for correcting a bug in the sequence :) yearChooser.setYear(c.get(Calendar.YEAR)); monthChooser.setMonth(c.get(Calendar.MON...
[ "private", "void", "setCalendar", "(", "Calendar", "c", ",", "boolean", "update", ")", "{", "if", "(", "c", "==", "null", ")", "{", "setDate", "(", "null", ")", ";", "}", "Calendar", "oldCalendar", "=", "calendar", ";", "calendar", "=", "c", ";", "if...
Sets the calendar attribute of the JCalendar object @param c the new calendar value @param update the new calendar value @throws NullPointerException - if c is null;
[ "Sets", "the", "calendar", "attribute", "of", "the", "JCalendar", "object" ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L353-L368
148,350
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.setEnabled
public void setEnabled(boolean enabled) { super.setEnabled(enabled); if (dayChooser != null) { dayChooser.setEnabled(enabled); monthChooser.setEnabled(enabled); yearChooser.setEnabled(enabled); } }
java
public void setEnabled(boolean enabled) { super.setEnabled(enabled); if (dayChooser != null) { dayChooser.setEnabled(enabled); monthChooser.setEnabled(enabled); yearChooser.setEnabled(enabled); } }
[ "public", "void", "setEnabled", "(", "boolean", "enabled", ")", "{", "super", ".", "setEnabled", "(", "enabled", ")", ";", "if", "(", "dayChooser", "!=", "null", ")", "{", "dayChooser", ".", "setEnabled", "(", "enabled", ")", ";", "monthChooser", ".", "s...
Enable or disable the JCalendar. @param enabled the new enabled value
[ "Enable", "or", "disable", "the", "JCalendar", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L376-L384
148,351
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.setForeground
public void setForeground(Color fg) { super.setForeground(fg); if (dayChooser != null) { dayChooser.setForeground(fg); monthChooser.setForeground(fg); yearChooser.setForeground(fg); } }
java
public void setForeground(Color fg) { super.setForeground(fg); if (dayChooser != null) { dayChooser.setForeground(fg); monthChooser.setForeground(fg); yearChooser.setForeground(fg); } }
[ "public", "void", "setForeground", "(", "Color", "fg", ")", "{", "super", ".", "setForeground", "(", "fg", ")", ";", "if", "(", "dayChooser", "!=", "null", ")", "{", "dayChooser", ".", "setForeground", "(", "fg", ")", ";", "monthChooser", ".", "setForegr...
Sets the foreground color. @param fg the new foreground
[ "Sets", "the", "foreground", "color", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L417-L425
148,352
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.setLocale
public void setLocale(Locale l) { if (!initialized) { super.setLocale(l); } else { Locale oldLocale = locale; locale = l; dayChooser.setLocale(locale); monthChooser.setLocale(locale); firePropertyChange("locale", oldLocale, locale); } }
java
public void setLocale(Locale l) { if (!initialized) { super.setLocale(l); } else { Locale oldLocale = locale; locale = l; dayChooser.setLocale(locale); monthChooser.setLocale(locale); firePropertyChange("locale", oldLocale, locale); } }
[ "public", "void", "setLocale", "(", "Locale", "l", ")", "{", "if", "(", "!", "initialized", ")", "{", "super", ".", "setLocale", "(", "l", ")", ";", "}", "else", "{", "Locale", "oldLocale", "=", "locale", ";", "locale", "=", "l", ";", "dayChooser", ...
Sets the locale property. This is a bound property. @param l the new locale value @see #getLocale
[ "Sets", "the", "locale", "property", ".", "This", "is", "a", "bound", "property", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L435-L445
148,353
luuuis/jcalendar
src/main/java/com/toedter/calendar/JCalendar.java
JCalendar.setDate
public void setDate(Date date) { Date oldDate = calendar.getTime(); calendar.setTime(date); int year = calendar.get(Calendar.YEAR); int month = calendar.get(Calendar.MONTH); int day = calendar.get(Calendar.DAY_OF_MONTH); yearChooser.setYear(year); monthChooser.setMonth(month); dayChooser.setCalendar(ca...
java
public void setDate(Date date) { Date oldDate = calendar.getTime(); calendar.setTime(date); int year = calendar.get(Calendar.YEAR); int month = calendar.get(Calendar.MONTH); int day = calendar.get(Calendar.DAY_OF_MONTH); yearChooser.setYear(year); monthChooser.setMonth(month); dayChooser.setCalendar(ca...
[ "public", "void", "setDate", "(", "Date", "date", ")", "{", "Date", "oldDate", "=", "calendar", ".", "getTime", "(", ")", ";", "calendar", ".", "setTime", "(", "date", ")", ";", "int", "year", "=", "calendar", ".", "get", "(", "Calendar", ".", "YEAR"...
Sets the date. Fires the property change "date". @param date the new date. @throws NullPointerException - if tha date is null
[ "Sets", "the", "date", ".", "Fires", "the", "property", "change", "date", "." ]
442e5bc319d92dee93400e6180ca74a5b6bd7775
https://github.com/luuuis/jcalendar/blob/442e5bc319d92dee93400e6180ca74a5b6bd7775/src/main/java/com/toedter/calendar/JCalendar.java#L572-L585
148,354
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.text
public T text(int resid, Object... formatArgs) { if (context != null) { CharSequence text = context.getString(resid, formatArgs); text(text); } return self(); }
java
public T text(int resid, Object... formatArgs) { if (context != null) { CharSequence text = context.getString(resid, formatArgs); text(text); } return self(); }
[ "public", "T", "text", "(", "int", "resid", ",", "Object", "...", "formatArgs", ")", "{", "if", "(", "context", "!=", "null", ")", "{", "CharSequence", "text", "=", "context", ".", "getString", "(", "resid", ",", "formatArgs", ")", ";", "text", "(", ...
Set the text of a TextView with localized formatted string from application's package's default string table @param resid the resid @return self @see Context#getString(int, Object...)
[ "Set", "the", "text", "of", "a", "TextView", "with", "localized", "formatted", "string", "from", "application", "s", "package", "s", "default", "string", "table" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L113-L119
148,355
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.text
public T text(Intent intent, String extraName) { if (intent!=null) { return text(intent.getStringExtra(extraName)); } return self(); }
java
public T text(Intent intent, String extraName) { if (intent!=null) { return text(intent.getStringExtra(extraName)); } return self(); }
[ "public", "T", "text", "(", "Intent", "intent", ",", "String", "extraName", ")", "{", "if", "(", "intent", "!=", "null", ")", "{", "return", "text", "(", "intent", ".", "getStringExtra", "(", "extraName", ")", ")", ";", "}", "return", "self", "(", ")...
set the text of a TextView with extraInfo from intent @param intent @param extraName @return
[ "set", "the", "text", "of", "a", "TextView", "with", "extraInfo", "from", "intent" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L128-L133
148,356
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.textColor
public T textColor(int color) { if (view instanceof TextView) { TextView tv = (TextView) view; tv.setTextColor(color); } return self(); }
java
public T textColor(int color) { if (view instanceof TextView) { TextView tv = (TextView) view; tv.setTextColor(color); } return self(); }
[ "public", "T", "textColor", "(", "int", "color", ")", "{", "if", "(", "view", "instanceof", "TextView", ")", "{", "TextView", "tv", "=", "(", "TextView", ")", "view", ";", "tv", ".", "setTextColor", "(", "color", ")", ";", "}", "return", "self", "(",...
Set the text color of a TextView. Note that it's not a color resource id. @param color color code in ARGB @return self
[ "Set", "the", "text", "color", "of", "a", "TextView", ".", "Note", "that", "it", "s", "not", "a", "color", "resource", "id", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L222-L229
148,357
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.typeface
public T typeface(Typeface tf) { if (view instanceof TextView) { TextView tv = (TextView) view; tv.setTypeface(tf); } return self(); }
java
public T typeface(Typeface tf) { if (view instanceof TextView) { TextView tv = (TextView) view; tv.setTypeface(tf); } return self(); }
[ "public", "T", "typeface", "(", "Typeface", "tf", ")", "{", "if", "(", "view", "instanceof", "TextView", ")", "{", "TextView", "tv", "=", "(", "TextView", ")", "view", ";", "tv", ".", "setTypeface", "(", "tf", ")", ";", "}", "return", "self", "(", ...
Set the text typeface of a TextView. @param tf typeface @return self
[ "Set", "the", "text", "typeface", "of", "a", "TextView", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L249-L256
148,358
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.adapter
@SuppressWarnings({"unchecked", "rawtypes"}) public T adapter(Adapter adapter) { if (view instanceof AdapterView) { AdapterView av = (AdapterView) view; av.setAdapter(adapter); } return self(); }
java
@SuppressWarnings({"unchecked", "rawtypes"}) public T adapter(Adapter adapter) { if (view instanceof AdapterView) { AdapterView av = (AdapterView) view; av.setAdapter(adapter); } return self(); }
[ "@", "SuppressWarnings", "(", "{", "\"unchecked\"", ",", "\"rawtypes\"", "}", ")", "public", "T", "adapter", "(", "Adapter", "adapter", ")", "{", "if", "(", "view", "instanceof", "AdapterView", ")", "{", "AdapterView", "av", "=", "(", "AdapterView", ")", "...
Set the adapter of an AdapterView. @param adapter adapter @return self
[ "Set", "the", "adapter", "of", "an", "AdapterView", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L281-L289
148,359
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.tag
public T tag(Object tag) { if (view != null) { view.setTag(tag); } return self(); }
java
public T tag(Object tag) { if (view != null) { view.setTag(tag); } return self(); }
[ "public", "T", "tag", "(", "Object", "tag", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "view", ".", "setTag", "(", "tag", ")", ";", "}", "return", "self", "(", ")", ";", "}" ]
Set tag object of a view. @param tag @return self
[ "Set", "tag", "object", "of", "a", "view", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L350-L357
148,360
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.checked
public T checked(boolean checked) { if (view instanceof CompoundButton) { CompoundButton cb = (CompoundButton) view; cb.setChecked(checked); } return self(); }
java
public T checked(boolean checked) { if (view instanceof CompoundButton) { CompoundButton cb = (CompoundButton) view; cb.setChecked(checked); } return self(); }
[ "public", "T", "checked", "(", "boolean", "checked", ")", "{", "if", "(", "view", "instanceof", "CompoundButton", ")", "{", "CompoundButton", "cb", "=", "(", "CompoundButton", ")", "view", ";", "cb", ".", "setChecked", "(", "checked", ")", ";", "}", "ret...
Set checked state of a compound button. @param checked state @return self
[ "Set", "checked", "state", "of", "a", "compound", "button", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L397-L405
148,361
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.isChecked
public boolean isChecked() { boolean checked = false; if (view instanceof CompoundButton) { CompoundButton cb = (CompoundButton) view; checked = cb.isChecked(); } return checked; }
java
public boolean isChecked() { boolean checked = false; if (view instanceof CompoundButton) { CompoundButton cb = (CompoundButton) view; checked = cb.isChecked(); } return checked; }
[ "public", "boolean", "isChecked", "(", ")", "{", "boolean", "checked", "=", "false", ";", "if", "(", "view", "instanceof", "CompoundButton", ")", "{", "CompoundButton", "cb", "=", "(", "CompoundButton", ")", "view", ";", "checked", "=", "cb", ".", "isCheck...
Get checked state of a compound button. @return checked
[ "Get", "checked", "state", "of", "a", "compound", "button", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L412-L422
148,362
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.gone
public T gone(boolean b) { if (b) return visibility(View.GONE); else return visibility(View.VISIBLE); }
java
public T gone(boolean b) { if (b) return visibility(View.GONE); else return visibility(View.VISIBLE); }
[ "public", "T", "gone", "(", "boolean", "b", ")", "{", "if", "(", "b", ")", "return", "visibility", "(", "View", ".", "GONE", ")", ";", "else", "return", "visibility", "(", "View", ".", "VISIBLE", ")", ";", "}" ]
Set view visibility to View.GONE. @return self
[ "Set", "view", "visibility", "to", "View", ".", "GONE", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L455-L460
148,363
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.visibility
public T visibility(int visibility) { if (view != null && view.getVisibility() != visibility) { view.setVisibility(visibility); } return self(); }
java
public T visibility(int visibility) { if (view != null && view.getVisibility() != visibility) { view.setVisibility(visibility); } return self(); }
[ "public", "T", "visibility", "(", "int", "visibility", ")", "{", "if", "(", "view", "!=", "null", "&&", "view", ".", "getVisibility", "(", ")", "!=", "visibility", ")", "{", "view", ".", "setVisibility", "(", "visibility", ")", ";", "}", "return", "sel...
Set view visibility, such as View.VISIBLE. @return self
[ "Set", "view", "visibility", "such", "as", "View", ".", "VISIBLE", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L502-L509
148,364
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.background
public T background(int id) { if (view != null) { if (id != 0) { view.setBackgroundResource(id); } else { if (Build.VERSION.SDK_INT<9) { view.setBackgroundDrawable(null); } else view.s...
java
public T background(int id) { if (view != null) { if (id != 0) { view.setBackgroundResource(id); } else { if (Build.VERSION.SDK_INT<9) { view.setBackgroundDrawable(null); } else view.s...
[ "public", "T", "background", "(", "int", "id", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "if", "(", "id", "!=", "0", ")", "{", "view", ".", "setBackgroundResource", "(", "id", ")", ";", "}", "else", "{", "if", "(", "Build", ".", "VER...
Set view background. @param id the id @return self
[ "Set", "view", "background", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L518-L531
148,365
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.backgroundColorId
public T backgroundColorId(int colorId) { if (view != null) { view.setBackgroundColor(context.getResources().getColor(colorId)); } return self(); }
java
public T backgroundColorId(int colorId) { if (view != null) { view.setBackgroundColor(context.getResources().getColor(colorId)); } return self(); }
[ "public", "T", "backgroundColorId", "(", "int", "colorId", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "view", ".", "setBackgroundColor", "(", "context", ".", "getResources", "(", ")", ".", "getColor", "(", "colorId", ")", ")", ";", "}", "retu...
Set view background color. @param colorId color code in resource id @return self
[ "Set", "view", "background", "color", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L554-L561
148,366
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.dataChanged
public T dataChanged() { if (view instanceof AdapterView) { AdapterView<?> av = (AdapterView<?>) view; Adapter a = av.getAdapter(); if (a instanceof BaseAdapter) { BaseAdapter ba = (BaseAdapter) a; ba.notifyDataSetChanged(); } ...
java
public T dataChanged() { if (view instanceof AdapterView) { AdapterView<?> av = (AdapterView<?>) view; Adapter a = av.getAdapter(); if (a instanceof BaseAdapter) { BaseAdapter ba = (BaseAdapter) a; ba.notifyDataSetChanged(); } ...
[ "public", "T", "dataChanged", "(", ")", "{", "if", "(", "view", "instanceof", "AdapterView", ")", "{", "AdapterView", "<", "?", ">", "av", "=", "(", "AdapterView", "<", "?", ">", ")", "view", ";", "Adapter", "a", "=", "av", ".", "getAdapter", "(", ...
Notify a ListView that the data of it's adapter is changed. @return self
[ "Notify", "a", "ListView", "that", "the", "data", "of", "it", "s", "adapter", "is", "changed", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L568-L582
148,367
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.getTag
public Object getTag() { Object result = null; if (view != null) { result = view.getTag(); } return result; }
java
public Object getTag() { Object result = null; if (view != null) { result = view.getTag(); } return result; }
[ "public", "Object", "getTag", "(", ")", "{", "Object", "result", "=", "null", ";", "if", "(", "view", "!=", "null", ")", "{", "result", "=", "view", ".", "getTag", "(", ")", ";", "}", "return", "result", ";", "}" ]
Gets the tag of the view. @return tag
[ "Gets", "the", "tag", "of", "the", "view", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L599-L605
148,368
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.clicked
public T clicked(View.OnClickListener listener) { if (view != null) { view.setOnClickListener(listener); } return self(); }
java
public T clicked(View.OnClickListener listener) { if (view != null) { view.setOnClickListener(listener); } return self(); }
[ "public", "T", "clicked", "(", "View", ".", "OnClickListener", "listener", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "view", ".", "setOnClickListener", "(", "listener", ")", ";", "}", "return", "self", "(", ")", ";", "}" ]
Register a callback method for when the view is clicked. @param listener The callback method. @return self
[ "Register", "a", "callback", "method", "for", "when", "the", "view", "is", "clicked", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L627-L634
148,369
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.longClicked
public T longClicked(View.OnLongClickListener listener) { if (view != null) { view.setOnLongClickListener(listener); } return self(); }
java
public T longClicked(View.OnLongClickListener listener) { if (view != null) { view.setOnLongClickListener(listener); } return self(); }
[ "public", "T", "longClicked", "(", "View", ".", "OnLongClickListener", "listener", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "view", ".", "setOnLongClickListener", "(", "listener", ")", ";", "}", "return", "self", "(", ")", ";", "}" ]
Register a callback method for when the view is long clicked. @param listener The callback method. @return self
[ "Register", "a", "callback", "method", "for", "when", "the", "view", "is", "long", "clicked", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L643-L650
148,370
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.itemClicked
public T itemClicked(AdapterView.OnItemClickListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemClickListener(listener); } return self(); }
java
public T itemClicked(AdapterView.OnItemClickListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemClickListener(listener); } return self(); }
[ "public", "T", "itemClicked", "(", "AdapterView", ".", "OnItemClickListener", "listener", ")", "{", "if", "(", "view", "instanceof", "AdapterView", ")", "{", "AdapterView", "<", "?", ">", "alv", "=", "(", "AdapterView", "<", "?", ">", ")", "view", ";", "...
Register a callback method for when an item is clicked in the ListView. @param listener The callback method. @return self
[ "Register", "a", "callback", "method", "for", "when", "an", "item", "is", "clicked", "in", "the", "ListView", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L658-L669
148,371
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.itemLongClicked
public T itemLongClicked(AdapterView.OnItemLongClickListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemLongClickListener(listener); } return self(); }
java
public T itemLongClicked(AdapterView.OnItemLongClickListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemLongClickListener(listener); } return self(); }
[ "public", "T", "itemLongClicked", "(", "AdapterView", ".", "OnItemLongClickListener", "listener", ")", "{", "if", "(", "view", "instanceof", "AdapterView", ")", "{", "AdapterView", "<", "?", ">", "alv", "=", "(", "AdapterView", "<", "?", ">", ")", "view", ...
Register a callback method for when an item is long clicked in the ListView. @param listener The callback method. @return self
[ "Register", "a", "callback", "method", "for", "when", "an", "item", "is", "long", "clicked", "in", "the", "ListView", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L677-L688
148,372
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.itemSelected
public T itemSelected(AdapterView.OnItemSelectedListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemSelectedListener(listener); } return self(); }
java
public T itemSelected(AdapterView.OnItemSelectedListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemSelectedListener(listener); } return self(); }
[ "public", "T", "itemSelected", "(", "AdapterView", ".", "OnItemSelectedListener", "listener", ")", "{", "if", "(", "view", "instanceof", "AdapterView", ")", "{", "AdapterView", "<", "?", ">", "alv", "=", "(", "AdapterView", "<", "?", ">", ")", "view", ";",...
Register a callback method for when an item is selected. @param listener The item selected listener. @return self
[ "Register", "a", "callback", "method", "for", "when", "an", "item", "is", "selected", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L696-L705
148,373
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.setSelection
public T setSelection(int position) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setSelection(position); } return self(); }
java
public T setSelection(int position) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setSelection(position); } return self(); }
[ "public", "T", "setSelection", "(", "int", "position", ")", "{", "if", "(", "view", "instanceof", "AdapterView", ")", "{", "AdapterView", "<", "?", ">", "alv", "=", "(", "AdapterView", "<", "?", ">", ")", "view", ";", "alv", ".", "setSelection", "(", ...
Set selected item of an AdapterView. @param position The position of the item to be selected. @return self
[ "Set", "selected", "item", "of", "an", "AdapterView", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L714-L723
148,374
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.clear
public T clear() { if (view != null) { if (view instanceof ImageView) { ImageView iv = ((ImageView) view); iv.setImageBitmap(null); } else if (view instanceof WebView) { WebView wv = ((WebView) view); wv.stopLoading(); ...
java
public T clear() { if (view != null) { if (view instanceof ImageView) { ImageView iv = ((ImageView) view); iv.setImageBitmap(null); } else if (view instanceof WebView) { WebView wv = ((WebView) view); wv.stopLoading(); ...
[ "public", "T", "clear", "(", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "if", "(", "view", "instanceof", "ImageView", ")", "{", "ImageView", "iv", "=", "(", "(", "ImageView", ")", "view", ")", ";", "iv", ".", "setImageBitmap", "(", "null"...
Clear a view. Applies to ImageView, WebView, and TextView. @return self
[ "Clear", "a", "view", ".", "Applies", "to", "ImageView", "WebView", "and", "TextView", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L730-L750
148,375
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.margin
public T margin(float leftDip, float topDip, float rightDip, float bottomDip) { if (view != null) { ViewGroup.LayoutParams lp = view.getLayoutParams(); if (lp instanceof ViewGroup.MarginLayoutParams) { int left = dip2pixel(leftDip); int top = dip2pixel...
java
public T margin(float leftDip, float topDip, float rightDip, float bottomDip) { if (view != null) { ViewGroup.LayoutParams lp = view.getLayoutParams(); if (lp instanceof ViewGroup.MarginLayoutParams) { int left = dip2pixel(leftDip); int top = dip2pixel...
[ "public", "T", "margin", "(", "float", "leftDip", ",", "float", "topDip", ",", "float", "rightDip", ",", "float", "bottomDip", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "ViewGroup", ".", "LayoutParams", "lp", "=", "view", ".", "getLayoutParams...
Set the margin of a view. Notes all parameters are in DIP, not in pixel. @param leftDip the left dip @param topDip the top dip @param rightDip the right dip @param bottomDip the bottom dip @return self
[ "Set", "the", "margin", "of", "a", "view", ".", "Notes", "all", "parameters", "are", "in", "DIP", "not", "in", "pixel", "." ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L762-L782
148,376
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.html
public T html(final String text) { if (TextUtils.isEmpty(text)) { return text(""); } if (text.contains("<") && text.contains(">")) { if (view instanceof TextView) ((TextView)view).setMovementMethod(LinkMovementMethod.getInstance()); return text...
java
public T html(final String text) { if (TextUtils.isEmpty(text)) { return text(""); } if (text.contains("<") && text.contains(">")) { if (view instanceof TextView) ((TextView)view).setMovementMethod(LinkMovementMethod.getInstance()); return text...
[ "public", "T", "html", "(", "final", "String", "text", ")", "{", "if", "(", "TextUtils", ".", "isEmpty", "(", "text", ")", ")", "{", "return", "text", "(", "\"\"", ")", ";", "}", "if", "(", "text", ".", "contains", "(", "\"<\"", ")", "&&", "text"...
set html content to TextView @param text @return
[ "set", "html", "content", "to", "TextView" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L980-L992
148,377
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.doubleTap
public T doubleTap(final GestureDetector.OnDoubleTapListener listener) { if (view != null) { final GestureDetector detector = new GestureDetector(view.getContext(), new GestureDetector.SimpleOnGestureListener()); detector.setOnDoubleTapListener(listener); ...
java
public T doubleTap(final GestureDetector.OnDoubleTapListener listener) { if (view != null) { final GestureDetector detector = new GestureDetector(view.getContext(), new GestureDetector.SimpleOnGestureListener()); detector.setOnDoubleTapListener(listener); ...
[ "public", "T", "doubleTap", "(", "final", "GestureDetector", ".", "OnDoubleTapListener", "listener", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "final", "GestureDetector", "detector", "=", "new", "GestureDetector", "(", "view", ".", "getContext", "("...
Register listener on double-tap gesture for view @param listener @return view
[ "Register", "listener", "on", "double", "-", "tap", "gesture", "for", "view" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1001-L1015
148,378
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.typeface
public T typeface(final String name) { if (view != null) typeface(getTypeface(name, context)); return self(); }
java
public T typeface(final String name) { if (view != null) typeface(getTypeface(name, context)); return self(); }
[ "public", "T", "typeface", "(", "final", "String", "name", ")", "{", "if", "(", "view", "!=", "null", ")", "typeface", "(", "getTypeface", "(", "name", ",", "context", ")", ")", ";", "return", "self", "(", ")", ";", "}" ]
Set typeface with name on given text view @param name @return view
[ "Set", "typeface", "with", "name", "on", "given", "text", "view" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1071-L1075
148,379
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.getTypeface
private static Typeface getTypeface(final String name, final Context context) { Typeface typeface = TYPEFACES.get(name); if (typeface == null) { typeface = Typeface.createFromAsset(context.getAssets(), name); TYPEFACES.put(name, typeface); } return typeface; }
java
private static Typeface getTypeface(final String name, final Context context) { Typeface typeface = TYPEFACES.get(name); if (typeface == null) { typeface = Typeface.createFromAsset(context.getAssets(), name); TYPEFACES.put(name, typeface); } return typeface; }
[ "private", "static", "Typeface", "getTypeface", "(", "final", "String", "name", ",", "final", "Context", "context", ")", "{", "Typeface", "typeface", "=", "TYPEFACES", ".", "get", "(", "name", ")", ";", "if", "(", "typeface", "==", "null", ")", "{", "typ...
Get typeface with name @param name @param context @return typeface, either cached or loaded from the assets
[ "Get", "typeface", "with", "name" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1084-L1091
148,380
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.input
public T input(final BooleanRunnable runnable) { if (view != null && view instanceof EditText) { EditText editText = (EditText) view; if ((editText.getInputType() & TYPE_TEXT_FLAG_MULTI_LINE) == 0) editText.setOnKeyListener(new View.OnKeyListener() { ...
java
public T input(final BooleanRunnable runnable) { if (view != null && view instanceof EditText) { EditText editText = (EditText) view; if ((editText.getInputType() & TYPE_TEXT_FLAG_MULTI_LINE) == 0) editText.setOnKeyListener(new View.OnKeyListener() { ...
[ "public", "T", "input", "(", "final", "BooleanRunnable", "runnable", ")", "{", "if", "(", "view", "!=", "null", "&&", "view", "instanceof", "EditText", ")", "{", "EditText", "editText", "=", "(", "EditText", ")", "view", ";", "if", "(", "(", "editText", ...
input event for editText @param runnable @return
[ "input", "event", "for", "editText" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1099-L1128
148,381
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.getViewBitmap
public Bitmap getViewBitmap() { if (view!=null) return null; Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); view.layout(view.getLeft(), view.getTop(), view.getRight(), view.getBottom()); ...
java
public Bitmap getViewBitmap() { if (view!=null) return null; Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); view.layout(view.getLeft(), view.getTop(), view.getRight(), view.getBottom()); ...
[ "public", "Bitmap", "getViewBitmap", "(", ")", "{", "if", "(", "view", "!=", "null", ")", "return", "null", ";", "Bitmap", "bitmap", "=", "Bitmap", ".", "createBitmap", "(", "view", ".", "getWidth", "(", ")", ",", "view", ".", "getHeight", "(", ")", ...
Get Bitmap for current view @return
[ "Get", "Bitmap", "for", "current", "view" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1147-L1157
148,382
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.fadeIn
public T fadeIn() { if (view!=null) { view.startAnimation(AnimationUtils.loadAnimation(context,android.R.anim.fade_in)); } return self(); }
java
public T fadeIn() { if (view!=null) { view.startAnimation(AnimationUtils.loadAnimation(context,android.R.anim.fade_in)); } return self(); }
[ "public", "T", "fadeIn", "(", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "view", ".", "startAnimation", "(", "AnimationUtils", ".", "loadAnimation", "(", "context", ",", "android", ".", "R", ".", "anim", ".", "fade_in", ")", ")", ";", "}", ...
apply fadein animation for view @return
[ "apply", "fadein", "animation", "for", "view" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1163-L1168
148,383
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.fadeOut
public T fadeOut() { if (view!=null) { view.startAnimation(AnimationUtils.loadAnimation(context,android.R.anim.fade_out)); } return self(); }
java
public T fadeOut() { if (view!=null) { view.startAnimation(AnimationUtils.loadAnimation(context,android.R.anim.fade_out)); } return self(); }
[ "public", "T", "fadeOut", "(", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "view", ".", "startAnimation", "(", "AnimationUtils", ".", "loadAnimation", "(", "context", ",", "android", ".", "R", ".", "anim", ".", "fade_out", ")", ")", ";", "}"...
apply fadeout animation for view @return
[ "apply", "fadeout", "animation", "for", "view" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1174-L1179
148,384
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.url
public T url(String url) { if (view!=null) { if (view instanceof WebView) { ((WebView)view).loadUrl(url); } if (view instanceof TextView) { ((TextView)view).setAutoLinkMask(Linkify.ALL); text(url); } } ...
java
public T url(String url) { if (view!=null) { if (view instanceof WebView) { ((WebView)view).loadUrl(url); } if (view instanceof TextView) { ((TextView)view).setAutoLinkMask(Linkify.ALL); text(url); } } ...
[ "public", "T", "url", "(", "String", "url", ")", "{", "if", "(", "view", "!=", "null", ")", "{", "if", "(", "view", "instanceof", "WebView", ")", "{", "(", "(", "WebView", ")", "view", ")", ".", "loadUrl", "(", "url", ")", ";", "}", "if", "(", ...
Set url for WebView or create a url link for Textview @param url @return
[ "Set", "url", "for", "WebView", "or", "create", "a", "url", "link", "for", "Textview" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1198-L1209
148,385
soarcn/COCOQuery
query/src/main/java/com/cocosw/query/AbstractViewQuery.java
AbstractViewQuery.clicked
public T clicked(final CocoTask<?> task) { return clicked(new View.OnClickListener() { @Override public void onClick(View v) { query.task(task); } }); }
java
public T clicked(final CocoTask<?> task) { return clicked(new View.OnClickListener() { @Override public void onClick(View v) { query.task(task); } }); }
[ "public", "T", "clicked", "(", "final", "CocoTask", "<", "?", ">", "task", ")", "{", "return", "clicked", "(", "new", "View", ".", "OnClickListener", "(", ")", "{", "@", "Override", "public", "void", "onClick", "(", "View", "v", ")", "{", "query", "....
Click this view will trigger a CocoTask @param task @return
[ "Click", "this", "view", "will", "trigger", "a", "CocoTask" ]
712eac37ab65ef3dbdf55dbfae28750edfc36608
https://github.com/soarcn/COCOQuery/blob/712eac37ab65ef3dbdf55dbfae28750edfc36608/query/src/main/java/com/cocosw/query/AbstractViewQuery.java#L1244-L1251
148,386
devnewton/jnuit
core/src/main/java/im/bci/jnuit/widgets/Widget.java
Widget.update
public void update(float delta) { background.update(delta); focusedBackground.update(delta); leftBorder.update(delta); rightBorder.update(delta); topBorder.update(delta); bottomBorder.update(delta); for (Widget child : children) { child.update(delta); ...
java
public void update(float delta) { background.update(delta); focusedBackground.update(delta); leftBorder.update(delta); rightBorder.update(delta); topBorder.update(delta); bottomBorder.update(delta); for (Widget child : children) { child.update(delta); ...
[ "public", "void", "update", "(", "float", "delta", ")", "{", "background", ".", "update", "(", "delta", ")", ";", "focusedBackground", ".", "update", "(", "delta", ")", ";", "leftBorder", ".", "update", "(", "delta", ")", ";", "rightBorder", ".", "update...
update widget state @param delta time elapsed in seconds
[ "update", "widget", "state" ]
191f19b55a17451d0f277c151c7e9b4427a12415
https://github.com/devnewton/jnuit/blob/191f19b55a17451d0f277c151c7e9b4427a12415/core/src/main/java/im/bci/jnuit/widgets/Widget.java#L403-L413
148,387
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.attachments
public Collection<Attachment> attachments(AttachmentFilter filter) { return get(Attachment.class, (filter != null) ? filter : new AttachmentFilter()); }
java
public Collection<Attachment> attachments(AttachmentFilter filter) { return get(Attachment.class, (filter != null) ? filter : new AttachmentFilter()); }
[ "public", "Collection", "<", "Attachment", ">", "attachments", "(", "AttachmentFilter", "filter", ")", "{", "return", "get", "(", "Attachment", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "AttachmentFilter", "(", ")", ")...
Get attachments filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "attachments", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L57-L59
148,388
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.notes
public Collection<Note> notes(NoteFilter filter) { return get(Note.class, (filter != null) ? filter : new NoteFilter()); }
java
public Collection<Note> notes(NoteFilter filter) { return get(Note.class, (filter != null) ? filter : new NoteFilter()); }
[ "public", "Collection", "<", "Note", ">", "notes", "(", "NoteFilter", "filter", ")", "{", "return", "get", "(", "Note", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "NoteFilter", "(", ")", ")", ";", "}" ]
Get notes filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "notes", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L67-L69
148,389
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.links
public Collection<Link> links(LinkFilter filter) { return get(Link.class, (filter != null) ? filter : new LinkFilter()); }
java
public Collection<Link> links(LinkFilter filter) { return get(Link.class, (filter != null) ? filter : new LinkFilter()); }
[ "public", "Collection", "<", "Link", ">", "links", "(", "LinkFilter", "filter", ")", "{", "return", "get", "(", "Link", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "LinkFilter", "(", ")", ")", ";", "}" ]
Get links filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "links", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L77-L79
148,390
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.effortRecords
public Collection<Effort> effortRecords(EffortFilter filter) { return get(Effort.class, (filter != null) ? filter : new EffortFilter()); }
java
public Collection<Effort> effortRecords(EffortFilter filter) { return get(Effort.class, (filter != null) ? filter : new EffortFilter()); }
[ "public", "Collection", "<", "Effort", ">", "effortRecords", "(", "EffortFilter", "filter", ")", "{", "return", "get", "(", "Effort", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "EffortFilter", "(", ")", ")", ";", "}...
Get effort records filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "effort", "records", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L88-L90
148,391
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.baseAssets
public Collection<BaseAsset> baseAssets(BaseAssetFilter filter) { return get(BaseAsset.class, (filter != null) ? filter : new BaseAssetFilter()); }
java
public Collection<BaseAsset> baseAssets(BaseAssetFilter filter) { return get(BaseAsset.class, (filter != null) ? filter : new BaseAssetFilter()); }
[ "public", "Collection", "<", "BaseAsset", ">", "baseAssets", "(", "BaseAssetFilter", "filter", ")", "{", "return", "get", "(", "BaseAsset", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "BaseAssetFilter", "(", ")", ")", ...
Get assets filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "assets", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L98-L100
148,392
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.story
public Collection<Story> story(StoryFilter filter) { return get(Story.class, (filter != null) ? filter : new StoryFilter()); }
java
public Collection<Story> story(StoryFilter filter) { return get(Story.class, (filter != null) ? filter : new StoryFilter()); }
[ "public", "Collection", "<", "Story", ">", "story", "(", "StoryFilter", "filter", ")", "{", "return", "get", "(", "Story", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "StoryFilter", "(", ")", ")", ";", "}" ]
Get stories filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "stories", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L108-L110
148,393
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.epics
public Collection<Epic> epics(EpicFilter filter) { return get(Epic.class, (filter != null) ? filter : new EpicFilter()); }
java
public Collection<Epic> epics(EpicFilter filter) { return get(Epic.class, (filter != null) ? filter : new EpicFilter()); }
[ "public", "Collection", "<", "Epic", ">", "epics", "(", "EpicFilter", "filter", ")", "{", "return", "get", "(", "Epic", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "EpicFilter", "(", ")", ")", ";", "}" ]
Get Epics filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "Epics", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L118-L120
148,394
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.trackedEpics
public Collection<Epic> trackedEpics(Collection<Project> projects) { return get(Epic.class, new TrackedEpicFilter(projects)); }
java
public Collection<Epic> trackedEpics(Collection<Project> projects) { return get(Epic.class, new TrackedEpicFilter(projects)); }
[ "public", "Collection", "<", "Epic", ">", "trackedEpics", "(", "Collection", "<", "Project", ">", "projects", ")", "{", "return", "get", "(", "Epic", ".", "class", ",", "new", "TrackedEpicFilter", "(", "projects", ")", ")", ";", "}" ]
Get tracked Epics for enlisted Projects.
[ "Get", "tracked", "Epics", "for", "enlisted", "Projects", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L125-L127
148,395
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.defects
public Collection<Defect> defects(DefectFilter filter) { return get(Defect.class, (filter != null) ? filter : new DefectFilter()); }
java
public Collection<Defect> defects(DefectFilter filter) { return get(Defect.class, (filter != null) ? filter : new DefectFilter()); }
[ "public", "Collection", "<", "Defect", ">", "defects", "(", "DefectFilter", "filter", ")", "{", "return", "get", "(", "Defect", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "DefectFilter", "(", ")", ")", ";", "}" ]
Get defects filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "defects", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L135-L137
148,396
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.tasks
public Collection<Task> tasks(TaskFilter filter) { return get(Task.class, (filter != null) ? filter : new TaskFilter()); }
java
public Collection<Task> tasks(TaskFilter filter) { return get(Task.class, (filter != null) ? filter : new TaskFilter()); }
[ "public", "Collection", "<", "Task", ">", "tasks", "(", "TaskFilter", "filter", ")", "{", "return", "get", "(", "Task", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "TaskFilter", "(", ")", ")", ";", "}" ]
Get tasks filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "tasks", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L180-L182
148,397
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.iterations
public Collection<Iteration> iterations(IterationFilter filter) { return get(Iteration.class, (filter != null) ? filter : new IterationFilter()); }
java
public Collection<Iteration> iterations(IterationFilter filter) { return get(Iteration.class, (filter != null) ? filter : new IterationFilter()); }
[ "public", "Collection", "<", "Iteration", ">", "iterations", "(", "IterationFilter", "filter", ")", "{", "return", "get", "(", "Iteration", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "IterationFilter", "(", ")", ")", ...
Get iterations filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "iterations", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L201-L203
148,398
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.projects
public Collection<Project> projects(ProjectFilter filter) { return get(Project.class, (filter != null) ? filter : new ProjectFilter()); }
java
public Collection<Project> projects(ProjectFilter filter) { return get(Project.class, (filter != null) ? filter : new ProjectFilter()); }
[ "public", "Collection", "<", "Project", ">", "projects", "(", "ProjectFilter", "filter", ")", "{", "return", "get", "(", "Project", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "ProjectFilter", "(", ")", ")", ";", "}"...
Get projects filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "projects", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L211-L213
148,399
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceGetter.java
V1InstanceGetter.teams
public Collection<Team> teams(TeamFilter filter) { return get(Team.class, (filter != null) ? filter : new TeamFilter()); }
java
public Collection<Team> teams(TeamFilter filter) { return get(Team.class, (filter != null) ? filter : new TeamFilter()); }
[ "public", "Collection", "<", "Team", ">", "teams", "(", "TeamFilter", "filter", ")", "{", "return", "get", "(", "Team", ".", "class", ",", "(", "filter", "!=", "null", ")", "?", "filter", ":", "new", "TeamFilter", "(", ")", ")", ";", "}" ]
Get teams filtered by the criteria specified in the passed in filter. @param filter Limit the items returned. If null, then all items returned. @return Collection of items as specified in the filter.
[ "Get", "teams", "filtered", "by", "the", "criteria", "specified", "in", "the", "passed", "in", "filter", "." ]
59d35b67c849299631bca45ee94143237eb2ae1a
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceGetter.java#L221-L223