code
stringlengths
10
174k
nl
stringlengths
3
129k
void makeCall(int fromMemberId,int toMemberId) throws IOException { outgoing(true,fromMemberId,toMemberId); }
Initiates a call to the remote member.
public void layoutAfter(){ }
Do post-staff before layout. Subclass may provide different implementation.
protected void preInstantiate(Object name,Map attributes,Object value){ for ( Closure preInstantiateDelegate : getProxyBuilder().getPreInstantiateDelegates()) { (preInstantiateDelegate).call(new Object[]{this,attributes,value}); } }
A hook before the factory creates the node.<br> It will call any registered preInstantiateDelegates, if you override this method be sure to call this impl somewhere in your code.
public static String calledPartyBCDToString(byte[] bytes,int offset,int length){ boolean prependPlus=false; StringBuilder ret=new StringBuilder(1 + length * 2); if (length < 2) { return ""; } if ((bytes[offset] & 0xf0) == (TOA_International & 0xf0)) { prependPlus=true; } internalCalledPartyBCDFrag...
3GPP TS 24.008 10.5.4.7 Called Party BCD Number See Also TS 51.011 10.5.1 "dialing number/ssc string" and TS 11.11 "10.3.1 EF adn (Abbreviated dialing numbers)"
public DocumentLoader(UserAgent userAgent){ this.userAgent=userAgent; documentFactory=new SAXSVGDocumentFactory(userAgent.getXMLParserClassName(),true); documentFactory.setValidating(userAgent.isXMLParserValidating()); }
Constructs a new <tt>DocumentLoader</tt> with the specified XML parser.
public static DataSet discreteSerializableInstance(){ List<Node> variables=new LinkedList<>(); variables.add(new DiscreteVariable("X",2)); DataSet dataSet=new ColtDataSet(2,variables); dataSet.setInt(0,0,0); dataSet.setInt(1,0,1); return dataSet; }
A discrete data set used to construct some other serializable instances.
public void progressUpdate(ProgressEvent evt){ System.out.println("update: received progressevent " + evt); if (flag.nextSetBit(1) == -1) flag.set(1); }
Update progress.
public Node appendChild(Node newChild){ if (newChild == null) { throw new IllegalArgumentException("newChild == null!"); } checkNode(newChild); return insertBefore(newChild,null); }
Adds the node <code>newChild</code> to the end of the list of children of this node.
public static void main(String[] args){ junit.textui.TestRunner.run(CallableStatementTest.class); }
Runs all test cases in this test suite
public int read(final byte[] data){ init(); if (data != null) { rawData=ByteBuffer.wrap(data); rawData.rewind(); rawData.order(ByteOrder.LITTLE_ENDIAN); readHeader(); if (!err()) { readContents(); if (frameCount < 0) { status=STATUS_FORMAT_ERROR; } } } else { ...
Reads GIF image from byte array
@Nonnull public Label addLabel(@Nonnull String name){ Label label=labels.get(name); if (label != null) { if (label.isPlaced()) { throw new IllegalArgumentException("There is already a label with that name."); } else { currentLocation.getLabels().add(label); } } else { label=currentLo...
Adds a new named label at the current location. Any previous unplaced references to a label of this name will now refer to this label/location
public Bindings add(String property,JTextArea textArea){ registerPropertyChangeListener(textArea); return add(new JTextAreaBinding(property,textArea)); }
Handles JTextArea lists
private <Result,Body>Result sendRequestInternal(final IHttpRequest request,final Class<Result> resultClass,final Body serializable,final IProgressCallback<Result> progress) throws ClientException { final int defaultBufferSize=4096; final String contentLengthHeaderName="Content-Length"; final String binaryContentT...
Sends the http request.
void signalOK(CCheckBox cb,String resString,boolean pass,boolean critical,String errorMsg){ m_errorString=res.getString(resString); cb.setSelected(pass); if (pass) cb.setToolTipText(null); else { cb.setToolTipText(errorMsg); m_errorString+=" \n(" + errorMsg + ")"; } if (!pass && critical) cb.setB...
UI Signal OK
public boolean equals(java.lang.Object obj){ return obj.getClass() == getClass() && ((Short)obj).value == value; }
Compares this object to the specified object.
protected boolean drawImageToPlatform(Image image,AffineTransform xform,Color bgcolor,int srcX,int srcY,int srcWidth,int srcHeight,boolean handlingTransparency){ BufferedImage img=getBufferedImage(image); if (img == null) { return true; } PSPrinterJob psPrinterJob=(PSPrinterJob)getPrinterJob(); AffineTran...
The various <code>drawImage()</code> methods for <code>WPathGraphics</code> are all decomposed into an invocation of <code>drawImageToPlatform</code>. The portion of the passed in image defined by <code>srcX, srcY, srcWidth, and srcHeight</code> is transformed by the supplied AffineTransform and drawn using PS to the p...
private Shape decodeMarkBorder(int width,int height){ int left=(width - 3) / 2 - 5; int top=(height - 2) / 2 - 5; path.reset(); path.moveTo(left + 1,top + 0); path.lineTo(left + 3,top + 0); path.pointAt(left + 4,top + 1); path.pointAt(left + 5,top + 2); path.pointAt(left + 6,top + 1); path.moveTo(left...
Create the shape for the mark border.
public boolean isExtendedLengthApduSupported(){ try { return mTag.getTagService().getExtendedLengthApdusSupported(); } catch ( RemoteException e) { Log.e(TAG,"NFC service dead",e); return false; } }
<p>Standard APDUs have a 1-byte length field, allowing a maximum of 255 payload bytes, which results in a maximum APDU length of 261 bytes. <p>Extended length APDUs have a 3-byte length field, allowing 65535 payload bytes. <p>Some NFC adapters, like the one used in the Nexus S and the Galaxy Nexus do not support extend...
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:53.602 -0400",hash_original_method="A9F98BACB414F0E2CFCA50969D92D7AA",hash_generated_method="4CE986A26E8ABEC6065A5FB1030C34CD") public NameFileFilter(String[] names){ this(names,null); }
Constructs a new case-sensitive name file filter for an array of names. <p> The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
protected void desFunc(int[] wKey,byte[] in,int inOff,byte[] out,int outOff){ int work, right, left; left=(in[inOff + 0] & 0xff) << 24; left|=(in[inOff + 1] & 0xff) << 16; left|=(in[inOff + 2] & 0xff) << 8; left|=(in[inOff + 3] & 0xff); right=(in[inOff + 4] & 0xff) << 24; right|=(in[inOff + 5] & 0xff) << ...
the DES engine.
public PermutedFrontCodedStringList(final FrontCodedStringList frontCodedStringList,final int[] permutation){ this.frontCodedStringList=frontCodedStringList; this.permutation=permutation; }
Creates a new permuted front-coded string list using a given front-coded string list and permutation.
public long restartTime(long now){ if (mNumFailed == 0) { return now; } if (mRetryAfter > 0) { return mLastMod + mRetryAfter; } return mLastMod + Constants.RETRY_FIRST_DELAY * (1000 + mFuzz) * (1 << (mNumFailed - 1)); }
Returns the time when a download should be restarted.
public void body(String namespace,String name,String text) throws Exception { }
<p>No body processing is required.</p>
@VisibleForTesting void writeSpeed(double speed,StringBuilder builder,int resId,String lineBreak){ double speedInKmHr=speed * UnitConversions.MS_TO_KMH; double speedInMiHr=speedInKmHr * UnitConversions.KM_TO_MI; builder.append(context.getString(resId,speedInKmHr,speedInMiHr)); builder.append(lineBreak); }
Writes speed.
private void checkState(){ if (mIsClosed) { throw new IllegalStateException("Client instance can't be used after being closed."); } }
Used to check the state of the client instance.
private String createVarCSVHelper() throws LopsException { StringBuilder sb=new StringBuilder(); if (operation == OperationTypes.READ) { Data headerLop=(Data)getNamedInputLop(DataExpression.DELIM_HAS_HEADER_ROW); Data delimLop=(Data)getNamedInputLop(DataExpression.DELIM_DELIMITER); Data fillLop=(Data)ge...
Helper function that attaches CSV format-specific properties to createvar instruction. The set of properties that are attached for a READ operation is different from that for a WRITE operation.
protected String form(ObjectMatrix1D matrix,int index,Former formatter){ Object value=matrix.get(index); if (value == null) return ""; return String.valueOf(value); }
Converts a given cell to a String; no alignment considered.
public void stopDb(){ mysqldResource.shutdown(); LOG.debug("MySQL stoppped succcessfully"); }
Stop the database.
public InvalidAlgorithmParameterException(){ super(); }
Constructs an InvalidAlgorithmParameterException with no detail message. A detail message is a String that describes this particular exception.
public boolean isRBIT_TEST(){ switch (value) { case RBIT_TEST: case NO_RBIT_TEST: return true; default : return false; } }
Is the condition code a flag operation following a reversed bit test?
@Nullable private Object toSimpleObject(Class cls,String val){ if (val == null || val.equals("null")) return null; if (String.class == cls) return val; if (Boolean.class == cls || Boolean.TYPE == cls) return Boolean.parseBoolean(val); if (Integer.class == cls || Integer.TYPE == cls) return Integer.parse...
Cast from string representation to target class.
private List<URI> orderNetworksByNumberOfPorts(Map<URI,List<StoragePort>> allocatablePorts){ List<URI> orderedNetworks=new ArrayList<URI>(); Map<Integer,Set<URI>> numPortsToNetworkSet=new HashMap<Integer,Set<URI>>(); for ( URI networkURI : allocatablePorts.keySet()) { int numPorts=allocatablePorts.get(networ...
Order the networks from those with least ports to those with most ports.
public boolean isRemoteBranchFile(String filePath){ return filePath.startsWith(myRefsRemotesDirPath); }
Any file in .git/refs/remotes, i.e. a remote branch reference file.
@Override public void configureZone(final StendhalRPZone zone,final Map<String,String> attributes){ buildSecretRoomArea(zone); }
Configure a zone.
public static <E>boolean isEmpty(Collection<E> c){ return (c == null) || c.isEmpty(); }
Check whether collection c is empty.
public int tint(){ return tint; }
Returns the currently configured tint.
public static Timestamp trunc(Timestamp p_dateTime){ Timestamp time=p_dateTime; if (time == null) time=new Timestamp(System.currentTimeMillis()); GregorianCalendar cal=new GregorianCalendar(); cal.setTime(time); cal.set(Calendar.HOUR_OF_DAY,0); cal.set(Calendar.MINUTE,0); cal.set(Calendar.SECOND,0); c...
Truncate Date
private boolean isPointerNumChanged(MotionEvent event){ return event.getActionMasked() == MotionEvent.ACTION_DOWN || event.getActionMasked() == MotionEvent.ACTION_POINTER_DOWN || event.getActionMasked() == MotionEvent.ACTION_UP || event.getActionMasked() == MotionEvent.ACTION_POINTER_UP || event.getActionMasked() == ...
Tell whether the number of motion event's pointer changed.
private final void init(){ super.addMouseListener(listMouseAdapter); super.setCellRenderer(listCellRenderer); }
Adds the primary MouseAdapter and ListCellRenderer to the JList
public Iterator<Entry<String,List<String>>> iterator(){ return fields.entrySet().iterator(); }
Iterate over all fields.
protected void drawTickMarksVertical(Graphics2D g2,AxisState state,Rectangle2D dataArea,RectangleEdge edge){ }
Draws the tick marks for a vertical axis.
public ActionForward executeAction(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws Exception { HttpSession session=request.getSession(); String idEntidad=(String)session.getAttribute(Misc.ENTIDAD_ID); ServletOutputStream output=null; try { ServicioConsul...
Se sobrescribe el metodo execute de la clase Action
public int addItemToEnd(String productId,BigDecimal amount,BigDecimal quantity,BigDecimal unitPrice,Timestamp reservStart,BigDecimal reservLength,BigDecimal reservPersons,HashMap<String,GenericValue> features,HashMap<String,Object> attributes,String prodCatalogId,String itemType,LocalDispatcher dispatcher,Boolean trigg...
Add an (rental)item to the shopping cart.
private DateUtils(){ }
Creates a new instance of DateUtils
public static Drawable bitmapToDrawable(Bitmap bitmap){ return new BitmapDrawable(bitmap); }
Bitmap to drawable
protected Transferable createTransferable(JComponent c){ if (c instanceof JList) { JList list=(JList)c; Object[] values=list.getSelectedValues(); if (values == null || values.length == 0) { return null; } StringBuffer plainBuf=new StringBuffer(); StringBuffer htmlBuf=new StringBuffer(); ...
Create a Transferable to use as the source for a data transfer.
byte[] slabTable(Address addr,boolean allocate){ Address base=addr.toWord().and(MMAP_SLAB_MASK.not()).toAddress(); final int hash=hash(base); int index=hash; if (STATS) hashAttemptCounter.inc(); while (true) { if (base.EQ(slabMap.get(index))) { return slabTableFor(addr,index); } if (STATS)...
Look up the hash table and return the corresponding slab of chunks.
public void removeScrollingListener(OnWheelScrollListener listener){ scrollingListeners.remove(listener); }
Removes wheel scrolling listener
public InlineQueryResultCachedGifBuilder id(String id){ this.id=id; return this; }
*Optional Sets the ID to the provided value. If none is set a random 32 char long ID will be generated.
public AbstractBooleanList partFromTo(int from,int to){ if (size == 0) return new BooleanArrayList(0); checkRangeFromTo(from,to,size); boolean[] part=new boolean[to - from + 1]; System.arraycopy(elements,from,part,0,to - from + 1); return new BooleanArrayList(part); }
Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>, inclusive.
public GenericSignatureParser(String signature){ int s=signature.indexOf('('); String sig=signature; if (s > 0) sig=sig.substring(s); else if (s < 0 || sig.indexOf(':') >= 0 || sig.startsWith("(V)")) throw new IllegalArgumentException("Bad method signature: " + signature); this.signature=sig; }
Parses a generic method signature of the form: <code>(argument_signature)return_type_signature</code>
private int scanToken(int startPos){ int position=startPos; while (position < maxPosition) { char c=str.charAt(position); if ((c <= maxDelimChar) && (delimiters.indexOf(c) >= 0)) break; position++; } if (retDelims && (startPos == position)) { char c=str.charAt(position); if ((c <= maxDel...
Skips ahead from startPos and returns the index of the next delimiter character encountered, or maxPosition if no such delimiter is found.
public boolean isNonIDRSlice(){ if (FUI_TYPE == (byte)0x01) { return true; } if (isFrameNonInterleaved() && FUH_TYPE == (byte)0x01) { return true; } return false; }
Verifies if packet is a code slice of a NON IDR picture
public void initRestAssured(){ super.initRestAssured(); RestAssured.requestSpecification.basePath(ROOT); RestAssured.requestSpecification.baseUri("http://localhost:" + MAIN_PORT + ROOT); }
Overwrite RestAssured configuration
public static int terminateProcessById(String pid,Boolean includeChildProcesses,Boolean terminateProcessForcefully){ List<String> command=new ArrayList<String>(); if (isWindows()) { command.add("taskkill"); command.add("/PID"); command.add(pid); if (includeChildProcesses) { command.add("/T"); ...
Kills a process by its id. For windows it uses "taskkill" command, i.e. - Kill a process and its children processes forcefully: "taskkill /PID <pid> /T /F" - Kill a process normally without its children processes: "taskkill /PID <pid>" For Linux & Mac it uses "pkill" and "kill" command, i.e. - Kill a process and its ch...
static void println(String key){ System.out.println(format(key)); }
Format and print a simple string.
public RentedSignList(final StendhalRPZone zone,final Shape shape){ super(zone,shape,RentedSign.class); setupTurnNotifier(60 * 60); }
Creates a new RentedSignList.
protected Grant(){ }
Dear JPA...
@Override public void close() throws IOException { super.close(); }
Closes this stream. This releases system resources used for this stream.
private void listUpdated(){ titleCounts=String.valueOf(list.getModel().getSize()); updateTitle(); }
Called when any list data was changed (added/removed/"new" color).
public boolean isPrivileged(){ return privileged; }
Indicates whether the user has been granted administrator privileges.
public static EncryptionKey acquireSecretKey(PrincipalName cname,char[] password,int etype,PAData.SaltAndParams snp) throws KrbException { String salt; byte[] s2kparams; if (snp != null) { salt=snp.salt != null ? snp.salt : cname.getSalt(); s2kparams=snp.params; } else { salt=cname.getSalt(); s...
Obtains a key for a given etype of a principal with possible new salt and s2kparams
private boolean isNextCharacterEscapedQuote(String nextLine,boolean inQuotes,int i){ return inQuotes && nextLine.length() > (i + 1) && isCharacterQuoteCharacter(nextLine.charAt(i + 1)); }
Checks to see if the character after the index is a quotation character. Precondition: the current character is a quote or an escape.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public CostEstimate sequence(CostEstimate next){ return new CostEstimate(next.rowCount,cost + next.cost); }
Cost of one operation after the other.
public String toString(StringEncoding encoding){ return encode(toByteArray(),encoding); }
Encodes the baggage to a string, using the provided encoding. Valid encoders are BASE16, BASE32, BASE32HEX, BASE64, BASE64URL. Uses Google's encoders to do the encoding. Once the baggage has been encoded, its contents are cleared.
public void addLanguageResource(String key,Resource resource){ if (!isLanguageAllowed(key)) { logger.debug("OMITTING language: \"{}\"",key); return; } Resource existing=resources.get(key); if (existing != null) { try { JsonNode existingTree=parseLanguageResource(existing); if (existingTr...
Adds or overlays the given language resource, which need not exist in the ServletContext. If a language resource is already defined for the given language key, the strings from the given resource will be overlaid on top of the existing strings, augmenting or overriding the available strings for that language.
public void testGetStatement() throws SQLException { DatabaseMetaData meta=conn.getMetaData(); ResultSet info=meta.getTypeInfo(); Statement statement2=info.getStatement(); assertNull(statement2); statement2=res.getStatement(); assertEquals(st,statement2); try { res.close(); res.getStatement(); ...
According to spec info.getStatement should return null but an exception is thrown: stale result set.
@Nullable public static String unmask(String cacheName){ return DEFAULT_MASK_NAME.equals(cacheName) ? null : cacheName; }
Unmask cache name.
protected HeadlessGfsh createShell(){ try { Gfsh.SUPPORT_MUTLIPLESHELL=true; String shellId=getClass().getSimpleName() + "_" + getName(); HeadlessGfsh shell=new HeadlessGfsh(shellId,30,this.gfshDir); info("Started testable shell: " + shell); return shell; } catch ( ClassNotFoundException e) { ...
Create a HeadlessGfsh object.
public Attribute_ createAttribute_(){ Attribute_Impl attribute_=new Attribute_Impl(); return attribute_; }
<!-- begin-user-doc --> <!-- end-user-doc -->
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:27.376 -0500",hash_original_method="3040DA05407F13E8561F02C468A7DEB4",hash_generated_method="96B96B503A807A17EFBA37C423574278") public Entry(String tag,long millis,String text){ if (tag == null) throw new NullPointerException("t...
Create a new Entry with plain text contents.
public long duration(){ if (mPlayer != null && mPlayer.isInitialized()) { return mPlayer.duration(); } return -1; }
Returns the full duration of the current track
public TimeOffset add(final TimeOffset offset){ return new TimeOffset(this.getRaw() + offset.getRaw()); }
Adds a time offset to another time offset.
private boolean checkDBConnectivity(boolean createDB,boolean ignoreError) throws ReplicatorException { Database conn=null; try { conn=connectionManager.getRawConnection(createDB); conn.connect(); return true; } catch ( SQLException e) { if (!ignoreError) { throw new ReplicatorException("Un...
Checks ability to connect to DBMS using JDBC.
public boolean isShowBillingTypeSelectStep(){ if (model.getBillingSharesResultTypes() == null) return false; if (model.getBillingSharesResultTypes().contains(BillingSharesResultType.RESELLER)) return true; if (model.getBillingSharesResultTypes().contains(BillingSharesResultType.SUPPLIER)) return true; if ...
indicates whether the billingtypeselector step should be displayed. broker , marketplaceOwner and customer do not show it
private static String[] nameMethodFields(RemoteClass.Method[] methods){ String[] names=new String[methods.length]; for (int i=0; i < names.length; i++) { names[i]="$method_" + methods[i].methodDoc().name() + "_"+ i; } return names; }
Generates an array of names for fields correspondins to the given array of remote methods. Each name in the returned array is guaranteed to be unique. The name of a method is included in its corresponding field name to enhance readability of the generated code.
public void storeFinishedWorkers(boolean flag){ _storeFinishedWorkers=flag; }
a mutable flag indicating if finished processes are stored and can later be retrieved with the api.
private void fillEmptySlots(final int slot,final BucketPage bucketPage){ int slots=fillEmptySlots(slot,bucketPage,0,1 << htree.addressBits); assert bucketPage.globalDepth == htree.addressBits; bucketPage.globalDepth=htree.addressBits; while (slots > 1) { slots>>=1; bucketPage.globalDepth--; } }
This is a lazy creation of a BucketPage to fill the relevant number of slots based on the number of empty slots surrounding it. If all slots are empty, then they will all be filled with references to the new page. The regions tested follow the pattern below: [A A A A A A A A] [A A A A B B B B] [A A B B C C D D] [A B C ...
public void addModules(List<Module> modules){ for ( Module module : modules) { addModule(module); } }
Adds the list of modules to this processing chain
private void writeObject(ObjectOutputStream aOutputStream) throws IOException { aOutputStream.defaultWriteObject(); }
This is the default implementation of writeObject. Customize if necessary.
String writeToTmpFile(Iterable<String> data) throws IOException { return writeToNamedTmpFile("tmp_file",FluentIterable.from(data).toArray(String.class)); }
Writes the data to a temporary file and then returns a path to the file.
private Map<UUID,Collection<HadoopInputSplit>> mappers(Collection<ClusterNode> top,Collection<UUID> topIds,Iterable<HadoopInputSplit> splits) throws IgniteCheckedException { Map<UUID,Collection<HadoopInputSplit>> mappers=new HashMap<>(); Map<String,Collection<UUID>> nodes=groupByHost(top); Map<UUID,Integer> nodeL...
Create plan for mappers.
public final void removeSubTree(){ if (getLastMove() != null) { tree.goBack(); int defChild=tree.currentNode.defaultChild; tree.deleteVariation(defChild); } else { while (canRedoMove()) tree.deleteVariation(0); } pendingDrawOffer=false; updateTimeControl(true); }
Delete whole game sub-tree rooted at current position.
@Override public boolean hasFunctionalArmAES(int location){ boolean hasAES=false; if ((location != Mech.LOC_RARM) && (location != Mech.LOC_LARM)) { return false; } for ( Mounted mounted : getMisc()) { if ((mounted.getLocation() == location) && mounted.getType().hasFlag(MiscType.F_ACTUATOR_ENHANCEMENT_S...
Checks is Biped Mek has functional AES in the location. Only works for Arms
public void logDelete(IgfsPath path,IgfsMode mode,boolean recursive){ addEntry(new Entry(TYPE_DELETE,path.toString(),mode,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,recursive,null)); }
Log delete event.
public static Distribution guessMaxCoeff(DataSet d){ return new LogUniform(Math.pow(2,0),Math.pow(2,4)); }
Guesses the distribution to use for the MaxCoeff parameter
protected String format(Map<?,?> props,int maxLength){ StringWriter writer=new StringWriter(); PrintWriter printer=new PrintWriter(writer,true); Iterator<?> keyIterator=props.keySet().iterator(); int keyLength=keyHeader.length(); int valueLength=valueHeader.length(); TreeMap<String,String[]> sortedPropertie...
Object formatter for Map instance. This sorts keys and then formats the key value pairs into a nice tabular representation.
public void elementAttributesProcessed(String name,String nsPrefix,String nsURI){ }
This method is called when the attributes of an XML element have been processed.
public boolean isReachableMethod(SootMethod method){ return ptsProvider.getAllReachableMethods().contains(method); }
Return true if this method is a reachable method.
public URL generateURL(String baseUrl) throws MalformedURLException { return computeCompositeUpdateSiteURL(baseUrl,null,null,null,null,null); }
For redirecting pings to a different update site.
public RelationPair(PatternReference pattern){ this(pattern.getSourceType(),pattern.getTargetType()); }
Instantiates a new relation pair.
@Override public Color match(DirectoryElement element){ return getColor(ColorPreferencesIds.COLOR_DIRECTORY); }
Returns the <code>Color</code> for the given element.
public static Dcsn cs_chol(Dcs A,Dcss S){ double d, lki, Lx[], x[], Cx[]; int top, i, p, k, n, Li[], Lp[], cp[], pinv[], s[], c[], parent[], Cp[], Ci[]; Dcs L, C; Dcsn N; if (!Dcs_util.CS_CSC(A) || S == null || S.cp == null || S.parent == null) return (null); n=A.n; N=new Dcsn(); c=new int[2 * n]; x...
Numeric Cholesky factorization LL=PAP'.
public int hashCode(){ return mFileSuffixList.hashCode() + mMimeTypeList.hashCode() + mDescription.hashCode(); }
Overridden hash code implementation.
@SuppressWarnings("unchecked") private void rehash(HashEntry<K,V> node){ HashEntry<K,V>[] oldTable=table; int oldCapacity=oldTable.length; int newCapacity=oldCapacity << 1; threshold=(int)(newCapacity * loadFactor); HashEntry<K,V>[] newTable=(HashEntry<K,V>[])new HashEntry<?,?>[newCapacity]; int sizeMask=ne...
Doubles size of table and repacks entries, also adding the given node to new table
public static boolean testRaySphere(Vector3d origin,Vector3d dir,Vector3d center,double radiusSquared){ return testRaySphere(origin.x,origin.y,origin.z,dir.x,dir.y,dir.z,center.x,center.y,center.z,radiusSquared); }
Test whether the ray with the given <code>origin</code> and normalized direction <code>dir</code> intersects the sphere with the given <code>center</code> and square radius. <p> This method returns <code>true</code> for a ray whose origin lies inside the sphere. <p> Reference: <a href="http://www.scratchapixel.com/less...
protected BusinessObjectData restoreBusinessObjectDataImpl(BusinessObjectDataKey businessObjectDataKey){ BusinessObjectDataRestoreDto businessObjectDataRestoreDto=businessObjectDataInitiateRestoreHelperService.prepareToInitiateRestore(businessObjectDataKey); notificationEventService.processStorageUnitNotificationEv...
Initiates a restore request for a currently archived business object data. Keeps current transaction context.
public SearchSourceBuilder query(BytesReference queryBinary){ if (this.querySourceBuilder == null) { this.querySourceBuilder=new QuerySourceBuilder(); } this.querySourceBuilder.setQuery(queryBinary); return this; }
Constructs a new search source builder with a raw search query.
public static byte[] toBitmask(SupportedNewAlertCategory... categories){ byte[] result=new byte[2]; for ( SupportedNewAlertCategory category : categories) { result[category.byteNumber()]|=category.asBit(); } return result; }
Converts the given categories to an array of bytes.