code
stringlengths
10
174k
nl
stringlengths
3
129k
public E first(){ return backingMap.firstKey(); }
Returns the first element in this set.
public static Element addChildElementNSValue(Element element,String childElementName,String childElementValue,Document document,String nameSpaceUrl){ Element newElement=document.createElementNS(nameSpaceUrl,childElementName); newElement.appendChild(document.createTextNode(childElementValue)); element.appendChild(...
Creates a child element with the given namespace supportive name and appends it to the element child node list. Also creates a Text node with the given value and appends it to the new elements child node list.
public void cleanMigrations(List<String> migrationNames) throws VPlexApiException { s_logger.info("Request to clean migrations on VPlex at {}",_baseURI); _migrationMgr.cleanMigrations(migrationNames); }
Cleans the committed migrations with the passed names tearing down the old devices and unclaiming the storage volumes.
private void init_m_Attributes(){ try { m_NumInstances=m_Train.numInstances(); m_NumClasses=m_Train.numClasses(); m_NumAttributes=m_Train.numAttributes(); m_ClassType=m_Train.classAttribute().type(); m_InitFlag=ON; } catch ( Exception e) { e.printStackTrace(); } }
Initializes the m_Attributes of the class.
public WriteMultipleCoilsRequest(){ super(); setFunctionCode(Modbus.WRITE_MULTIPLE_COILS); setDataLength(5); coils=new BitVector(1); }
Constructs a new <tt>WriteMultipleCoilsRequest</tt> instance. <p> A minimal message contains the reference to the first coil as a <tt>short</tt>, the number of coils as a <tt>short</tt>, and not less than one <tt>byte</tt> of coil data.
public EsriPolygonMList(){ super(); }
Construct an EsriPolygonList.
@Override public final R visitArray(AnnotatedArrayType type,P p){ defaultAction(type,p); return super.visitArray(type,p); }
Visits an array type.
public static void logStackTrace(Level level,Throwable throwable,String message){ logger.log(level,message,throwable); }
Logs the stack trace for the given Throwable if logger is initialized else prints the stack trace using System.out.
public static synchronized void close(){ for ( ModbusSlave slave : new ArrayList<ModbusSlave>(slaves.values())) { slave.close(); } }
Closes all slaves and removes them from the running list
public static <C extends Comparable<?>>Builder<C> builder(){ return new Builder<C>(); }
Returns a new builder for an immutable range set.
public void read(BufferedRandomAccessFile raf) throws IOException { int len=raf.readNat(); this.word=new long[len]; for (int i=0; i < len; i++) { this.word[i]=raf.readLong(); } }
Read a bit vector from a file
public List<NamedRelatedResourceRep> listByVcenter(URI vcenterId,URI tenantId){ UriBuilder uriBuilder=client.uriBuilder(PathConstants.DATACENTER_BY_VCENTER); if (tenantId != null) { uriBuilder.queryParam(SearchConstants.TENANT_PARAM,tenantId); } VcenterDataCenterList response=client.getURI(VcenterDataCenter...
Lists the datacenters filtered by the tenants for the given vCenter by ID. <p> API Call: <tt>GET /compute/vcenters/{vcenterId}/vcenter-data-centers?tenant={tenantId}</tt>
public static <T>T coerce(Object value,Class<T> cls){ if (value == null || cls == null || cls.isAssignableFrom(value.getClass())) { return (T)value; } try { return (T)ConvertUtils.convert(value,cls); } catch ( ConversionException|InvalidAttributeException|IllegalArgumentException e) { throw new In...
Convert value to target class.
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; int row, col, x, y; float progress=0; double slope; double z, z2; int i, a; double dist; double gridRes; double diagGridRes; double maxSlope; double flowDir=0; double e0; double af; double ac;...
Used to execute this plugin tool.
public static void restoreOperationContext(OperationContext ctx){ setAuthorizationContext(ctx.authContext); setContextId(ctx.contextId); setTransactionId(ctx.transactionId); }
Restore the OperationContext associated with this thread to the value passed in
public static char base64encode(int d){ d&=0x3f; if (d < 26) return (char)(d + 'A'); else if (d < 52) return (char)(d + 'a' - 26); else if (d < 62) return (char)(d + '0' - 52); else if (d == 62) return '+'; else return '/'; }
Converts the digit to its base64 encoding.
public long nextLong(){ int y; int z; if (mti >= N) { int kk; final int[] mt=this.mt; final int[] mag01=this.mag01; for (kk=0; kk < N - M; kk++) { y=(mt[kk] & UPPER_MASK) | (mt[kk + 1] & LOWER_MASK); mt[kk]=mt[kk + M] ^ (y >>> 1) ^ mag01[y & 0x1]; } for (; kk < N - 1; kk++) { ...
Returns a long drawn uniformly from 0 to n-1. Suffice it to say, n must be greater than 0, or an IllegalArgumentException is raised.
public CFMLTransformerException(SourceCode sc,String message){ super(message); this.sc=sc; }
Hauptkonstruktor, mit CFMLString und message.
public boolean isRotationNeeded(final String data,final File file){ m_date.setTime(System.currentTimeMillis()); if (m_current.equals(m_format.format(m_date))) { return false; } return true; }
Test is a rotation is required. Documentation pending ??
private void writeObject(ObjectOutputStream s) throws IOException { checkInvariants(); if (!sizeIsSticky) trimToSize(); ObjectOutputStream.PutField fields=s.putFields(); fields.put("bits",words); s.writeFields(); }
Save the state of the <tt>BitSet</tt> instance to a stream (i.e., serialize it).
private int makeAckInd(){ if (mMessage == null) { mMessage=new ByteArrayOutputStream(); mPosition=0; } appendOctet(PduHeaders.MESSAGE_TYPE); appendOctet(PduHeaders.MESSAGE_TYPE_ACKNOWLEDGE_IND); if (appendHeader(PduHeaders.TRANSACTION_ID) != PDU_COMPOSE_SUCCESS) { return PDU_COMPOSE_CONTENT_ERROR;...
Make Acknowledge.Ind.
public RefactoringTickProvider(int checkInitialConditionsTicks,int checkFinalConditionsTicks,int createChangeTicks,int initializeChangeTicks){ Assert.isTrue(checkInitialConditionsTicks >= 0 && checkFinalConditionsTicks >= 0 && createChangeTicks >= 0 && initializeChangeTicks >= 0); fValues=new int[4]; fValues[CHEC...
Creates a new refactoring tick provider with the given values
private void updateDebugger(final DebuggerTemplate template){ if (m_addressSpace.isLoaded() && ((m_debugger == null) || !m_debugger.isConnected())) { if (template == null) { m_debugger=null; } else { m_debugger=new TcpDebugger(template,new ProjectTargetSettings(m_addressSpace.getProject())); ...
Takes a debugger template and updates the debugger object of the address space accordingly if possible.
private static boolean sameTree(ExpressionTree expr1,ExpressionTree expr2){ return TreeUtils.skipParens(expr1).toString().equals(TreeUtils.skipParens(expr2).toString()); }
Returns true if two expressions originating from the same scope are identical, i.e. they are syntactically represented in the same way (modulo parentheses) and represent the same value. For example, given an expression (a == b) || a.equals(b) sameTree can be called to determine that the first 'a' and second 'a' refer t...
public AmbiguousImportDescription(IEObjectDescription delegate,String issueCode,EObject context){ super(delegate); this.issueCode=issueCode; this.context=context; elements=Lists.newLinkedList(); originatingImports=Lists.newLinkedList(); }
Wraps an existing description for a type with an ambiguous import error message.
@Override public String toString(){ StringBuffer buf=new StringBuffer(); System.out.println("Type : " + getType()); System.out.println("NumTables : " + getNumTables()); System.out.println("SearchRange : " + getSearchRange()); System.out.println("EntrySelector: " + getEntrySelector()); System.out...
Write the font to a pretty string
public StartRowNotFoundException(){ super(HEADER_ROW_NOT_FOUND); }
Creates an exception indicating that the desired start row was not found in the data set.
public synchronized void start(){ if (isActive()) { MONITOR_LOGGER.logp(Level.FINER,CounterMonitor.class.getName(),"start","the monitor is already active"); return; } for ( ObservedObject o : observedObjects) { final CounterMonitorObservedObject cmo=(CounterMonitorObservedObject)o; cmo.setThresho...
Starts the counter monitor.
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); }
Adds semantic checks to the default deserialization method. This method must have the standard signature for a readObject method, and the body of the method must begin with "s.defaultReadObject();". Other than that, any semantic checks can be specified and do not need to stay the same from version to version. A readObj...
public static String safeForHtml(final String text){ return text.replace("\"","&quot").replace("'","&#39;").replace("<","&lt;").replace(">","&gt;").replace(" ","&nbsp;").replace("\n","<br>").replace("\t","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); }
Prepares a text for HTML rendering, to be included in HTML text.
public TrackView(){ try { car=ImageIO.read(TrackView.class.getResource("images/beetle_red.gif")); track=ImageIO.read(TrackView.class.getResource("images/track.jpg")); } catch ( Exception e) { System.out.println("Problem loading track/car images: " + e); } carPosition=new Point(START_POS.x,START_PO...
Creates a new instance of TrackView
boolean isGmsView(){ return this.kind == VIEW; }
Indicate if this is a view event
private void printSpace(int n) throws IOException { final java.io.Writer writer=m_writer; for (int i=0; i < n; i++) { writer.write(' '); } }
Prints <var>n</var> spaces.
public static void shrink(GeoTimeSerie gts){ if (0 == gts.values) { gts.ticks=null; gts.locations=null; gts.elevations=null; gts.longValues=null; gts.doubleValues=null; gts.stringValues=null; gts.booleanValues=null; return; } if (null != gts.ticks && gts.ticks.length > gts.values) ...
Shrink the internal arrays of this GTS so their length matches the number of values.
public boolean equals(Object obj){ if (this == obj) { return true; } if (obj instanceof ECFieldFp) { return (this.p.equals(((ECFieldFp)obj).p)); } return false; }
Returns whether the specified object is equal to this finite field.
public Builder keyStore(KeyStore keyStore){ Validate.notNull(keyStore,"keyStore"); this.keyStore=keyStore; return this; }
Set key store
public StringConverter(Object defaultValue){ super(defaultValue); }
Construct a <b>java.lang.String</b> <i>Converter</i> that returns a default value if an error occurs.
public GlowOfflinePlayer(GlowServer server,String name){ checkNotNull(server,"server must not be null"); checkNotNull(name,"name cannot be null"); this.server=server; profile=PlayerProfile.getProfile(name); loadData(); }
Create a new offline player for the given UUID. If possible, the player's data (including name) will be loaded based on the UUID.
private static Object fixValue(String type,Object value){ if (value == null) { return null; } TypeSignature signature=parseTypeSignature(type); if (signature.getBase().equals(ARRAY)) { List<Object> fixedValue=new ArrayList<Object>(); for ( Object object : List.class.cast(value)) { fixedValu...
Force values coming from Jackson to have the expected object type.
public static JSONObject JsonReadOnly(String url,String bssid,HeaderPair... headers){ return JsonReadOnly(url,bssid,SERIAL_NORMAL_TASK,headers); }
Post read response request to target url, don't send request
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.
boolean isEntranceTransitionEnabled(){ return mEntranceTransitionEnabled; }
Return true if entrance transition is enabled and not started yet. Entrance transition can only be executed once and isEntranceTransitionEnabled() is reset to false after entrance transition is started.
public static RegressionDataSet readR(int numeric_target_column,Path path,char delimiter,int lines_to_skip,char comment,Set<Integer> cat_cols) throws IOException { BufferedReader br=Files.newBufferedReader(path,Charset.defaultCharset()); RegressionDataSet ret=readR(numeric_target_column,br,delimiter,lines_to_skip,c...
Reads in a CSV dataset as a regression dataset.
@SuppressWarnings("static-access") public boolean isCustomized(){ if (m_customizationLevel == null) { getElementID(); m_customizationLevel=new Integer(s_parameters.CUSTOMNONE); if (m_parent.isCustomPrefix(m_name)) { m_customizationLevel=new Integer(s_parameters.CUSTOMPREFIXED); } else { i...
Whether or not this column is a customization
public double[][] generateCovariantGaussians(int length,int dimensions,double[] means,double[][] componentDependencies){ double[][] data=new double[length][dimensions]; for (int t=0; t < length; t++) { double[] x=generateNormalData(dimensions,0,1); for (int d=0; d < dimensions; d++) { data[t][d]=means...
Generate a set of covariant gaussians, with the given means and covariances.
public void ensureAtLeast(double space,RectangleEdge edge){ if (edge == RectangleEdge.TOP) { if (this.top < space) { this.top=space; } } else if (edge == RectangleEdge.BOTTOM) { if (this.bottom < space) { this.bottom=space; } } else if (edge == RectangleEdge.LEFT) { if (this....
Ensures there is a minimum amount of space at the edge corresponding to the specified axis location.
private void noteDuplicate(int pos1,int pos2){ Name n=names[pos1]; assert (n == names[pos2]); assert (originalNames[pos1] != null); assert (originalNames[pos2] == null || originalNames[pos2] == n); if (dups == null) { dups=new ArrayList<>(); } dups.add(n); }
We have just overwritten the name at pos1 with the name at pos2. This means that there are two copies of the name, which we will have to fix later.
private void validateJdbcConnection(JdbcConnection jdbcConnection){ Assert.notNull(jdbcConnection,"JDBC connection is required"); validateUrl(jdbcConnection.getUrl()); Assert.notNull(jdbcConnection.getUsername(),"JDBC connection user name is required"); Assert.notNull(jdbcConnection.getPassword(),"JDBC connecti...
Validates parameters specified in the given connection. This method does not validate whether the connection can be established.
@Override public boolean isEnableForMessageContainer(MessageContainer<?> invoker){ return true; }
By default, the pop up menu item button is enabled and it is enable for all invokers.
private Session accept(ProcessListener pl,IProgress waitReporter) throws IOException { int timeout=getPreference(PREF_ACCEPT_TIMEOUT); int totalTimeout=timeout; int iterateOn=100; PlayerSession session=null; try { m_serverSocket.setSoTimeout(iterateOn); Socket s=null; while (s == null && !airAppTe...
A private variation on <code>accept()</code> that also has an argument indicating that the process we are waiting for has terminated.
public void addPatchResource(Resource resource){ resources.add(resource); }
Adds the given HTML patch resource such that it will apply to the Guacamole UI. The patch will be applied by the JavaScript side of the web application in the order that addPatchResource() is invoked.
public T caseStereoTypeTarget(StereoTypeTarget object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Stereo Type Target</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
private void step3(){ for (int i=2; i <= DFSCounter; i++) { BasicBlock block=vertex[i]; if (getDom(block) != vertex[getSemi(block)]) { LTDominatorInfo.getInfo(block,ir).setDominator(getDom(getDom(block))); } } }
This final step sets the final dominator information.
public Builder clearCenterCrop(){ centerCrop=false; return this; }
Clear the center crop transformation flag, if set.
public FastShortBuffer append(short element){ if ((currentBuffer == null) || (offset == currentBuffer.length)) { needNewBuffer(size + 1); } currentBuffer[offset]=element; offset++; size++; return this; }
Appends single <code>short</code> to buffer.
public void releaseService(BeanContextChild child,Object requestor,Object service){ if (child == null) throw new NullPointerException("child"); if (requestor == null) throw new NullPointerException("requestor"); if (service == null) throw new NullPointerException("service"); BCSSChild bcsc; synchronized (...
release a service
public LvmHelper(ProcessHelper processHelper){ this.processHelper=processHelper; }
Creates a new LVM helper.
public RegionNotFoundException(String msg,Throwable cause){ super(msg,cause); }
Constructs an instance of RegionNotFoundException
public PrincipalId addSolutionUser(String tenantName,String userName,SolutionDetail detail) throws Exception { return getService().addSolutionUser(tenantName,userName,detail,this.getServiceContext()); }
Adds a service principal to the tenant's system domain under current ldu
public void broadcastShieldFrame(ShieldFrame frame,boolean waitIfInACallback,OneSheeldDevice exceptionArray[]){ if (frame == null) throw new NullPointerException("The passed frame is null, have you checked its validity?"); Log.i("Manager: Broadcasting frame to all connected devices."); ArrayList<OneSheeldDevice...
Broadcast a shield frame to all connected devices on their 0,1 pins except the ones provided.
@Override public String toString(){ return "AbstractUser [username=" + getUsername() + ", roles="+ roles+ "]"; }
A convenient toString method
protected DateTimeConverter makeConverter(Object defaultValue){ return new DateConverter(defaultValue); }
Create the Converter with a default value.
@Override public void run(){ amIActive=true; String inputFilesString=null; String arcHeaderFile=null; String arcDataFile=null; String whiteboxHeaderFile=null; String whiteboxDataFile=null; WhiteboxRaster output=null; int i=0; String[] imageFiles; int numImages=0; double noData=-32768; InputStrea...
Used to execute this plugin tool.
public double weightedPrecision(){ double[] classCounts=new double[m_NumClasses]; double classCountSum=0; for (int i=0; i < m_NumClasses; i++) { for (int j=0; j < m_NumClasses; j++) { classCounts[i]+=m_ConfusionMatrix[i][j]; } classCountSum+=classCounts[i]; } double precisionTotal=0; for (...
Calculates the weighted (by class size) precision.
public void callGCTraceRemoved(GCTrace gcTrace){ ArgumentChecking.notNull(gcTrace,"gcTrace"); for ( GCTraceSetListener listener : listeners()) { listener.gcTraceRemoved(gcTrace); } }
It calls the <tt>gcTraceRemoved()</tt> method on all the listeners in the listener set.
public static BinaryCode load(BinaryMember bf,BinaryConstantPool cpool,Environment env){ byte code[]=bf.getAttribute(idCode); return (code != null) ? new BinaryCode(code,cpool,env) : null; }
Load a binary class
public School subject(String subject){ this.subject=subject; return this; }
Sets the subject of the field of study.
static public long unpackLong(DataInput in) throws IOException { long ret=0; byte v; do { v=in.readByte(); ret=(ret << 7) | (v & 0x7F); } while ((v & 0x80) == 0); return ret; }
Unpack long value from the input stream.
private static void updateFolderAudit(String sessionID,String entidad,Map changedFields,AuthenticationUser user,AxSf axsfOld,Integer bookID,ScrOfic scrofic,Session session) throws Exception { Date currentDate=new Date(DBEntityDAOFactory.getCurrentDBEntityDAO().getDBServerDate(entidad).getTime()); if (!changedFields...
Metodo que registra la auditoria cuando modificamos un registro
public static void substituteSystemProperties(Node node){ substituteProperties(node,null); }
Replaces ${system.property[:default value]} references in all attributes and text nodes of supplied node. If the system property is not defined and no default value is provided, a runtime exception is thrown.
public static GeoTimeSerie singleExponentialSmoothing(GeoTimeSerie gts,double alpha) throws WarpScriptException { if (alpha <= 0.0D || alpha >= 1.0D) { throw new WarpScriptException("The smoothing factor must be in 0 < alpha < 1."); } if (TYPE.LONG != gts.type && TYPE.DOUBLE != gts.type) { throw new WarpS...
Perform exponential smoothing on a numeric GTS.
@Override public void applyTo(ContactResource.Builder builder){ super.applyTo(builder); Map<Type,PostalInfo> postalInfosAsMap=getPostalInfosAsMap(); if (postalInfosAsMap.containsKey(Type.INTERNATIONALIZED)) { builder.overlayInternationalizedPostalInfo(postalInfosAsMap.get(Type.INTERNATIONALIZED)); if (pos...
The spec requires the following behaviors: <ul> <li>If you update part of a postal info, the fields that you didn't update are unchanged. <li>If you update one postal info but not the other, the other is deleted. </ul> Therefore, if you want to preserve one postal info and update another you need to send the update and...
public RegisterSpecList withExpandedRegisters(int base,boolean duplicateFirst,BitSet compatRegs){ int sz=size(); if (sz == 0) { return this; } RegisterSpecList result=new RegisterSpecList(sz); for (int i=0; i < sz; i++) { RegisterSpec one=(RegisterSpec)get0(i); boolean replace=(compatRegs == null)...
Returns an instance that is identical to this one, except that all incompatible register numbers are renumbered sequentially from the given base, with the first number duplicated if indicated. If a null BitSet is given, it indicates all registers are compatible.
private MD5Legacy(String input){ this(input.getBytes()); }
Construct a digestifier for the given string.
public boolean isNoSorting(){ return getChildElementNames().length == 0; }
If the dependencies should be unsorted
public void loadHeadersFromResource(int resid,List<Header> target){ XmlResourceParser parser=null; try { parser=getResources().getXml(resid); AttributeSet attrs=Xml.asAttributeSet(parser); int type; while ((type=parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) { }...
Parse the given XML file as a header description, adding each parsed Header into the target list.
public void warning(SAXParseException spe) throws SAXException { out.println("Warning: " + getParseExceptionInfo(spe)); }
Method warning.
public void visitFormalTypeParameter(String name){ }
Visits a formal type parameter.
protected void preorder(TreeNode<E> root){ if (root == null) return; Stack<TreeNode<E>> stack=new Stack<>(); stack.push(root); while (!stack.empty()) { TreeNode<E> node=stack.pop(); System.out.print(node.element + " "); if (node.right != null) { stack.push(node.right); } if (node.lef...
Preorder traversal from a subtree without using recursion
static int commandArguments(char type){ switch (type) { case CMD_PLACEHOLDER: case 'z': case 'Z': return 0; case 'm': case 'M': case 'l': case 'L': case 't': case 'T': return 2; case 'h': case 'H': case 'v': case 'V': return 1; case 'c': case 'C': return 6; case 's': case 'S': case 'q': case 'Q': return 4; case '...
Return the number of arguments expected for a specific command
public static void handleFooterView(DrawerBuilder drawer,View.OnClickListener onClickListener){ Context ctx=drawer.mSliderLayout.getContext(); if (drawer.mStickyDrawerItems != null && drawer.mStickyDrawerItems.size() > 0) { drawer.mStickyFooterView=DrawerUtils.buildStickyDrawerItemFooter(ctx,drawer,onClickListe...
helper method to handle the footerView
public boolean isClosed(){ makeActive(); return database == null || database.isClosed(); }
Checks if the Graph has been closed.
@Nullable public ClusterNode mapPartitionToNode(@Nullable String cacheName,int partId,AffinityTopologyVersion topVer) throws IgniteCheckedException { AffinityInfo affInfo=affinityCache(cacheName,topVer); return affInfo != null ? F.first(affInfo.assignment().get(partId)) : null; }
Maps partition to a node.
private void proceedSkipTestUsingIntBufferingType(CipherInputStream ciIn2,int blockNum) throws IOException { int index=blockNum * SAVE; int totalRead=0; for (int j=0; j < SAVE; j++, index++) { int buffer0=ciIn2.read(); if (buffer0 != -1) { outputText[index]=(byte)buffer0; totalRead++; } e...
Implements int buffering type test case of the CICO SKIP test.
private int cleanUp(){ String killTask=CommandBuilder.stopTask(fileName); int exitCode=ProcessUtils.executeCommand(killTask,null); if (exitCode != 0) { exitCode=linuxKill(getDetailsFile()); } return exitCode; }
stop docker-compose force remove docker images
public void testUnsizedDoublesCount(){ LongAdder counter=new LongAdder(); ThreadLocalRandom r=ThreadLocalRandom.current(); long size=100; r.doubles().limit(size).parallel().forEach(null); assertEquals(counter.sum(),size); }
A parallel unsized stream of doubles generates at least 100 values
private CElementSearcher(){ }
You are not supposed to instantiate this class.
public Swagger2MarkupConfigBuilder withTagOrdering(Comparator<String> tagOrdering){ Validate.notNull(tagOrdering,"%s must not be null","tagOrdering"); config.tagOrderBy=OrderBy.CUSTOM; config.tagOrdering=tagOrdering; return this; }
Specifies a custom comparator function to order tags.
public boolean deleteContact(String id){ return impl.deleteContact(id); }
removed a contact from the device contacts book
public Task<FileSnapshotRestRep> share(URI id,FileSystemShareParam input){ return postTask(input,getSharesUrl(),id); }
Begins sharing a file snapshot by ID. <p> API Call: <tt>POST /file/snapshots/{id}/shares</tt>
private synchronized void notifyPanListeners(){ for ( PanListener listener : mPanListeners) { listener.panApplied(); } }
Notify the pan listeners about a pan.
public int numNonZero(){ return m_numNonZero; }
Get the number of non-zero values in this sparse array
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public boolean equals(int i){ return false; }
Check if the expression is known to be equal to a given value. Returns false for any expression other than a literal constant, thus should be called only after simplification (inlining) has been performed.
public boolean isStopCodon(int codonState){ return (getAminoAcidState(codonState) == AminoAcids.STOP_STATE); }
Note that the state is the canonical state (generated combinatorially)
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
@Override public boolean isNumerical(){ return false; }
Returns false.
public void install(Scriptable scope){ ScriptableObject.putProperty(scope,"require",this); }
Binds this instance of require() into the specified scope under the property name "require".
@LargeTest public void testCameraPairwiseScenario11() throws Exception { genericPairwiseTestCase(Flash.ON,Exposure.MAX,WhiteBalance.DAYLIGHT,SceneMode.SUNSET,PictureSize.LARGE,Geotagging.ON); }
Flash: On / Exposure: Max / WB: Daylight Scene: Sunset / Pic: Large / Geo: on
public void background(float x,float y,float z,float a){ g.background(x,y,z,a); }
Clear the background with a color that includes an alpha value. This can only be used with objects created by createGraphics(), because the main drawing surface cannot be set transparent. <p/> It might be tempting to use this function to partially clear the screen on each frame, however that's not how this function wor...