code
stringlengths
10
174k
nl
stringlengths
3
129k
public void processStreamAndScheduleJobs(InputStream stream,String systemId,Scheduler sched) throws ValidationException, ParserConfigurationException, SAXException, XPathException, IOException, SchedulerException, ClassNotFoundException, ParseException { prepForProcessing(); log.info("Parsing XML from stream with s...
Process the xmlfile named <code>fileName</code> with the given system ID.
protected TeXFormula(TeXParser tp){ this.jlmXMLMap=tp.formula.jlmXMLMap; parser=new TeXParser(tp.getIsPartial(),"",this,false); }
Creates an empty TeXFormula.
public void storeCrc(byte crcType) throws IOException { if (data == null || crcType == CRC_TYPE_NONE) { this.crc=0; this.crcType=crcType; } else if (crcType == CRC_TYPE_32) { this.crc=computeCrc32(data); this.crcType=crcType; } else { throw new IOException("Invalid crc type: " + crcType); ...
Compute and store CRC. This is used to populate CRC in a record to which we are writing.
public Object runSafely(Catbert.FastStack stack) throws Exception { Object o=stack.pop(); if (o != null) { if (o instanceof MetaImage) return ((MetaImage)o).mightLoadFast(stack.getUIMgr()) ? Boolean.TRUE : Boolean.FALSE; else { MetaImage mi=MetaImage.getMetaImageNoLoad(o); return (mi != null &&...
Checks whether the passed in MetaImage (from an API call that returns MetaImage), MediaFile, File, URL or Album is loaded into system memory or into the VRAM cache of the corresponding UI making the call.
private void checkPhases(){ if (VM.VERIFY_ASSERTIONS) { VM.assertions._assert(scheduledSubPhases.length > 0); for ( int scheduledPhase : scheduledSubPhases) { VM.assertions._assert(getSchedule(scheduledPhase) > 0); VM.assertions._assert(getPhaseId(scheduledPhase) > 0); } } }
Validate the scheduled sub phases.
public Value peek(String queue_name){ Value element=null; if (has_queue(queue_name)) { element=queue_map.get(queue_name).peekFirst(); } return element; }
Retrieves, but does not remove, the head of the queue
public static String escape(String s){ return JSONValue.escape(s); }
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F). It's the same as JSONValue.escape() only for compatibility here.
public int hashCode(){ int hash=super.hashCode(); hash=hash + (this.getCurrency() == null ? 0 : this.getCurrency().hashCode()); hash=hash + (this.getExchange() == null ? 0 : this.getExchange().hashCode()); hash=hash + (this.getSecType() == null ? 0 : this.getSecType().hashCode()); hash=hash + (this.getSymbol(...
Method hashCode. For every field tested in the equals-Method, calculate a hash code c by: If the field f is a boolean: calculate * (f ? 0 : 1); If the field f is a byte, char, short or int: calculate (int)f; If the field f is a long: calculate (int)(f ^ (f >>> 32)); If the field f is a float: calculate Float.floatToInt...
public void runTest() throws Throwable { Document doc; NodeList genderList; Node genderNode; Node entRef; Node entElement; Node createdNode; Node insertedNode; Node refChild=null; int nodeType; doc=(Document)load("staff",true); genderList=doc.getElementsByTagName("gender"); genderNode=genderList...
Runs the test case.
public boolean elementAvailable(String ns,String elemName) throws javax.xml.transform.TransformerException { boolean isAvailable=false; if (null != ns) { ExtensionHandler extNS=(ExtensionHandler)m_extensionFunctionNamespaces.get(ns); if (extNS != null) isAvailable=extNS.isElementAvailable(elemName); }...
Execute the element-available() function.
private void storeITLMappingInVolume(Map<URI,Integer> volumeToTargetLunMap,ExportMask exportMask){ log.debug("START - createITLMappingInVolume"); for ( URI volumeURI : volumeToTargetLunMap.keySet()) { Integer targetLunId=volumeToTargetLunMap.get(volumeURI); Volume volume=dbClient.queryObject(Volume.class,v...
Create Initiator Target LUN Mapping as an extension in volume object
public TriggerOption withLateFiringsAtEvery(Duration duration){ TimeTrigger trigger=new TimeTrigger(Type.LATE,duration); triggerList.add(trigger); return this; }
A trigger should be fired after the watermark once for every specified duration
public X509Certificate generateX509Certificate(PrivateKey key) throws SecurityException, SignatureException, InvalidKeyException { try { return generateX509Certificate(key,"BC",null); } catch ( NoSuchProviderException e) { throw new SecurityException("BC provider not installed!"); } }
generate an X509 certificate, based on the current issuer and subject using the default provider "BC".
private void inlineVariable(LogicalVariable usedVar,UnnestOperator unnestOp) throws AlgebricksException { AbstractFunctionCallExpression expr=(AbstractFunctionCallExpression)unnestOp.getExpressionRef().getValue(); List<Pair<AbstractFunctionCallExpression,Integer>> parentAndIndexList=new ArrayList<Pair<AbstractFunct...
This method is to inline one variable
public static void putCursorAtTheEnd(EditText editText){ editText.setSelection(editText.getText().length()); }
Puts the text cursor to the end.
public void endDocument() throws SAXException { }
Receive notification of the end of the document. <p>By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).</p>
public void testGetRandomAccess(){ Multimap<String,Integer> multimap=create(); multimap.put("foo",1); multimap.put("foo",3); assertThat(multimap.get("foo")).isNotInstanceOf(RandomAccess.class); assertThat(multimap.get("bar")).isNotInstanceOf(RandomAccess.class); }
Confirm that get() returns a List that doesn't implement RandomAccess.
static int computePreferredBufferSize(int dataLength){ if (dataLength > DEFAULT_BUFFER_SIZE) return DEFAULT_BUFFER_SIZE; return dataLength; }
Returns the buffer size to efficiently write dataLength bytes to this CodedOutputStream. Used by AbstractMessageLite.
public OutputStream put(String key) throws FileNotFoundException { return new xFileOutputStream(mCache.newFile(key)); }
Cache for a stream
public static Coordinate midPoint(Coordinate p0,Coordinate p1){ return new Coordinate((p0.x + p1.x) / 2,(p0.y + p1.y) / 2); }
Computes the midpoint of a segment
protected void addVertex(Point mousePoint){ Line ray=this.wwd.getView().computeRayFromScreenPoint(mousePoint.getX(),mousePoint.getY()); Vec4 pickPoint=this.intersectPolygonAltitudeAt(ray); double nearestDistance=Double.MAX_VALUE; int newVertexIndex=0; for (int i=0; i < this.controlPoints.size(); i++) { Co...
Add a vertex to the polygon's outer boundary.
public boolean addAttributeAlways(String uri,String localName,String rawName,String type,String value,boolean XSLAttribute){ boolean was_added; int index; if (localName == null || uri == null || uri.length() == 0) index=m_attributes.getIndex(rawName); else { index=m_attributes.getIndex(uri,localName); } ...
Adds the given attribute to the set of attributes, even if there is no currently open element. This is useful if a SAX startPrefixMapping() should need to add an attribute before the element name is seen.
public HttpConnection(String proxyHost,int proxyPort,String host,int port,Protocol protocol){ if (host == null) { throw new IllegalArgumentException("host parameter is null"); } if (protocol == null) { throw new IllegalArgumentException("protocol is null"); } proxyHostName=proxyHost; proxyPortNumber...
Creates a new HTTP connection for the given host with the virtual alias and port via the given proxy host and port using the given protocol.
public static void main(final String[] args){ DOMTestCase.doMain(hc_attrspecifiedvaluechanged.class,args); }
Runs this test from the command line.
private static void checkSTSPort(WsInfo info){ if (info.getServicePort() != ServicePort.STS) { String text="Service port should be " + ServicePort.STS; logger.error(text); throw new WebServiceException(text); } }
Helper method to check if the expected STS service port is set into the model of the web service proxy.
public static String prettyPrintHex(byte[] baToConvert){ HexCharset hde=null; try { hde=(HexCharset)HexCharset.forName("HEX"); } catch ( UnsupportedCharsetException uce) { hde=new HexCharset(true); } return new String(hde.encode(new String(baToConvert)).array()); }
Method prettyPrintHex
public static void decodeToFile(String dataToDecode,String filename) throws java.io.IOException { Base64.OutputStream bos=null; try { bos=new Base64.OutputStream(new java.io.FileOutputStream(filename),Base64.DECODE); bos.write(dataToDecode.getBytes(PREFERRED_ENCODING)); } catch ( java.io.IOException e) ...
Convenience method for decoding data to a file. <p>As of v 2.3, if there is a error, the method will throw an java.io.IOException. <b>This is new to v2.3!</b> In earlier versions, it just returned false, but in retrospect that's a pretty poor way to handle it.</p>
private void paintContinuous(Graphics2D g,JComponent c,int width,int height){ boolean useToolBarColors=isInToolBar(c); Shape s; if (isFocused) { s=shapeGenerator.createSliderThumbContinuous(0,1,width); g.setPaint(getFocusPaint(s,FocusType.OUTER_FOCUS,useToolBarColors)); g.fill(s); s=shapeGenerator...
DOCUMENT ME!
private NeuronPropertiesPanel(final List<Neuron> neuronList,final Window parent,final boolean displayUpdateRuleProperties){ generalNeuronPropertiesPanel=GeneralNeuronPropertiesPanel.createPanel(neuronList,parent); updateRulePanel=new UpdateRulePanel(neuronList,parent,displayUpdateRuleProperties); }
Construct the panel without specifying whether to display id (that is done automatically).
public CDataProvider(final INaviModule module){ m_module=module; m_data=module.getData(); module.addListener(m_moduleListener); }
Creates a new data provider object.
public GenerationalDistance(Problem problem,NondominatedPopulation referenceSet,double d){ super(problem,referenceSet); this.d=d; }
Constructs a generational distance evaluator for the specified problem and corresponding reference set.
public String format(double d){ return format(d,sigDigit); }
Format the number using scientific notation
public void addCircle(float latPoint,float lonPoint,float radius,int units,LinkProperties properties) throws IOException { LinkCircle.write(latPoint,lonPoint,radius,units,-1,properties,link.dos); }
Write a circle in the response.
public void addAction(String k){ Integer v=new Integer(m_nextBitForAction++); m_actions.put(k,v); }
Add a new action type to the table
public boolean isInRange(double time){ if (time < start || time > end) { return false; } return true; }
Returns true if the given time is within start and end time (inclusive).
@Override protected void doReceive() throws CommunicationException, InterruptedException { try { packet=new DatagramPacket(new byte[bufferSize],bufferSize); socket.receive(packet); int state=getState(); if (state != ONLINE) { if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINER)) { SNMP_ADAPTO...
Reads a packet from the datagram socket and creates a request handler which decodes and processes the request.
protected ExecutionScopeImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public synchronized boolean writeEvidence(final byte[] data,final int offset,int len){ if (Cfg.DEBUG) { } if (!enoughSpace) { return false; } if (offset >= data.length) { return false; } encData=encryption.encryptData(data,offset,len); if (fconn == null) { if (Cfg.DEBUG) { Check.log(TA...
Questa funzione prende i byte puntati da pByte, li cifra e li scrive nel file di log creato con CreateLog(). La funzione torna TRUE se va a buon fine, FALSE altrimenti.
@Deprecated public static void disableLogging(){ writeLogs(false); }
Disables logger, no logs will be passed to LogCat, all log methods will do nothing
private static int GetStaticCharField(JNIEnvironment env,int classJREF,int fieldID){ if (traceJNI) VM.sysWrite("JNI called: GetStaticCharField \n"); RuntimeEntrypoints.checkJNICountDownToGC(); try { RVMField field=MemberReference.getFieldRef(fieldID).resolve(); return field.getCharValueUnchecked(null);...
GetStaticCharField: read a static field of type character
public JToolBar(){ this(HORIZONTAL); }
Creates a new tool bar; orientation defaults to <code>HORIZONTAL</code>.
@Override public Territory retreatQuery(final GUID battleID,final boolean submerge,final Territory battleSite,final Collection<Territory> possibleTerritories,final String message){ if (possibleTerritories.isEmpty()) { return null; } if (submerge) { final CompositeMatch<Unit> seaSub=new CompositeMatchAnd<>...
The battle calc doesn't actually care if you have available territories to retreat to or not. It will always let you retreat to the 'current' territory (the battle territory), even if that is illegal. This is because the battle calc does not know where the attackers are actually coming from.
private void handleSendImage(Intent intent){ AppLog.i(this,"handleSendImage()"); final Uri imageUri=intent.getParcelableExtra(Intent.EXTRA_STREAM); if (imageUri != null) { AppLog.v(this,"imageUri is not null. Handle shared image"); } else { AppLog.w(this,"imageUri is null. Cannot precede."); } Toas...
Share an image shared to the app via diaspora
public Kernel mul(Kernel k){ int min=getMinIndex(); int max=getMaxIndex(); if (size() > k.size()) { min=k.getMinIndex(); max=k.getMaxIndex(); } for (int i=min; i <= max; i++) { set(i,get(i) * k.get(i)); } return this; }
Returns a new Kernel, where the specified kernel was multiplied.
@PUT @ApiOperation(value="Updates an existing order") public Response updateOrder(@ApiParam(value="The order to update",required=true) Order order){ orderService.updateOrder(order); return Response.ok().build(); }
The PUT update order operation
public ToStringBuilder append(final int value){ style.append(buffer,null,value); return this; }
<p>Append to the <code>toString</code> an <code>int</code> value.</p>
public static boolean isDefaultUseInternalBrowser(){ return BrowserUtil.canUseInternalWebBrowser(); }
Returns whether the internal browser is used by default
public static void addSolarNeutronRecipe(GasStack input,GasStack output){ try { Class recipeClass=Class.forName("mekanism.common.recipe.RecipeHandler"); Method m=recipeClass.getMethod("addSolarNeutronRecipe",GasStack.class,GasStack.class); m.invoke(null,input,output); } catch ( Exception e) { Syst...
Add a Solar Neutron Activator recipe.
public void addPoint(float x,float y){ if (npoints == xpoints.length) { float[] tmp; tmp=new float[npoints * 2]; System.arraycopy(xpoints,0,tmp,0,npoints); xpoints=tmp; tmp=new float[npoints * 2]; System.arraycopy(ypoints,0,tmp,0,npoints); ypoints=tmp; } xpoints[npoints]=x; ypoints[n...
Appends the specified coordinates to this <code>Polyline2D</code>. <p> If an operation that calculates the bounding box of this <code>Polyline2D</code> has already been performed, such as <code>getBounds</code> or <code>contains</code>, then this method updates the bounding box.
@Override @SuppressWarnings("unchecked") public E[] nextChunk(){ if (!hasNext()) { throw new NoSuchElementException(); } final E[] ret; if (buffer == null) { buffer=bufferIt.next(); ret=buffer; } else if (i == 0) { ret=buffer; } else { final int remaining=buffer.length - i; ret=(...
Returns the remaining statements.
public DotGraphEdge drawEdge(String from,String to){ DotGraphNode src=drawNode(from); DotGraphNode dst=drawNode(to); DotGraphEdge edge=new DotGraphEdge(src,dst); this.drawElements.add(edge); return edge; }
Draws a directed edge (including the source and end nodes, if they have not already been drawn).
private static String urlEncode(final String text) throws UnsupportedEncodingException { return URLEncoder.encode(text,"UTF-8"); }
Encode text as UTF-8
@SuppressWarnings("unchecked") @Override public void eSet(int featureID,Object newValue){ switch (featureID) { case N4mfPackage.PROVIDED_RUNTIME_LIBRARIES__PROVIDED_RUNTIME_LIBRARIES: getProvidedRuntimeLibraries().clear(); getProvidedRuntimeLibraries().addAll((Collection<? extends ProvidedRuntimeLibraryDependency...
<!-- begin-user-doc --> <!-- end-user-doc -->
public BellPlay(int times){ this.times=times; onTurnReached(0); }
Create a new BellPlay.
@Deprecated public Builder oauthCallback(XingOAuthCallback callback){ xingOAuthCallback=callback; return this; }
Required callback for the auth process.
void removeProcessOverview(ProcessExecutionResultOverview processExecutionResultOverview){ remove(processExecutionResultOverview); processOverviews.remove(processExecutionResultOverview); revalidate(); repaint(); }
Remove the given result from the overview.
@Override public void hideLoadingBackProgress(){ if (null != mProgressView) { mProgressView.setVisibility(View.GONE); } }
Dismiss any global spinner.
public boolean isReady(){ return isReady; }
Checks if is ready.
public static boolean lesserEquals(double x,double y){ return value(x - y) <= 0; }
Given closeness-to-epsilon, is x &le; y?
protected void engineSetMode(String mode) throws NoSuchAlgorithmException { core.setMode(mode); }
Sets the mode of this cipher.
public StraightStreamReader(InputStream in){ this.in=in; }
Create a StraightStreamReader from an InputStream
private void storeReturnValue(HLEModuleFunction func,Class<?> returnType){ if (returnType == void.class) { } else if (returnType == int.class) { storeRegister(_v0); } else if (returnType == boolean.class) { storeRegister(_v0); } else if (returnType == long.class) { mv.visitInsn(Opcodes.DUP2...
Generate the required Java code to store the return value of the syscall function into the CPU registers. The following code is generated depending on the return type: void: - int: cpu.gpr[_v0] = intValue boolean: cpu.gpr[_v0] = booleanValue long: cpu.gpr[_v0] = (int) (longValue & 0xFFFFFF...
public static void putObjectField(Object obj,long fieldOff,Object val){ UNSAFE.putObject(obj,fieldOff,val); }
Stores reference value into object field.
public static <K>IdentityArrayList<K> wrap(final K a[],final int length){ if (length > a.length) throw new IllegalArgumentException("The specified length (" + length + ") is greater than the array size ("+ a.length+ ")"); final IdentityArrayList<K> l=new IdentityArrayList<K>(a,false); l.size=length; return l;...
Wraps a given array into an array list of given size.
private static void addTree(String tag,String traversalPermissions){ EnumMap<Node,Label> currentTree=defaultPermissions.getOrDefault(tag,new EnumMap<>(Node.class)); String[] permissions=traversalPermissions.split(";"); for ( String permission : permissions) { String[] nodeLabel=permission.split("="); Nod...
Updates defaultPermissions with additional traversalPermissions
public static boolean isHostIpInterfacesInUse(DbClient dbClient,List<String> endpoints,URI hostId){ if (endpoints == null || endpoints.isEmpty()) { return false; } Host host=dbClient.queryObject(Host.class,hostId); List<FileShare> fileShares=null; if (!NullColumnValueGetter.isNullURI(host.getProject())) {...
Checks if an ipInterface in use by a file export
private final boolean verifyChildren(Position nodePos){ return verifyChildren(nodePos,null); }
nodePos must represent the same position as this Node object.
public void assertSameValues(int[] expected,int[] actual){ assertEquals("length",expected.length,actual.length); final int len=expected.length; for (int i=0; i < len; i++) { assertEquals("position=" + i,expected[i],actual[i]); } }
Verifies that <i>actual </i> contains all of the same values as <i>expected </i> in the same order.
public boolean isI_IsImported(){ Object oo=get_Value(COLUMNNAME_I_IsImported); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Imported.
public XCardDocument(Document document){ this.document=document; XCardNamespaceContext nsContext=new XCardNamespaceContext(version4,"v"); XPath xpath=XPathFactory.newInstance().newXPath(); xpath.setNamespaceContext(nsContext); try { vcardsRootElement=(Element)xpath.evaluate("//" + nsContext.getPrefix() + ...
Wraps an existing XML DOM object.
public double semiVariance(){ return regret(mean()); }
returns the variance of observations below the mean, \fracN}{N-1} \mathrm{E}\left[ (x-\langle x \rangle)^2 \;|\; x < \langle x \rangle \right]. }
static void copyExtendedAttributes(int ofd,int nfd){ NativeBuffer buffer=null; try { int size=1024; buffer=NativeBuffers.getNativeBuffer(size); for (; ; ) { try { size=flistxattr(ofd,buffer.address(),size); break; } catch ( UnixException x) { if (x.errno() == ER...
Used by copyTo/moveTo to copy extended attributes from source to target.
public cudaIpcEventHandle(){ }
Creates a new, uninitialized cudaIpcEventHandle
public String write(Integer indent,String xmlVersion){ return write(new XCardOutputProperties(indent,xmlVersion)); }
Writes the XML document to a string.
private static boolean isDeclaredInElse(@NotNull final PsiElement elementToCheck,@NotNull final PyForStatement forStatement){ final PyElsePart elsePart=forStatement.getElsePart(); if (elsePart != null) { if (PsiTreeUtil.isAncestor(elsePart,elementToCheck,false)) { return true; } } return false; }
Checks that element is declared in "else" statement of "for" statement
public void edit(FieldAccess f) throws CannotCompileException { }
Edits a field-access expression (overridable). Field access means both read and write. The default implementation performs nothing.
public DateTimeFormatter withLocale(Locale locale){ if (locale == getLocale() || (locale != null && locale.equals(getLocale()))) { return this; } return new DateTimeFormatter(iPrinter,iParser,locale,iOffsetParsed,iChrono,iZone,iPivotYear,iDefaultYear); }
Returns a new formatter with a different locale that will be used for printing and parsing. <p> A DateTimeFormatter is immutable, so a new instance is returned, and the original is unaltered and still usable.
public boolean hasVariationId(){ return hasExtension(GwoVariationId.class); }
Returns whether it has the variation ID.
@VisibleForTesting void fillDataPoint(Location location,double data[]){ double timeOrDistance=Double.NaN; double elevation=Double.NaN; double speed=Double.NaN; double pace=Double.NaN; double heartRate=Double.NaN; double cadence=Double.NaN; double power=Double.NaN; if (tripStatisticsUpdater != null) { ...
Given a location, fill in a data point, an array of double[]. <br> data[0] = time/distance <br> data[1] = elevation <br> data[2] = speed <br> data[3] = pace <br> data[4] = heart rate <br> data[5] = cadence <br> data[6] = power <br>
protected URIMetadataNode toYaCySchema(final SolrDocument doc) throws MalformedURLException { String urlstr; if (localcfg.contains("sku")) { urlstr=(String)doc.getFieldValue(localcfg.get("sku").getValue()); } else { urlstr=(String)doc.getFieldValue(localcfg.get("_skufieldname").getValue()); if (this....
Converts a remote schema result to YaCy schema using the fieldname mapping provided as config file
public static Type instance(){ return theInstance; }
Get the single instance of the top type.
public SVGOMAnimatedNumberList(AbstractElement elt,String ns,String ln,String defaultValue,boolean emptyAllowed){ super(elt,ns,ln); this.defaultValue=defaultValue; this.emptyAllowed=emptyAllowed; }
Creates a new SVGOMAnimatedNumberList.
public static IndentResult indentLines(IDocument document,ILineRange lines,IJavaProject project,IndentResult result) throws BadLocationException { int numberOfLines=lines.getNumberOfLines(); if (numberOfLines < 1) return new IndentResult(null); result=reuseOrCreateToken(result,numberOfLines); JavaHeuristicSca...
Indents the line range specified by <code>lines</code> in <code>document</code>. The passed Java project may be <code>null</code>, it is used solely to obtain formatter preferences.
public IPoint[] compute(IPoint[] points){ int n=points.length; if (n < 3) { return points; } ExternalBinaryHeap<IPoint> heap=new ExternalBinaryHeap<IPoint>(n,IPoint.xy_sorter); for ( IPoint p : points) { heap.insert(p); } LinkedList<IPoint> list=new LinkedList<IPoint>(); IPoint p1=heap.smallest...
Use Andrew's algorithm to return the computed convex hull for the input set of points. Implementation uses a Binary Heap rather than sorting initial set.
private void init(){ graphheight=Math.min(height,width) - (3 * border); graphwidth=Math.min(height,width) - (3 * border); int largestSize=getLargestSize(values); largest_value_set=values.get(largestSize).getList(); size=largest_value_set.size(); label_size=size - 1; calculateLogAxis(); if (labels != nul...
This method is used to initialize various parameters
@Override public void execute() throws BuildException { Java7Checker.check(); try { if (loader == null) { loader=Util.getCeylonClassLoaderCachedInProject(getProject()); } if (fromCeylonVersionMethod == null) { Class<?> klass=loader.loadClass("com.redhat.ceylon.model.loader.OsgiVersion"); ...
Executes the task.
public static void init(Context context,ILog logProxy){ sContext=context; LogImpl.setLogProxy(logProxy); }
Init with context and log class.
int numSlots(){ return vals.length; }
Current number of slots in the hash table
protected IgfsIpcEndpointConfiguration primaryIpcEndpointConfiguration(final String gridName){ IgfsIpcEndpointConfiguration cfg=new IgfsIpcEndpointConfiguration(); cfg.setType(IgfsIpcEndpointType.TCP); cfg.setPort(DFLT_IPC_PORT + getTestGridIndex(gridName)); return cfg; }
Get primary IPC endpoint configuration.
protected void initComponentDefaults(UIDefaults table){ super.initComponentDefaults(table); Color c=table.getColor("TextField.background"); table.put("ComboBox.background",c); table.put("ComboBox.listBackground",c); }
For overwriting Component defaults
public boolean isInvalidAfterReboot(){ return invalidAfterReboot; }
Ruft den Wert der invalidAfterReboot-Eigenschaft ab.
public Object runSafely(Catbert.FastStack stack) throws Exception { Airing a=getAir(stack); return new Long(a == null ? 0 : a.getSchedulingStart()); }
Get the start time for an airing accounting for any adjustments made due to Manual Recording stop/start time adjustments or adjustments due to favorite padding.
@Override public String toString(){ return "o_" + id; }
Returns the id as a string representation of this entry.
public void read(byte[] buf,int offset,int len) throws IOException { bfdi.readFully(buf,offset,len); }
Read bytes fully into a byte buffer. This call blocks until data are available.
private void ib3(int a,int b,int c,int d){ int t1=a | b; int t2=b ^ c; int t3=b & t2; int t4=a ^ t3; int t5=c ^ t4; int t6=d | t4; X0=t2 ^ t6; int t8=t2 | t6; int t9=d ^ t8; X2=t5 ^ t9; int t11=t1 ^ t9; int t12=X0 & t11; X3=t4 ^ t12; X1=X3 ^ (X0 ^ t11); }
InvS3 - { 0, 9,10, 7,11,14, 6,13, 3, 5,12, 2, 4, 8,15, 1 } - 15 terms
private void updateReportMailingJobAfterJobExecution(final ReportMailingJob reportMailingJob,final StringBuilder errorLog,final DateTime jobStartDateTime){ final String recurrence=reportMailingJob.getRecurrence(); final DateTime nextRunDateTime=reportMailingJob.getNextRunDateTime(); ReportMailingJobPreviousRunSta...
update the report mailing job entity after job execution
private int generateNonce(){ return RANDOM.nextInt(); }
Generates a nonce (number used once).
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case N4JSPackage.IMPORT_SPECIFIER__FLAGGED_USED_IN_CODE: return isFlaggedUsedInCode(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public boolean isRecursive(){ return recursive; }
Gets the value of the recursive property.
private String[] computeSegments(String path){ int segmentCount=computeSegmentCount(path); if (segmentCount == 0) return NO_SEGMENTS; String[] newSegments=new String[segmentCount]; int len=path.length(); int firstPosition=(path.charAt(0) == SEPARATOR) ? 1 : 0; if (firstPosition == 1 && len > 1 && (path.ch...
Computes the segment array for the given canonicalized path.