code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
private void collapseAll(Object nil){
vis().setAllExpanded(false);
}
| collapses all networks not already collapsed |
public int iterativeSize(){
IntList p=this;
int size=0;
while (p != null) {
size+=1;
p=p.tail;
}
return size;
}
| Returns the size of this IntList. |
@Nullable @Override public IBinder onBind(Intent intent){
return mediaPlayerBinder;
}
| This method is executed third (3th) returns an IBinder object that defines the programming interface that clients can use to interact with the service |
private void extractOtherEndOfSeededEdge(final Edge edge,final GetAdjacentEntitySeeds operation,final EntitySeed[] reuseableTuple){
reuseableTuple[0]=null;
reuseableTuple[1]=null;
boolean matchSource=!edge.isDirected() || !INCOMING.equals(operation.getIncludeIncomingOutGoing());
boolean matchDestination=!edge.i... | Extracts the vertex at other end of a seeded edge |
public Builder nodeSettings(ClusterNodeSettings clusterNodeSettings){
this.clusterNodeSettings=clusterNodeSettings;
return this;
}
| Sets cluster node settings. |
public Object jjtAccept(PartitionParserVisitor visitor,Object data){
return visitor.visit(this,data);
}
| Accept the visitor. |
public final boolean goNode(Node node){
if (node == currentNode) return false;
ArrayList<Integer> path=node.getPathFromRoot();
while (currentNode != rootNode) goBack();
for ( Integer c : path) goForward(c);
return true;
}
| Go to given node in game tree. |
public static void fill(double[] array,int start,int end,double value){
Arrays.checkStartAndEnd(array.length,start,end);
for (int i=start; i < end; i++) {
array[i]=value;
}
}
| Fills the specified range in the array with the specified element. |
public void testACipher(BungeeCipher cipher) throws Exception {
ByteBuf nativePlain=Unpooled.directBuffer(plainBytes.length);
nativePlain.writeBytes(plainBytes);
ByteBuf nativeCiphered=Unpooled.directBuffer(cipheredBytes.length);
nativeCiphered.writeBytes(cipheredBytes);
ByteBuf out=Unpooled.directBuffer(plai... | Hackish test which can test both native and fallback ciphers using direct buffers. |
public InstructionCounter(){
initComponents();
WindowPropSaver.loadWindowProperties(this);
}
| Creates new form InstructionCounter |
public static Builder prepare(){
return new Builder();
}
| The Method allows to create the new builder. |
public void updateConsistencyGroupPolicy(UpdateCGPolicyParams policyParam){
if (policyParam == null) {
logger.warn("Unable to update policy for CG. The update paramaters are invalid.");
return;
}
if (policyParam.getPolicyParams() == null) {
logger.warn("Unable to update policy for CG. The update param... | Updates the entire consistency group policy. Meaning the link policy for each link will be changed to the same policy. |
FunctionListener(ExpressionContext lookup){
this.lookup=lookup;
}
| Creates a listener that checks if operators and function names in the expression are known by the lookup and have the right number of arguments. |
public TimelineTrack(TimelineTrackBO timelineTrackBO,Sequence sequence){
this.timelineTrackBO=timelineTrackBO;
this.sequence=sequence;
}
| Instantiates a new TimelineTrack object |
public static long toLong(short a,short b,short c,short d){
return ((long)a << (SHORT_SIZE * 3)) | (((long)b & SHORT_MASK) << (SHORT_SIZE * 2)) | (((long)c & SHORT_MASK) << SHORT_SIZE)| ((long)d & SHORT_MASK);
}
| Returns long with 4 given shorts in it. |
public TungstenProperties(Map<String,String> map){
properties=new HashMap<String,Object>(map);
}
| Creates a new instance from an existing map. |
private void showFeedback(String message){
if (myHost != null) {
myHost.showFeedback(message);
}
else {
System.out.println(message);
}
}
| Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface. |
protected POInfo initPO(Properties ctx){
POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName());
return poi;
}
| Load Meta Data |
@Deprecated public static String encodeValue(int s[]){
StringBuilder sb=new StringBuilder(String.valueOf(s[0]));
for (int i=1; i < s.length; i++) {
sb.append('+').append(s[i]);
}
return sb.toString();
}
| Encode Value. [0,3,2] -> "0+3+2" Deprecated - Use LabelSet or LabelVector |
public void addTester(final Tester tester){
testers.add(tester);
}
| Add Tester to use for validation. |
@Deprecated public void angularWatchGlobal(String name,AngularObjectWatcher watcher){
angularWatch(name,null,watcher);
}
| Add watcher into angular variable (global scope) |
public CStepIntoHotkeyAction(final JFrame parent,final IFrontEndDebuggerProvider panel){
Preconditions.checkNotNull(panel,"IE01655: Panel argument can not be null");
m_parent=parent;
m_debugPerspectiveModel=panel;
}
| Creates a new action object. |
public void hide(){
LayoutParams lp=(LayoutParams)mContentView.getLayoutParams();
lp.height=0;
mContentView.setLayoutParams(lp);
}
| hide footer when disable pull load more |
private Object readResolve() throws ObjectStreamException {
return INSTANCE;
}
| Imposes the canonicalizing mapping during object de-serialization. |
public boolean isRenderPoints(SimpleSeriesRenderer renderer){
return ((XYSeriesRenderer)renderer).getPointStyle() != PointStyle.POINT;
}
| Returns if the chart should display the points as a certain shape. |
public h4 addElement(String hashcode,Element element){
addElementToRegistry(hashcode,element);
return (this);
}
| Adds an Element to the element. |
public Object runSafely(Catbert.FastStack stack) throws Exception {
return new Integer(stack.getUIMgrSafe().getVideoFrame().getDVDTotalTitles());
}
| Gets the total number of titles in the current DVD content |
public void removeDialog(SIPDialog dialog){
String id=dialog.getDialogId();
String earlyId=dialog.getEarlyDialogId();
if (earlyId != null) {
this.earlyDialogTable.remove(earlyId);
this.dialogTable.remove(earlyId);
}
if (id != null) {
Object old=this.dialogTable.get(id);
if (old == dialog) {
... | Remove the dialog from the dialog table. |
public void cancel(){
cancel=true;
}
| Call this method to prevent this event from bubbling to this widget's parent, true or undefined to bubble. |
private void defineSeparators(UIDefaults d){
String c=PAINTER_PREFIX + "SeparatorPainter";
d.put("Separator.contentMargins",new InsetsUIResource(0,0,0,0));
d.put("Separator[Enabled].backgroundPainter",new LazyPainter(c,SeparatorPainter.Which.BACKGROUND_ENABLED));
}
| Initialize the separator settings. |
private void initializeRawSourceCodeMap(String rawSource){
rawSourceCodeWithLine=new LinkedHashMap<>();
int lineNumber=1;
StringReader sr=new StringReader(rawSource);
BufferedReader br=new BufferedReader(sr);
String line;
try {
while ((line=br.readLine()) != null) {
if (StringUtils.isNotBlank(line... | Initialisation of a local map that handles each source code line, keyed by the line number |
public boolean isSpdy(){
return spdyConnection != null;
}
| Returns true if this is a SPDY connection. Such connections can be used in multiple HTTP requests simultaneously. |
public void reloadComponents(){
initOmniboxPosition();
}
| Init reloadable stuff |
public static double calculateRowTotal(Values2D data,int row,int[] validCols){
ParamChecks.nullNotPermitted(data,"data");
double total=0.0;
int colCount=data.getColumnCount();
for (int v=0; v < validCols.length; v++) {
int col=validCols[v];
if (col < colCount) {
Number n=data.getValue(row,col);
... | Returns the total of the values in one row of the supplied data table by taking only the column numbers in the array into account. |
public Map<Feature,Point3d> adjustModel2(){
Map<Feature,Point3d> map=new HashMap<>();
Matrix p=new Matrix(3,1);
Matrix r=R.inverse().times(1 / scaleFactor);
for ( Entry<Feature,Point3d> e : model2.getPointMap().entrySet()) {
p.set(0,0,e.getValue().x);
p.set(1,0,e.getValue().y);
p.set(2,0,e.getValue... | Translates the points in model 2 into the first model's coordinate frame. |
private void refreshStateFormat2Collections(){
for ( String coll : collectionWatches.keySet()) {
new StateWatcher(coll).refreshAndWatch();
}
}
| Refresh state format2 collections. |
public boolean isNoCache(){
return noCache;
}
| If components have sizes or positions linked to the bounds of the parent in some way (as for instance the <code>"%"</code> unit has) the cache must be turned off for the panel. If components does not get the correct or expected size or position try to set this property to <code>true</code>. |
public float distanceSquared(Vector3f v){
double dx=x - v.x;
double dy=y - v.y;
double dz=z - v.z;
return (float)(dx * dx + dy * dy + dz * dz);
}
| <code>distanceSquared</code> calculates the distance squared between this vector and vector v. |
public boolean isHorizontal(){
return (orientation & HORIZ_BIT) != 0;
}
| Are lines horizontal? This will return true for horizontal, left-to-right writing systems such as Roman. |
public boolean supportsGroupByBeyondSelect() throws SQLException {
return false;
}
| Can a "GROUP BY" clause add columns not in the SELECT provided it specifies all the columns in the SELECT? |
public static int highestOneBit(int i){
i|=(i >> 1);
i|=(i >> 2);
i|=(i >> 4);
i|=(i >> 8);
i|=(i >> 16);
return i - (i >>> 1);
}
| Determines the highest (leftmost) bit of the specified integer that is 1 and returns the bit mask value for that bit. This is also referred to as the Most Significant 1 Bit. Returns zero if the specified integer is zero. |
public static <K,V>Map<K,V> collectEntries(Iterable<?> self,Map<K,V> collector){
return collectEntries(self.iterator(),collector);
}
| A variant of collectEntries for Iterables using the identity closure as the transform and a supplied map as the destination of transformed entries. |
private RemoteClass(BatchEnvironment env,ClassDefinition implClassDef){
this.env=env;
this.implClassDef=implClassDef;
}
| Create a RemoteClass instance for the given class. The resulting object is not yet initialized. |
@Override public void show(float translationX,float translationY){
setTranslation(translationX,translationY);
if (getVisibility() != View.VISIBLE) {
float pivotX=getPivotX() + translationX;
float pivotY=getPivotY() + translationY;
ScaleAnimation anim;
if (pivotX == 0 || pivotY == 0) {
anim=new... | Shows the FAB and sets the FAB's translation. |
@Deprecated public void authenticateToSharedNotebook(String shareKey,OnClientCallback<AuthenticationResult> callback){
AsyncReflector.execute(mClient,callback,"authenticateToSharedNotebook",mAuthenticationToken,shareKey);
}
| Asynchronous wrapper. |
private void updateProgress(int progress){
if (myHost != null && progress != previousProgress) {
myHost.updateProgress(progress);
}
else {
System.out.println(String.valueOf(progress) + "%");
}
previousProgress=progress;
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
protected RegionAttributes createRegionAttributesForPR(int redundancy,int localMaxMem){
AttributesFactory attr=new AttributesFactory();
PartitionAttributesFactory paf=new PartitionAttributesFactory();
PartitionAttributes prAttr=paf.setRedundantCopies(redundancy).setLocalMaxMemory(localMaxMem).setTotalNumBuckets(t... | This private methods sets the passed attributes and returns RegionAttribute object, which is used in create region |
public WriteBuffer putInt(int index,int value){
buff.putInt(index,value);
return this;
}
| Update an integer at the given index. |
@Override protected Template createValue(String valueStr){
return Template.create(valueStr);
}
| Creates a template from its string representation |
static int interpretType(String typeName){
if ("unset".equals(typeName)) {
return TYPE_UNSET;
}
else if ("boolean".equals(typeName)) {
return TYPE_BOOLEAN;
}
else if ("byte".equals(typeName)) {
return TYPE_BYTE;
}
else if ("short".equals(typeName)) {
return TYPE_SHORT;
}
else if ("... | Converts a string to an internal type constant. |
public <K,V>JavaPairRDD<T,Option<V>> outerJoinGeodeRegion(String regionPath,Function<T,K> func,GeodeConnectionConf connConf){
GeodeOuterJoinRDD<T,K,V> rdd=rddf.outerJoinGeodeRegion(regionPath,func,connConf);
ClassTag<T> kt=fakeClassTag();
ClassTag<Option<V>> vt=fakeClassTag();
return new JavaPairRDD<>(rdd,kt,vt... | Perform a left outer join of this RDD<T> and the Geode `Region<K, V>`. The join key from RDD element is generated by `func(T) => K`, and the key from region is just the key of the key/value pair. For each element (t) in this RDD, the resulting RDD will either contain all pairs (t, Some(v)) for v in the Geode regi... |
public MaxPQ(Comparator<Key> comparator){
this(1,comparator);
}
| Initializes an empty priority queue using the given comparator. |
static <E>ImmutableList<E> asImmutableList(Object[] elements){
return asImmutableList(elements,elements.length);
}
| Views the array as an immutable list. Does not check for nulls; does not copy. <p>The array must be internally created. |
public void disable() throws IOException {
if (!isOptOut()) {
configuration.getCategory(Configuration.CATEGORY_GENERAL).get("opt-out").set("true");
configuration.save();
}
FMLCommonHandler.instance().bus().unregister(this);
}
| Disables metrics for the server by setting "opt-out" to true in the config file and canceling the metrics task. |
public AnnotationVisitor visitTypeAnnotation(int typeRef,TypePath typePath,String desc,boolean visible){
if (fv != null) {
return fv.visitTypeAnnotation(typeRef,typePath,desc,visible);
}
return null;
}
| Visits an annotation on the type of the field. |
private boolean isParsableToDouble(String i){
return i.matches("\\d+\\.\\d+");
}
| quick method to test for a string, in a method to shield the exception from the caller. |
protected OMGraphicList generateGraphics(){
OMGraphicList omgraphics=new OMGraphicList();
OMPoint circ;
OMText text;
int circle_r=2;
int circle_h=5;
for (int i=0, j=0; i < llData.length; i+=2, j++) {
OMGraphicList group=new OMGraphicList(2);
circ=new OMPoint(llData[i],llData[i + 1],circle_r);
ci... | Create the graphics. |
@Override protected void updateIfNeeded(DrawContext dc){
long webViewWindowPtr=WindowsWebView.this.webViewWindowPtr;
if (webViewWindowPtr == 0) return;
Texture texture=this.getTextureFromCache(dc);
if (texture == null) return;
long newUpdateTime=WindowsWebViewJNI.getUpdateTime(webViewWindowPtr);
if (new... | Update the texture if the native WebView window has changed. |
public static void main(final String[] args){
DOMTestCase.doMain(ownerDocument01.class,args);
}
| Runs this test from the command line. |
public SearchContextAggregations(AggregatorFactories factories){
this.factories=factories;
}
| Creates a new aggregation context with the parsed aggregator factories |
public RepeatedFieldBuilder<MType,BType,IType> addMessage(MType message){
if (message == null) {
throw new NullPointerException();
}
ensureMutableMessageList();
messages.add(message);
if (builders != null) {
builders.add(null);
}
onChanged();
incrementModCounts();
return this;
}
| Appends the specified element to the end of this list. |
public void init() throws ServletException {
}
| Initialization of the servlet. <br> |
public Scanner skip(String pattern){
return skip(patternCache.forName(pattern));
}
| Skips input that matches a pattern constructed from the specified string. <p> An invocation of this method of the form <tt>skip(pattern)</tt> behaves in exactly the same way as the invocation <tt>skip(Pattern.compile(pattern))</tt>. |
@Override public int hashCode(){
return lowerBound.hashCode() * 31 + upperBound.hashCode();
}
| Returns a hash code for this range. |
public boolean canWrite(){
return getWrappedPath().canWrite();
}
| Tests if the file can be written. |
@SuppressWarnings({"rawtypes","unchecked"}) protected void affectEntitiesWithin(){
float diameter=explosionSize * 2.0F;
int i=MathHelper.floor_double(explosionX - (double)explosionSize - 1.0D);
int j=MathHelper.floor_double(explosionX + (double)explosionSize + 1.0D);
int k=MathHelper.floor_double(explosionY - (... | Affects all entities within the explosion, causing damage if flagged to do so |
private void handleMessageReceived(Intent intent){
if (BuildConfig.DEBUG) Log.v("SMSReceiver: Intercept Message");
Bundle bundle=intent.getExtras();
if (bundle != null) {
}
}
| Handle receiving an arbitrary message (potentially coming from a 3rd party app) |
public LifecycleSupport(Lifecycle lifecycle){
super();
this.lifecycle=lifecycle;
}
| Construct a new LifecycleSupport object associated with the specified Lifecycle component. |
public Offset diff(Address addr2){
return null;
}
| Compute the difference between two <code>Address</code>es and return the result. |
public static String urlEncode(String s){
try {
return URLEncoder.encode(s,"UTF-8");
}
catch ( Exception e) {
throw DbException.convert(e);
}
}
| Encode the string as an URL. |
private void updateProgress(int progress){
if (myHost != null && progress != previousProgress) {
myHost.updateProgress(progress);
}
previousProgress=progress;
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
public static void main(String[] args) throws Exception {
run("put",CacheAtomicityMode.ATOMIC);
run("get",CacheAtomicityMode.ATOMIC);
run("put",CacheAtomicityMode.TRANSACTIONAL);
run("get",CacheAtomicityMode.TRANSACTIONAL);
}
| Run benchmarks. |
public Info(){
sizes=new HashMap<Integer,Double>();
}
| Initializes a new instance for storing several variables. |
void stopNow(){
this.stop=true;
try {
socket.close();
}
catch ( IOException e) {
}
}
| Close the connection now. |
public BloomFilter(final int n,final int d){
this.d=d;
final long wantedNumberOfBits=(long)Math.ceil(n * (d / NATURAL_LOG_OF_2));
if (wantedNumberOfBits > MAX_BITS) throw new IllegalArgumentException("The wanted number of bits (" + wantedNumberOfBits + ") is larger than "+ MAX_BITS);
bits=new long[(int)((want... | Creates a new Bloom filter with given number of hash functions and expected number of elements. |
public void addVolumesToConsistencyGroup(StorageSystem storage,final BlockConsistencyGroup consistencyGroup,final List<Volume> volumes,final String replicationGroupName,final TaskCompleter taskCompleter) throws DeviceControllerException {
if (isSRDFProtected(volumes.get(0))) {
return;
}
if (consistencyGroup =... | This method is for adding volumes to a consistency group. Be aware that this method is going to be invoked by the SmisCreateVolumeJob, after there is a successful completion of the volume create. |
@Override protected void onPreviewNativeEvent(NativePreviewEvent event){
super.onPreviewNativeEvent(event);
if (event.getTypeInt() == Event.ONKEYDOWN && event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ESCAPE) {
hide();
}
}
| pressing ESC closes the dialogbox |
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:40.008 -0500",hash_original_method="CE81298360999BF52006386DE7E36DBD",hash_generated_method="3C7B22114503E6EA0B68A72F303C2BF0") private Multiplication(){
}
| Just to denote that this class can't be instantiated. |
@Override public void run(){
amIActive=true;
String[] shapefiles=new String[2];
String outputFile;
int progress;
int i, n, FID;
int oneHundredthTotal;
int numRecs;
ShapeType shapeType;
ShapeType outputShapeType=ShapeType.POLYGON;
GeometryFactory factory=new GeometryFactory();
com.vividsolutions.jt... | Used to execute this plugin tool. |
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:10.271 -0500",hash_original_method="D45AACC1784EFE96257BB7DED0205226",hash_generated_method="7AF95849154BC919DB73EF5F0602B568") public static final int primaryOrder(int ord... | Obtains the primary order of the specified collation element, i.e. the first 16 bits. This value is unsigned. |
public Element next(){
return theNext;
}
| Return the next element in an element stack or queue. |
public static RIcon f(final String name){
return new RIcon(hu.sllauncher.gui.icon.LIcons.ResUtil.f_(name));
}
| Returns the fugue image icon resource specified by its name. |
public static void rollbackTo(@Nullable PsiBuilder.Marker marker){
if (marker != null) {
marker.rollbackTo();
}
}
| Rolls the lexer back to position before given marker - if not null. |
public QName(String qname,PrefixResolver resolver,boolean validate){
String prefix=null;
_namespaceURI=null;
int indexOfNSSep=qname.indexOf(':');
if (indexOfNSSep > 0) {
prefix=qname.substring(0,indexOfNSSep);
if (prefix.equals("xml")) {
_namespaceURI=S_XMLNAMESPACEURI;
}
else {
_namesp... | Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved. |
public static float toDIPFromPixel(float value){
return value / DisplayMetricsHolder.getDisplayMetrics().density;
}
| Convert from PX to DP |
private AppliedMigration createAppliedMigration(int version,String description){
return new AppliedMigration(version,version,MigrationVersion.fromVersion(Integer.toString(version)),description,MigrationType.CQL,"x",null,new Date(),"sa",123,true);
}
| Creates a new applied migration with this version. |
private CharSequence findConstraintViolation(){
if (Build.VERSION.SDK_INT < mMinSdkVersion) {
return mContext.getString(R.string.requires_android_api_level,mMinSdkVersion);
}
if (mCustomConstraintSummary != null) {
return mCustomConstraintSummary;
}
if (!isEnabledForAdmin(getCurrentAdmin())) {
ret... | Check for constraint violations. |
@Transactional(readOnly=true) public List<T> retrieveAll(){
String queryString=String.format("select o from %s o",unqualifiedModelClassName);
Query query=this.entityManager.createQuery(queryString);
@SuppressWarnings("unchecked") List<T> results=query.getResultList();
return results;
}
| Returns a List of all the instances of T in the database. |
void saveEntities(DataOutputStream out) throws IOException {
int num=0;
for (Enumeration<Entity> e=entityHash.elements(); e.hasMoreElements(); ) {
Entity ent=e.nextElement();
if (ent.isGeneral()) {
num++;
}
}
out.writeShort((short)num);
for (Enumeration<Entity> e=entityHash.elements(); e.has... | Save an entity to a stream. |
public Task<FileSnapshotRestRep> updateShareACL(URI id,String shareName,SnapshotCifsShareACLUpdateParams param){
UriBuilder builder=client.uriBuilder(getShareACLsUrl());
URI targetUri=builder.build(id,shareName);
return putTaskURI(param,targetUri);
}
| Update snapshot share ACL API Call: <tt>PUT /file/snapshots/{id}/shares/{shareName}/acl</tt> |
public void runko(){
final String portStr=System.getProperty("rmi.port",null);
final int port=portStr != null ? Integer.parseInt(portStr) : basePort;
final File[] conf=findConfigurationFilesKo();
if ((conf == null) || (conf.length == 0)) throw new RuntimeException("No configuration found");
String errStr;
... | Find all *ko.property files and test them. (see findConfigurationFilesKo() and testConfigurationKo()) |
final Node<K,V> findFirst(){
for (Node<K,V> b, n; ; ) {
if ((n=(b=head.node).next) == null) return null;
if (n.value != null) return n;
n.helpDelete(b,n.next);
}
}
| Specialized variant of findNode to get first valid node. |
public Object invoke(String methodName,Class<?>[] paramClasses,Object[] paramValues){
Object result;
result=null;
if (getClassLoader() != null) {
result=invoke(getClassLoader(),methodName,paramClasses,paramValues);
}
return result;
}
| executes the specified method on the current interpreter and returns the result, if any. |
public DefaultHandleTracker(Handle handle){
masterHandle=handle;
multicaster=new HandleMulticaster(handle);
}
| Creates a new instance. |
public ContainerVmBwProvisionerSimple(long bw){
super(bw);
setBwTable(new HashMap<String,Long>());
}
| Instantiates a new bw provisioner simple. |
private void moveTyped(){
final Collection<T> elementsCollection=MembersManager.fetchElements(myMemberInfoCollection);
final Collection<? extends PyElement> references=myManager.getElementsToStoreReferences(elementsCollection);
for ( final PyElement element : references) {
PyClassRefactoringUtil.rememberName... | While types are already checked at runtime, this method could move everything in type-safe manner. |
private void findViews(){
this.etNumber=(EditText)findViewById(R.id.etNumber);
this.optColombian=(RadioButton)findViewById(R.id.optColombian);
this.optExpresso=(RadioButton)findViewById(R.id.optExpresso);
this.optDecaf=(RadioButton)findViewById(R.id.optDecaf);
this.chkCream=(CheckBox)findViewById(R.id.chkCrea... | Find the GUI components at the runtime. |
@Override public String toString(){
return "CUstream[" + "nativePointer=0x" + Long.toHexString(getNativePointer()) + "]";
}
| Returns a String representation of this object. |
protected void updateCapabilitiesFilter(Capabilities filter){
Instances tempInst;
Capabilities filterClass;
if (filter == null) {
m_FilterEditor.setCapabilitiesFilter(new Capabilities(null));
return;
}
if (!ExplorerDefaults.getInitGenericObjectEditorFilter()) tempInst=new Instances(m_Instances,0);
... | updates the capabilities filter of the GOE |
public BeaconAnalysis analyzeFrame(Mat img,Mat gray,ScreenOrientation orientation){
return analyzeFrame(this.redDetector,this.blueDetector,img,gray,orientation);
}
| Analyze the current frame using the selected analysis method |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.