code
stringlengths
10
174k
nl
stringlengths
3
129k
protected final Object[] copyChildren(){ synchronized (children) { return children.keySet().toArray(); } }
Returns an array containing all children of this context.
public String scaleTipText(){ return "The factor for scaling the output range (default: 1)."; }
Returns the tip text for this property.
private void internalOnVolumeChanged(int streamType,int volume,int prevVolume){ if (isSelfAdjusted(streamType,volume)) { return; } if (mCurrentStream < 0) { mCurrentStream=streamType; AudioManagerCompatUtils.forceVolumeControlStream(mAudioManager,mCurrentStream); mHandler.onControlAcquired(streamT...
Called after volume changes. Handles acquiring control of the current stream and providing feedback.
public static Long createLong(String val){ return Long.valueOf(val); }
<p>Convert a <code>String</code> to a <code>Long</code>.</p>
public Object runSafely(Catbert.FastStack stack) throws Exception { return new Long(Ministry.getInstance().getJobClipStartTime(getInt(stack))); }
Returns the clip start time for the specified transcode job
public Vector3d reflect(Vector3dc normal){ double dot=this.dot(normal); x=x - (dot + dot) * normal.x(); y=y - (dot + dot) * normal.y(); z=z - (dot + dot) * normal.z(); return this; }
Reflect this vector about the given normal vector.
public static byte[] buildRowkey(InternalLog log){ final String[] partitions=log.getPartitions(); final Map<String,String> tags=log.getTags(); final SortedMap<Integer,Integer> tagHashMap=generateSortedTagMap(partitions,tags); long ts=Long.MAX_VALUE - log.getTimestamp(); List<Integer> partitionHashValues=new A...
build rowkey from InternalLog object
public Entry(char[] ch,int offset,int length,int hash,Entry next){ characters=new char[length]; System.arraycopy(ch,offset,characters,0,length); symbol=new String(characters).intern(); this.next=next; this.hashCode=hash; this.bytes=null; }
Constructs a new entry from the specified symbol information and next entry reference.
public void sendRequest(SsoRequestSettings requestSettings,HttpServletResponse response) throws IOException, ConfigurationException, MarshallingException, InvalidKeyException, NoSuchAlgorithmException, WebssoClientException { Validate.notNull(requestSettings,"requestSettings"); Validate.notNull(response,"response")...
Entry point for sending SSO request to IDP. This function responds a HTTP redirect with authentication parameters attached to the url used in the redirect.
public MutablePeriod(int years,int months,int weeks,int days,int hours,int minutes,int seconds,int millis){ super(years,months,weeks,days,hours,minutes,seconds,millis,PeriodType.standard()); }
Create a period from a set of field values using the standard set of fields.
private void doImportKeyStore() throws Exception { if (alias != null) { doImportKeyStoreSingle(loadSourceKeyStore(),alias); } else { if (dest != null || srckeyPass != null) { throw new Exception(rb.getString("if.alias.not.specified.destalias.and.srckeypass.must.not.be.specified")); } doImport...
import all keys and certs from importkeystore. keep alias unchanged if no name conflict, otherwise, prompt. keep keypass unchanged for keys
@Override public void run(){ amIActive=true; String inputFilesString=null; String[] pointFiles; String outputHeader=null; int row, col; int nrows, ncols; double x, y; double z=0; int a, i; int progress=0; int numPoints=0; double minValue; double minX=Double.POSITIVE_INFINITY; double maxX=Dou...
Used to execute this plugin tool.
public static <E>ImmutableList<E> of(E e1,E e2,E e3,E e4,E e5){ return construct(e1,e2,e3,e4,e5); }
Returns an immutable list containing the given elements, in order.
void generateContent(File fd,long filesize,int minrec,int maxrec) throws IOException { long start=System.currentTimeMillis(); long totRecs=filesize / ((maxrec + minrec) / 2); long mod=1; if (totRecs > 20000) { mod=totRecs / 20000; } m_data=new byte[maxrec]; r.nextBytes(m_data); m_raf=new RandomAcces...
Generates file of filesize composed of a number of records between min and max size. Write random data to file. Assume average size of (minrec + maxec)/2, this should give rough number of records. We want to have approximately 20,000 records to read from so adjust proportion created to that stored by using a mod. For ...
protected void endDrawing(DrawContext dc){ GL2 gl=dc.getGL().getGL2(); gl.glPopAttrib(); }
Pop the state set in beginDrawing.
public TransactionInput duplicateDetached(){ return new TransactionInput(params,null,bitcoinSerialize(),0); }
Returns a copy of the input detached from its containing transaction, if need be.
@SuppressWarnings("rawtypes") public Iterator<IV> prefixScan(final Literal lit){ if (lit == null) throw new IllegalArgumentException(); return prefixScan(new Literal[]{lit}); }
A scan of all literals having the given literal as a prefix.
private void updateProgress(String progressLabel,int progress){ if (myHost != null) { myHost.updateProgress(progressLabel,progress); } else { System.out.println(progressLabel + " " + progress+ "%"); } }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public boolean isFinal(){ return false; }
Always returns 'false' since this state machine can never become final.
public static File[] findFiles(String fileName){ return findFiles(fileName,null); }
Returns an array of files that match the specified name located under the projects' configuration folders. This method tries to load the file as a resource using the classloader in case the specified file is not found under projects' root.
public RemoveEvent(Optional<Entity> entity){ this.entity=entity; }
Called when the block is about to be removed.
private static void addSwatchToRow(TableRow row,View swatch,int rowNumber){ if (rowNumber % 2 == 0) { row.addView(swatch); } else { row.addView(swatch,0); } }
Appends a swatch to the end of the row for even-numbered rows (starting with row 0), to the beginning of a row for odd-numbered rows.
public static long dateValueFromDate(long ms){ Calendar cal=CACHED_CALENDAR.get(); cal.clear(); cal.setTimeInMillis(ms); return dateValueFromCalendar(cal); }
Calculate the date value (in the default timezone) from a given time in milliseconds in UTC.
public MultisigMinCosignatoriesModification(final Deserializer deserializer){ this.relativeChange=deserializer.readInt("relativeChange"); }
Deserializes a multisig minimum cosignatories modification.
public PSPIdentifierForSellerException(){ }
Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized.
public int updateBlobTrigger(Connection conn,OperableTrigger trigger) throws SQLException, IOException { PreparedStatement ps=null; ByteArrayOutputStream os=null; try { os=new ByteArrayOutputStream(); ObjectOutputStream oos=new ObjectOutputStream(os); oos.writeObject(trigger); oos.close(); byt...
<p> Update the blob trigger data. </p>
public static BodyQName createWithPrefix(final String uri,final String local,final String prefix){ if (uri == null || uri.length() == 0) { throw (new IllegalArgumentException("URI is required and may not be null/empty")); } if (local == null || local.length() == 0) { throw (new IllegalArgumentException("L...
Creates a new qualified name using a namespace URI and local name along with an optional prefix.
protected SpatialSampledEdgeDecorator(E delegate){ super(delegate); }
Creates an orphaned edge decorator which decorates <tt>delegate</tt>.
protected Collection snapshotGrantTokens(){ Collection snapshot=null; synchronized (this.grantTokens) { snapshot=new ArrayList(this.grantTokens.values()); } return snapshot; }
Returns a snapshot of the current grant tokens. <p> Synchronizes on grantTokens.
public FtpURLConnection(URL url){ this(url,null); }
Creates an FtpURLConnection from a URL.
public Builder text(String text){ if (text == null) { throw new IllegalArgumentException("text must not be null."); } if (this.text != null) { throw new IllegalStateException("text already set."); } this.text=text; return this; }
Sets Text for Tweet Intent, no length validation is performed
private void updateProgress(String progressLabel,int progress){ if (myHost != null) { myHost.updateProgress(progressLabel,progress); } else { System.out.println(progressLabel + " " + progress+ "%"); } }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public void prepareTestS3Files(String s3KeyPrefix,Path localTempPath,List<String> localFilePaths,List<String> directoryPaths) throws Exception { prepareTestS3Files(null,s3KeyPrefix,localTempPath,localFilePaths,directoryPaths); }
Creates specified list of files in the local temporary directory and uploads them to the test S3 bucket. This method also creates 0 byte S3 directory markers relative to the s3 key prefix.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case DomPackage.TEXT__TEXT: return getText(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void shutdown() throws InterruptedException { started.compareAndSet(true,false); server.shutdown(); }
Shutdown the server
public synchronized void start(){ if (expirationTime == -1) { expired=false; expirationTime=LIFETIME + System.currentTimeMillis(); } else { throw new IllegalStateException("StunServerTransaction " + getTransactionID() + " has already been started!"); } }
Start the transaction. This launches the countdown to the moment the transaction would expire.
private void writeQNameAttribute(java.lang.String namespace,java.lang.String attName,javax.xml.namespace.QName qname,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String attributeNamespace=qname.getNamespaceURI(); java.lang.String attributePrefix=xmlWriter.getPre...
Util method to write an attribute without the ns prefix
public static void printReplDBMSEvent(StringBuilder stringBuilder,ReplDBMSEvent event,boolean pureSQL,String charset,boolean hex,boolean specs){ if (event == null) { println(stringBuilder,"- TYPE = null"); return; } if (!pureSQL) { List<ReplOption> metadata=event.getDBMSEvent().getMetadata(); Stri...
Formats and prints ReplDBMSEvent into a given stringBuilder.
public JSONArray put(int index,int value) throws JSONException { put(index,new Integer(value)); return this; }
Put or replace an int value. If the index is greater than the length of the JSONArray, then null elements will be added as necessary to pad it out.
public void removeCaretListener(CaretListener listener){ listenerList.remove(CaretListener.class,listener); }
Removes a caret listener.
protected boolean afterSave(boolean newRecord,boolean success){ if (success) updateAchievementGoals(); return success; }
After Save
@Override protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { processRequest(request,response); }
Handles the HTTP <code>GET</code> method.
public JnaTransaction(JnaDatabase database,IntByReference transactionHandle,TransactionState initialState){ super(initialState,database); handle=transactionHandle; clientLibrary=database.getClientLibrary(); }
Initializes AbstractFbTransaction.
private void connectConnectingPortSourceWithHoveringPort(final InputPort input,final OutputPort output,final Port hoveringPort){ try { Operator destOp=input.getPorts().getOwner().getOperator(); boolean hasConnections=controller.hasConnections(destOp); controller.connect(output,input); if (!hasConnecti...
Connects the clicked port with the connection source port.
public NonRisingVisitor(final Mask mask,final RegionFunction function){ super(mask,function); final Collection<Vector> directions=this.getDirections(); directions.clear(); directions.add(new Vector(1,0,0)); directions.add(new Vector(-1,0,0)); directions.add(new Vector(0,0,1)); directions.add(new Vector(0,...
Create a new recursive visitor.
protected void paintBackground(Graphics g){ super.paintBackground(g); paintMatchedBracket(g); }
Paints the text area's background.
public MergedScope(IScope parent,IScope delegate){ super(parent,false); this.delegate=delegate; }
Merges both scopes.
public ThaiAnalyzer(){ this(DefaultSetHolder.DEFAULT_STOP_SET); }
Builds an analyzer with the default stop words.
public boolean seekXWapApplicationId(int startIndex,int endIndex){ int index=startIndex; try { for (index=startIndex; index <= endIndex; ) { if (decodeIntegerValue(index)) { int fieldValue=(int)getValue32(); if (fieldValue == PARAMETER_ID_X_WAP_APPLICATION_ID) { mUnsigned32bit=in...
Seek for the "X-Wap-Application-Id" field for WSP pdu
public VNXeCommandJob restoreFileSystemSnap(String snapId){ _logger.info("restoring file system snap:" + snapId); String softwareVersion=getBasicSystemInfo().getSoftwareVersion(); FileSystemSnapRequests req=new FileSystemSnapRequests(_khClient,softwareVersion); return req.restoreFileSystemSnap(snapId,null,softw...
restore file system snapshot
public static String serializeToString(Node content) throws ParserException { TransformerFactory tf=TransformerFactory.newInstance(); StringWriter writer=new StringWriter(); try { Transformer trans=tf.newTransformer(); trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,"yes"); trans.transform(new...
Serializes DOM Node to its String representation. <p> The XML declaration <?xml ... > is omitted for easier embedding/serialization.
public void testDeployWhenExpandedWarWithCustomContext() throws Exception { WAR war=new WAR("ram:///some/expanded/warfile"); war.setContext("context"); war.setFileHandler(this.fileHandler); this.fsManager.resolveFile(war.getFile()).createFolder(); AbstractCopyingInstalledLocalDeployer deployer=new TestableCop...
Test deployment of an expanded WAR in a custom context.
public void purge(int index){ cache.clear(); remove(index); }
The <code>purge</code> method is used to purge a match from the provided position. This also ensures that the cache is cleared so that the semantics of the resolver do not change.
public JSONException syntaxError(String message){ return new JSONException(message + this.toString()); }
Make a JSONException to signal a syntax error.
public static void statObject_test() throws Exception { println("Test: statObject(String bucketName, String objectName)"); String fileName=createFile(3 * MB); client.putObject(bucketName,fileName,fileName); Files.delete(Paths.get(fileName)); client.statObject(bucketName,fileName); client.removeObject(bucket...
Test: statObject(String bucketName, String objectName).
@Override public void retry(VolleyError error) throws VolleyError { mCurrentRetryCount++; mCurrentTimeoutMs+=(mCurrentTimeoutMs * mBackoffMultiplier); if (!hasAttemptRemaining()) { throw error; } }
Prepares for the next retry by applying a backoff to the timeout.
public boolean offer(E o){ if (null == o) { throw new NullPointerException(); } growToSize(size + 1); elements[size]=o; siftUp(size++); return true; }
Inserts the element to the priority queue.
public RawProperty addExperimentalProperty(String name,ICalDataType dataType,String value){ RawProperty raw=new RawProperty(name,dataType,value); addProperty(raw); return raw; }
Adds an experimental property to this component.
public String createFirebaseToken(Game game,String userId){ final AppIdentityService appIdentity=AppIdentityServiceFactory.getAppIdentityService(); final BaseEncoding base64=BaseEncoding.base64(); String header=base64.encode("{\"typ\":\"JWT\",\"alg\":\"RS256\"}".getBytes()); String channelKey=game.getChannelKey...
Create a secure JWT token for the given userId.
public ActivationGroupImpl(ActivationGroupID id,MarshalledObject<?> data) throws RemoteException { super(id); groupID=id; unexportObject(this,true); RMIServerSocketFactory ssf=new ServerSocketFactoryImpl(); UnicastRemoteObject.exportObject(this,0,null,ssf); if (System.getSecurityManager() == null) { try...
Creates a default activation group implementation.
public void addParamHeader(String name,String value){ addParam(name,value,NameValuePair.TYPE_HEADER); }
Support method to add a new Header param to this custom variant
synchronized boolean cacheConnection(HttpHost host,Connection connection){ boolean ret=false; if (HttpLog.LOGV) { HttpLog.v("IdleCache size " + mCount + " host "+ host); } if (mCount < IDLE_CACHE_MAX) { long time=SystemClock.uptimeMillis(); for (int i=0; i < IDLE_CACHE_MAX; i++) { Entry entry=...
Caches connection, if there is room.
public boolean isDone(){ return WebUtils.getCookie(request.getNativeRequest(HttpServletRequest.class),BUYER_COOKIE) != null; }
verifica se o cookie foi salvo
public Notification clear(){ getSysNotificationManager().cancel(id); Log.i("ReactSystemNotification","Notification Cleared: " + id); return this; }
Clear the notification from the status bar.
private List<JBBPAbstractField> parseStruct(final JBBPBitInputStream inStream,final JBBPIntCounter positionAtCompiledBlock,final JBBPVarFieldProcessor varFieldProcessor,final JBBPNamedNumericFieldMap namedNumericFieldMap,final JBBPIntCounter positionAtNamedFieldList,final JBBPIntCounter positionAtVarLengthProcessors,fi...
Inside method to parse a structure.
public ProfileVisit sharedContacts(List<XingUser> sharedContacts){ this.sharedContacts=sharedContacts; return this; }
Sets the list of shared contacts.
protected void lookAndFeelSelectionChanged(ListSelectionEvent e){ if (m_setting) return; setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); ValueNamePair laf=(ValueNamePair)lookList.getSelectedValue(); LookAndFeel currentLaf=UIManager.getLookAndFeel(); MetalTheme currentTheme=MetalLookAndFeel.getCur...
Handle look and feel selection changed
public synchronized long moveToNextSample(){ queueSize--; int lastReadIndex=relativeReadIndex++; absoluteReadIndex++; if (relativeReadIndex == capacity) { relativeReadIndex=0; } return queueSize > 0 ? offsets[relativeReadIndex] : (sizes[lastReadIndex] + offsets[lastReadIndex]); }
Advances the read index to the next sample.
@Override protected void onPostCreate(@Nullable Bundle savedInstanceState){ mPermissionRequest=PermissionRequest.with(this).permissions(Manifest.permission.READ_EXTERNAL_STORAGE,Manifest.permission.WRITE_EXTERNAL_STORAGE).rationale(R.string.permission_read_write_rationale).granted(R.string.permission_read_write_grant...
Handle the onPostCreate() hook to call permission helper to handle all permission requests using the API 23 permission model framework. <p> The framework will callback to request this application to provide a descriptive reason for the permission request that is then displayed to the user. The user has the opportunity ...
public String debug(){ StringBuilder builder=new StringBuilder(); for ( Entry<JournalFile,AtomicInteger> entry : negCounts.entrySet()) { builder.append(" file = " + entry.getKey() + " negcount value = "+ entry.getValue()+ "\n"); } return builder.toString(); }
Receive debug information about the journal
public void print(PrintStream ps){ DecimalFormat DF=new DecimalFormat("0.000000"); ps.println("Allpass order: " + order); for (int i=0; i < order; i++) { if (i < order) { if (k[i] < 0.0) ps.println(" " + DF.format(k[i]) + " "+ state[i]); else ps.println(" " + DF.format(k[i]) + " "+ st...
Prints the reflection coefficients defining this allpass filter and the state vector.
public void execute(TransformerImpl transformer) throws TransformerException { XPathContext xctxt=transformer.getXPathContext(); xctxt.pushRTFContext(); transformer.executeChildTemplates(this,true); xctxt.popRTFContext(); }
Copy the template contents into the result tree. The content of the xsl:template element is the template that is instantiated when the template rule is applied.
public RippleDrawable(ColorStateList color){ setColor(color); }
Creates a new ripple drawable with the specified ripple color and optional content and mask drawables.
public RegisterPanel(RegisterSet reg,JasDocument doc){ initComponents(); register=reg; data=doc.data; this.doc=doc; jPanel25.setVisible(false); jLabel17.setText(reg.E + ": "); if (reg.E.length() > 0) { jLabel1.setText(reg.E); } else { jLabel1.setText(" "); } if (reg.X.length() > 0) { jL...
Creates new form RegisterPanel
public InputStream newInputStream(int index) throws IOException { synchronized (DiskLruCache.this) { if (entry.currentEditor != this) { throw new IllegalStateException(); } if (!entry.readable) { return null; } return new FileInputStream(entry.getCleanFile(index)); } }
Returns an unbuffered input stream to read the last committed value, or null if no value has been committed.
public Notifications graphic(Node graphic){ this.graphic=graphic; return this; }
Specify the graphic to show in the notification.
public boolean isDone(){ return AnimationUtils.currentAnimationTimeMillis() > mAnimation.getStartTime() + mMaxDelay + mDuration; }
Indicates whether the layout animation is over or not. A layout animation is considered done when the animation with the longest delay is done.
protected int bytesPerAtom(){ return (3); }
number of bytes per atom in uuencoding is 3
public LocationConfiguration askForGooglePlayServices(boolean askForGPServices){ this.askForGPServices=askForGPServices; return this; }
Set true to ask user handle when there is some resolvable error on connection GooglePlayServices, if you don't want to bother user to configure Google Play Services to receive location then set this as false. <p> Default is False.
private void removeEdge(){ boolean go=true; int lastNode; int proxNode; int atualNode; if ((parentMatrix[randomChild][0] != 1) && (childMatrix[randomParent][0] != 1)) { lastNode=parentMatrix[randomChild][parentMatrix[randomChild][0] - 1]; for (int i=(parentMatrix[randomChild][0] - 1); (i > 0 && go); i...
Removes the edge randomParent-->randomChild from the graph.
public TransactionInput(NetworkParameters params,Transaction parentTransaction,byte[] msg,int offset,boolean parseLazy,boolean parseRetain) throws ProtocolException { super(params,msg,offset,parentTransaction,parseLazy,parseRetain,UNKNOWN_LENGTH); this.parentTransaction=parentTransaction; }
Deserializes an input message. This is usually part of a transaction message.
public LatvianAnalyzer(CharArraySet stopwords){ this(stopwords,CharArraySet.EMPTY_SET); }
Builds an analyzer with the given stop words.
public static void assertVocabulary(Analyzer a,Path zipFile,String vocOut) throws IOException { Path tmp=LuceneTestCase.createTempDir(); try (InputStream in=Files.newInputStream(zipFile)){ TestUtil.unzip(in,tmp); } try (InputStream in=Files.newInputStream(tmp.resolve(vocOut))){ assertVocabulary(a,in); ...
Run a vocabulary test against a tab-separated data file inside a zip file
public FilteredTollHandler(final double simulationEndTime,final int numberOfTimeBins,final String shapeFile,final Network network,final String userGroup){ this.delegate=new TollInfoHandler(simulationEndTime,numberOfTimeBins); if (shapeFile != null) { Collection<SimpleFeature> features=new ShapeFileReader().read...
Area and user group filtering will be used, links fall inside the given shape and persons belongs to the given user group will be considered.
public FractionAtom(Atom num,Atom den,int unit,float t){ this(num,den,true,unit,t); }
The thickness of the fraction line is determined by the given value "t" in the given unit.
@Override public void buildClassifier(Instances data) throws Exception { getCapabilities().testWithFail(data); data=new Instances(data); data.deleteWithMissingClass(); Random random=new Random(m_Seed); m_zeroR=null; if (data.numAttributes() == 1) { m_zeroR=new ZeroR(); m_zeroR.buildClassifier(data);...
Builds classifier.
public NullInfoRegistry(UnconditionalFlowInfo upstream){ this.maxFieldCount=upstream.maxFieldCount; if ((upstream.tagBits & NULL_FLAG_MASK) != 0) { long u1, u2, u3, u4, nu2, nu3, nu4; this.nullBit2=(u1=upstream.nullBit1) & (u2=upstream.nullBit2) & (nu3=~(u3=upstream.nullBit3))& (nu4=~(u4=upstream.nullBit4))...
Make a new null info registry, using an upstream flow info. All definite assignments of the upstream are carried forward, since a try block may exit before its first statement.
public Role findRole(String roleName){ return roles.get(roleName); }
Get the role if it exists, or null if not.
public void actionPerformed(ActionEvent e){ DataModel dataModel=getDataEditor().getSelectedDataModel(); CorrelationMatrix corrMatrix; if (dataModel instanceof DataSet) { try { DataSet dataSet=(DataSet)dataModel; ICovarianceMatrix covMatrix=new CovarianceMatrix(dataSet); corrMatrix=new Correl...
Performs the action of loading a session from a file.
public Corpse2DView(){ height=IGameScreen.SIZE_UNIT_PIXELS; width=IGameScreen.SIZE_UNIT_PIXELS; }
Create a 2D view of an entity.
@Bean @ConditionalOnMissingBean(RestTemplate.class) public RestTemplate restTemplate(){ log.info("Configuring RestTemplate ..."); return new RestTemplate(); }
Needed in CaptchaValidator. ConditionalOnMissingBean will ensure that this bean will be processed in the REGISTER_BEAN ConfigurationPhase. For more details see: ConditionEvaluator.shouldSkip, ConfigurationPhase.REGISTER_BEAN
public Iterator<Object> iterator(){ synchronized (children) { return new BCSIterator(children.keySet().iterator()); } }
Returns an iterator of children of this context, with <code>remove()</code> disabled.
public void beginSignleAction(WebRequest theRequest){ theRequest.addParameter("button1","button1"); }
* PENDING() perhaps reactivate this if the EG wants event loop detection. <p/> <p/> // tests event recursion - infinite loop // ValueChangeEvent will fire back the same event it received.. <p/> public void testValueChangeRecursion() { // for keeping track of events processed limit.. // eventsProcessed = new HashMap(); ...
public void endExtension() throws IOException { ResponseWriter writer=getWrapped(); writer.endElement("extension"); }
<p class="changed_added_2_0">Write the end of an extension operation.</p>
protected void fireEvent(IoFilterEvent event){ executor.execute(event); }
Fires the specified event through the underlying executor.
public ObjectInputStream createObjectInputStream(final InputStream in) throws IOException { return createObjectInputStream(hierarchicalStreamDriver.createReader(in)); }
Creates an ObjectInputStream that deserializes a stream of objects from an InputStream using XStream.
public void run(){ try { while (!interrupted) { Buffer inBuffer=inputStream.read(); if (inBuffer == null) { interrupted=true; break; } int result=codecChain.process(inBuffer); if ((result != Codec.BUFFER_PROCESSED_OK) && (result != Codec.OUTPUT_BUFFER_NOT_FILLED)) { ...
Background processing
public void testThreeNodeSubmitQueryWithBoundedLinearizableConsistency() throws Throwable { testSubmitQuery(3,Query.ConsistencyLevel.LINEARIZABLE_LEASE); }
Tests submitting a query.
public final int indexOf(Object elem){ for (int i=0; i < m_firstFree; i++) { if (m_map[i] == elem) return i; } return java.lang.Integer.MIN_VALUE; }
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
public static Set<String> handleBugCategories(String categories){ Set<String> categorySet=new HashSet<String>(); StringTokenizer tok=new StringTokenizer(categories,","); while (tok.hasMoreTokens()) { categorySet.add(tok.nextToken()); } return categorySet; }
Process -bugCategories option.