code
stringlengths
10
174k
nl
stringlengths
3
129k
protected void onCreate(Bundle icicle){ super.onCreate(icicle); mAccountAuthenticatorResponse=getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); if (mAccountAuthenticatorResponse != null) { mAccountAuthenticatorResponse.onRequestContinued(); } }
Retreives the AccountAuthenticatorResponse from either the intent of the icicle, if the icicle is non-zero.
@SuppressWarnings("SimplifiableIfStatement") boolean inject(Object target,Class<? extends Annotation> annCls,GridResourceInjector injector,@Nullable GridDeployment dep,@Nullable Class<?> depCls) throws IgniteCheckedException { return injectInternal(target,annCls,injector,dep,depCls,null); }
Injects given resource via field or setter with specified annotations on provided target object.
@Transactional public void removeRoleFromUsers(String roleName,Set<String> userIds,String operatorUserId){ Role role=findRoleByRoleName(roleName); Preconditions.checkState(role != null,"Role %s doesn't exist!",roleName); List<UserRole> existedUserRoles=userRoleRepository.findByUserIdInAndRoleId(userIds,role.getId...
Remove role from users
public boolean isDefSiteStructuralTyping(){ ParameterizedTypeRef _actualThisTypeRef=this.getActualThisTypeRef(); if ((_actualThisTypeRef instanceof TN4Classifier)) { ParameterizedTypeRef _actualThisTypeRef_1=this.getActualThisTypeRef(); TypingStrategy _typingStrategy=((TN4Classifier)_actualThisTypeRef_1).ge...
<!-- begin-user-doc --> <!-- end-user-doc -->
@NoInline @NoOptCompile public static Object invokeWithDotDotVarArg(Object obj,int methodID,TypeReference expectReturnType,boolean skip4Args) throws Exception { MethodReference mr=MemberReference.getMethodRef(methodID); Address varargAddress=getVarArgAddress(skip4Args); Object[] argObjectArray=packageParameterFro...
Common code shared by the JNI functions Call&lt;type&gt;Method (virtual method invocation)
public ActionList(){ super(0); }
Creates a new run-once ActionList.
public FormatException(String message,Throwable cause){ super(message,cause); }
Constructs a new exception with the specified detail message and cause. <p> <p>Note that the detail message associated with <code>cause</code> is <i>not</i> automatically incorporated in this exception's detail message.
private void handlePopupEvent(final Event event){ switch (event.type) { case SWT.Close: event.doit=false; changeVisibilityOfPopupWindow(false); break; case SWT.Deactivate: changeVisibilityOfPopupWindow(false); break; case SWT.Dispose: if (this.checkboxes != null) { this.checkboxes.clear(); } this.checkboxes=null;...
Handle a popup event
public void test_HASSTMT_includeInferred() throws Exception { doInsertbyURL("POST",packagePath + "test_estcard.ttl"); assertFalse(m_repo.hasStatement(OWL.EQUIVALENTCLASS,RDFS.SUBPROPERTYOF,RDFS.SUBCLASSOF,false)); assertTrue(m_repo.hasStatement(OWL.EQUIVALENTCLASS,RDFS.SUBPROPERTYOF,RDFS.SUBCLASSOF,true)); long...
Test the HASSTMT method for correct handling of the includeInferred parameter.
public boolean hasAccessExt(){ return hasExtension(GphotoAccess.class); }
Returns whether it has the access level for the album.
public TextAppearanceSpan(Context context,int appearance){ this(context,appearance,-1); }
Uses the specified TextAppearance resource to determine the text appearance. The <code>appearance</code> should be, for example, <code>android.R.style.TextAppearance_Small</code>.
@Override public void generateCode(BlockScope currentScope,boolean valueRequired){ BranchLabel falseLabel; if (this.constant != Constant.NotAConstant) { return; } Constant cst=this.condition.optimizedBooleanConstant(); boolean needTruePart=!(cst != Constant.NotAConstant && cst.booleanValue() == false); ...
Code generation for the conditional operator ?:
public Vector2f mul(float scalar){ this.x*=scalar; this.y*=scalar; return this; }
Multiply the components of this vector by the given scalar.
protected boolean backupAttributeValueIsNull(WriteObjectQuery query){ if (query.getSession().isUnitOfWork()) { Object backupAttributeValue=getAttributeValueFromObject(query.getBackupClone()); if (backupAttributeValue == null) { return true; } } return false; }
INTERNAL: Return whether the query's backup object has an attribute value of null.
static Set<File> retainAncestors(File... roots){ if (roots == null) { return new HashSet<File>(); } for (int i=0; i < roots.length; i++) { for (int j=i + 1; j < roots.length && roots[i] != null; j++) { if (roots[j] != null) { if (FileUtils.isAncestor(roots[i],roots[j])) { roots[j]=...
Retains common ancestors and removes subfolders since they will be part of the recursive sharing.
private void preInsert(RdKNNEntry q,RdKNNEntry nodeEntry,KNNHeap knns_q){ double knnDist_q=knns_q.getKNNDistance(); RdKNNNode node=getNode(nodeEntry); double knnDist_node=0.; if (node.isLeaf()) { for (int i=0; i < node.getNumEntries(); i++) { RdKNNLeafEntry p=(RdKNNLeafEntry)node.getEntry(i); do...
Adapts the knn distances before insertion of entry q.
protected static boolean tienePermisosAdministracion(ISicresGenPerms genPerms){ return (genPerms.isCanModifyAdminUnits() || genPerms.isCanModifyIssueTypes() || genPerms.isCanModifyReports()|| genPerms.isCanModifyTransportTypes()|| genPerms.isCanModifyUsers()); }
Metodo para comprobar si el usuario que esta logueandose tiene permisos de administracion
synchronized void unlock(){ if (isLockedExclusive) { isLockedExclusive=false; } else { sharedLockCount=Math.max(0,sharedLockCount - 1); } }
Unlock the file.
public void run(){ runWorker(this); }
Delegates main run loop to outer runWorker
private boolean evalTextOp(String fvalue,final Operator operator,String value){ if (value == null) return false; value=value.toLowerCase(); if (operator != Operator.MATCHES) fvalue=fvalue.toLowerCase(); switch (operator) { case CONTAINS: return value.contains(fvalue); case ENDS_WITH: return value.endsWi...
Evaluates the text operator.
public Writer write(Writer writer) throws JSONException { return this.write(writer,0,0); }
Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. <p> Warning: This method assumes that the data structure is acyclical.
public static String stringFor(int n){ switch (n) { case cudaComputeModeDefault: return "cudaComputeModeDefault"; case cudaComputeModeExclusive: return "cudaComputeModeExclusive"; case cudaComputeModeProhibited: return "cudaComputeModeProhibited"; case cudaComputeModeExclusiveProcess: return "cudaComputeModeExclu...
Returns the String identifying the given cudaComputeMode
public boolean isTopic(){ return isTopic; }
Returns true if the destination is a topic, false if the destination is a queue.
public CommentedLineReader(Reader in){ super(in); }
Constructs a buffered reader that ignores lines starting with the # character.
private void executeFallbacks(TransformerImpl transformer) throws TransformerException { for (ElemTemplateElement child=m_firstChild; child != null; child=child.m_nextSibling) { if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK) { try { transformer.pushElemTemplateElement(child); ((Elem...
Execute the fallbacks when an extension is not available.
private static Pair<Map<String,String>,ZyGraphViewSettings> loadNonNativeSettings(final INaviView view){ try { return CViewSettingsGenerator.createSettings(view); } catch ( final CouldntLoadDataException exception) { final ConfigManager configFile=ConfigManager.instance(); final ZyGraphViewSettings gr...
Generates the graph settings for a non-native view.
public boolean isChunkLoaded(int x,int z){ Key key=new Key(x,z); return chunks.containsKey(key) && chunks.get(key).isLoaded(); }
Checks if the Chunk at the specified coordinates is loaded.
public TStream<byte[]> receiveBytes(){ return receiveBinary(null); }
Create a stream of byte[] tuples from received WebSocket binary messages. <p> Note, the WebSocket protocol differentiates between text/String and binary/byte messages. This method only receives messages sent as bytes.
public Matrix3 invert(){ throw new UnsupportedOperationException("Matrix3.invert is not implemented"); }
Inverts this matrix in place. <p/> This throws an exception if this matrix is singular.
public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out=response.getWriter(); out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); out.println("<HTML>"); out.println(" ...
The doPost method of the servlet. <br> This method is called when a form has its tag value method equals to post.
public void testStoppedConsumerHoldsMessagesTillStarted() throws JMSException { Session startedSession=startedConnection.createSession(false,Session.AUTO_ACKNOWLEDGE); Session stoppedSession=stoppedConnection.createSession(false,Session.AUTO_ACKNOWLEDGE); Topic topic=startedSession.createTopic("test"); MessageC...
Tests if the consumer receives the messages that were sent before the connection was started.
public final void pushCurrentExpressionNode(int n){ m_currentExpressionNodes.push(n); }
Set the current node that is the expression's context (i.e. for current() support).
@ModelAttribute public void onStart(){ }
This is executed every time a request is made.
private static void delete(File f){ if (f.isDirectory()) { for ( File c : f.listFiles()) { delete(c); } } if (!f.delete()) { PrintStream err=System.err; err.println("Failed to delete file: " + f); } }
Recursively deletes a file that may represent a directory.
protected static void checkFileContent(IgfsImpl igfs,IgfsPath file,@Nullable byte[]... chunks) throws IOException, IgniteCheckedException { if (chunks != null && chunks.length > 0) { IgfsInputStream is=null; try { is=igfs.open(file); int chunkIdx=0; int pos=0; for ( byte[] chunk :...
Ensure that the given file has exactly the same content as provided in the "data" parameter.
private static byte[] encode3to4(byte[] source,int srcOffset,int numSigBytes,byte[] destination,int destOffset,byte[] alphabet){ int inBuff=(numSigBytes > 0 ? ((source[srcOffset] << 24) >>> 8) : 0) | (numSigBytes > 1 ? ((source[srcOffset + 1] << 24) >>> 16) : 0) | (numSigBytes > 2 ? ((source[srcOffset + 2] << 24) >>>...
Encodes up to three bytes of the array <var>source</var> and writes the resulting four Base64 bytes to <var>destination</var>. The source and destination arrays can be manipulated anywhere along their length by specifying <var>srcOffset</var> and <var>destOffset</var>. This method does not check to make sure your array...
static public final float max(float[] list){ if (list.length == 0) { throw new ArrayIndexOutOfBoundsException(ERROR_MIN_MAX); } float max=list[0]; for (int i=1; i < list.length; i++) { if (list[i] > max) max=list[i]; } return max; }
Find the maximum value in an array. Throws an ArrayIndexOutOfBoundsException if the array is length 0.
public void storeArg(final int arg){ storeInsn(argumentTypes[arg],getArgIndex(arg)); }
Generates the instruction to store the top stack value in the given method argument.
public HashMetaDataPair(final Hash hash,final HashMetaData metaData){ this.hash=hash; this.metaData=metaData; }
Creates a pair.
private AccountVO createUserDataLdapLoginMode(String account,String password) throws Exception { if (account.length() > 24) { throw new Exception("Create user data fail! account ID length more then 24."); } if (password.length() > 35) { throw new Exception("Create user data fail! password length more then...
Create need user data when login by LDAP!
static void test1(ExecutorService pool,SocketChannel source,SocketChannel sink,int size) throws Exception { System.out.println("write(ByteBuffer), size=" + size); ByteBuffer buf=ByteBuffer.allocate(size); rand.nextBytes(buf.array()); Future<Long> result=pool.submit(new Reader(sink,size)); int n=source.write(b...
Exercise write(ByteBuffer) with given number of bytes.
public Iterator keys(){ return this.map.keySet().iterator(); }
Get an enumeration of the keys of the JSONObject.
public File showSaveDialog(final File file){ if (useNativeFileChooser) { return showSaveDialogNative(file); } else { return showSaveDialogSwing(file); } }
Shows dialog for saving files.
public X509Certificate engineLookupResolveX509Certificate(Element element,String BaseURI,StorageResolver storage) throws KeyResolverException { try { Element[] els=XMLUtils.selectDsNodes(element.getFirstChild(),Constants._TAG_X509CERTIFICATE); if ((els == null) || (els.length == 0)) { Element el=XMLUtil...
Method engineResolveX509Certificate
public TypesItemProviderAdapterFactory(){ supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
private int decodeDynamicRange(DynamicRangeControl cheDrc){ int n=1; int drcNumBands=1; if (br.readBool()) { cheDrc.pceInstanceTag=br.read(4); br.skip(4); n++; } if (br.readBool()) { n+=decodeDrcChannelExclusions(cheDrc); } if (br.readBool()) { cheDrc.bandIncr=br.read(4); cheDrc.in...
Decode dynamic range information; reference: table 4.52.
public void addTable(String tableName,int tableId){ tableCache.put(tableName,tableId); }
add to table id cache
protected Jerry(DOMBuilder builder,Node... nodes){ this.parent=null; this.nodes=nodes; this.builder=builder; }
Creates root Jerry.
@Override protected String createMenuItemText(int index,Setup item){ return FileUtils.createPartialFilename(item.getFile(),m_MinNumParentDirs); }
Generates the text for the menuitem.
public SVGFontElementBridge(){ }
Constructs a new bridge for the &lt;font> element.
public static <T,R extends Collection<T>>R addAllTo(Iterable<? extends T> iterable,R targetCollection){ Iterate.addAllIterable(iterable,targetCollection); return targetCollection; }
Add all elements from the source Iterable to the target collection, return the target collection.
private void connect(){ Connection c=Connections.getInstance(context).getConnection(clientHandle); c.changeConnectionStatus(Connection.ConnectionStatus.CONNECTED); c.addAction("Client Connected"); }
A connection action has been successfully completed, update the connection object associated with the client this action belongs to and then notify the user of success.
public void sendOne2OneDisplayedDeliveryReport(String msgId,ContactId remote,long timestamp) throws NetworkException { getOrCreateOneToOneChat(remote).sendDisplayedDeliveryReport(remote,msgId,timestamp); }
Tries to send a displayed delivery report for a one to one chat
public synchronized void stop(){ TIMER_LOGGER.logp(Level.FINER,Timer.class.getName(),"stop","stopping the timer"); if (isActive == true) { for ( Object[] obj : timerTable.values()) { TimerAlarmClock alarmClock=(TimerAlarmClock)obj[ALARM_CLOCK_INDEX]; if (alarmClock != null) { alarmClock.c...
Stops the timer.
protected final void throwObjectContractViolation(Object o1,Object o2) throws IllegalArgumentException { throw buildObjectContractViolation(o1,o2,""); }
Convenience methods for subclasses to use in throwing exceptions about badly behaved user objects employed as keys. We have to throw an IllegalArgumentException with a rather verbose message telling the user that they need to fix their object implementation to conform to the general contract for java.lang.Object.
public void clearEventListeners(){ this.eventListeners.clear(); }
Clear the eventListeners.
public static Object[] createMultiDimArray(Class<?> componentType,int[] dims){ return (Object[])Array.newInstance(componentType,dims); }
Deep create multi-level array
private JobStatus processStatus(HadoopJobStatus status){ if (lastVer < status.version()) { lastVer=status.version(); lastStatus=status; } else assert lastStatus != null; return HadoopUtils.status(lastStatus,conf); }
Process received status update.
public synchronized void awaitReady(long timeout) throws IgniteInterruptedCheckedException { long start=System.currentTimeMillis(); try { while (!ready()) { long now=System.currentTimeMillis(); if (start + timeout - now <= 0) return; wait(start + timeout - now); } } catch ( Inter...
Awaits either until snapshot is ready or timeout elapses.
public ECPoint decrypt(ECPair pair){ if (key == null) { throw new IllegalStateException("ECElGamalDecryptor not initialised"); } ECPoint tmp=pair.getX().multiply(key.getD()); return pair.getY().subtract(tmp).normalize(); }
Decrypt an EC pair producing the original EC point.
public void put(int bitIndex,boolean value){ if (bitIndex < 0 || bitIndex >= nbits) throw new IndexOutOfBoundsException(String.valueOf(bitIndex)); if (value) QuickBitVector.set(bits,bitIndex); else QuickBitVector.clear(bits,bitIndex); }
Sets the bit with index <tt>bitIndex</tt> to the state specified by <tt>value</tt>.
@Override public int compareTo(GeoKey gke){ if (keyCode < gke.keyCode) { return (-1); } if (keyCode > gke.keyCode) { return (1); } return (0); }
Compare this GeoKey to another.
public String AcceptHash(String key) throws NoSuchAlgorithmException { String input=key + WEBSOCKET_GUID; MessageDigest sha1=MessageDigest.getInstance("SHA-1"); byte[] hash=sha1.digest(input.getBytes()); ; return Base64Util.encode(ByteBuffer.wrap(hash)); }
Compute the Sec-WebSocket-Accept key (RFC-6455)
public static int median(ArrayModifiableDBIDs data,Comparator<? super DBIDRef> comparator,int begin,int end){ final int length=end - begin; assert (length > 0); final int left=begin + ((length - 1) >> 1); quickSelect(data,comparator,begin,end,left); return left; }
Compute the median of an array efficiently using the QuickSelect method. On an odd length, it will return the lower element. Note: the array is <b>modified</b> by this.
public static void main(String args[]){ boolean ok=parseOptions(args); if (!ok || !stripFiles(infiles,outfiles)) { System.exit(1); } }
Strip the properties filenames supplied, replacing their contents.
private int classify(char c){ if (c == '_') return TokenType.TEXT.ordinal(); if (Character.isAlphabetic(c) || Character.isDigit(c)) { return TokenType.TEXT.ordinal(); } else if (Character.isWhitespace(c)) { return TokenType.WHITESPACE.ordinal(); } else { Character.UnicodeBlock block=Character....
classify the character.
public static void clear(){ buffer.clear(); scheduleBufferPrint(); }
Clears the console text
public DisambiguationWebView(final DisambiguationDialog disambiguationDialog,final ICallback<DisambiguationResponse> callback){ mDisambiguationDialog=disambiguationDialog; mCallback=callback; }
Creates the disambiguation web view.
private boolean overrides(ExecutableElement e,Class<?> clazz,String method){ TypeElement clazzElt=elements.getTypeElement(clazz.getCanonicalName()); assert clazzElt != null; for ( ExecutableElement elt : ElementFilter.methodsIn(clazzElt.getEnclosedElements())) { if (elt.getSimpleName().contentEquals(method) ...
Determines whether or not the given element overrides the named method in the named class.
void fillComboBox(JComboBox cb){ cb.addItem(getString("ComboBoxDemo.brent")); cb.addItem(getString("ComboBoxDemo.georges")); cb.addItem(getString("ComboBoxDemo.hans")); cb.addItem(getString("ComboBoxDemo.howard")); cb.addItem(getString("ComboBoxDemo.james")); cb.addItem(getString("ComboBoxDemo.jeff")); cb...
Fill combo box.
public void logReset(long streamId){ addEntry(new Entry(TYPE_RESET,null,null,streamId,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)); }
Log reset event.
private static void selectAndPossiblyCenter(JTextArea textArea,int start,int end){ textArea.setSelectionStart(start); textArea.setSelectionEnd(end); Rectangle r=null; try { r=textArea.modelToView(start); if (r == null) { return; } if (end != start) { r=r.union(textArea.modelToView(en...
Selects a range of text in a text component. If the new selection is outside of the previous viewable rectangle, then the view is centered around the new selection.
@Override public synchronized String toString(){ final StringBuffer sbResult=new StringBuffer(); sbResult.append("["); sbResult.append(getCredentialsStringRepresentation(proxyCred)); sbResult.append(" | "); sbResult.append(getCredentialsStringRepresentation(credMap)); sbResult.append(" | "); sbResult.appe...
Returns a string representation of this HTTP state.
private static StringListField strList(String key){ return new StringListField(key); }
Shorthand method for creating a string list metadata extractor.
public String parse(String inputTemplate,String outputFile) throws Exception { return parse(inputTemplate,outputFile,null,null); }
Parse an input and write the output to an output file. If the output file parameter is null or an empty string the result is returned as a string object. Otherwise an empty string is returned.
protected static String LexicalError(boolean EOFSeen,int lexState,int errorLine,int errorColumn,String errorAfter,char curChar){ return ("Lexical error at line " + errorLine + ", column "+ errorColumn+ ". Encountered: "+ (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar+...
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error. Parameters : EOFSeen : indicates if EOF caused the lexical error curLexState : lexical state in which this error occurred errorLine : line number when the error occurred errorColumn : column number when th...
@Deprecated @POST @Consumes({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/protection/full-copies/{pid}/detach") public TaskResourceRep detachFullCopy(@PathParam("id") URI id,@PathParam("pid") URI fullCopyId) throws InternalExceptio...
Detach a full copy from its source volume. <p> This method is deprecated. Use /block/full-copies/{id}/detach instead with {id} representing full copy URI id
public static String addressAndSpaceString(Address addr){ return String.format("%s/%s",addr,Space.getSpaceForAddress(addr).getName()); }
Address and space name (eg 0x45678900/ms)
@SuppressWarnings("unchecked") public static <T extends java.lang.Comparable<? super T>>void sort(List<T> list){ Object[] array=list.toArray(); Arrays.sort(array); int i=0; ListIterator<T> it=list.listIterator(); while (it.hasNext()) { it.next(); it.set((T)array[i++]); } }
Sorts the specified list in ascending natural order. The algorithm is stable which means equal elements don't get reordered.
private void postInitViewPager(){ try { Class<?> viewpager=ViewPager.class; Field scroller=viewpager.getDeclaredField("mScroller"); scroller.setAccessible(true); Field interpolator=viewpager.getDeclaredField("sInterpolator"); interpolator.setAccessible(true); mScroller=new CarouselViewPagerScr...
Override the Scroller instance with our own class so we can change the duration
Parser(byte[] info,ConstPool cp){ super(info); pool=cp; }
Constructs a parser. This parser constructs a parse tree of the annotations.
public static final GCodeFlavor tasteFlavor(BufferedInputStream buffer) throws IOException { int rl=200; final byte[] readAhead=new byte[rl]; buffer.mark(readAhead.length); int i=0; while (buffer.available() > 0 && i < rl) { readAhead[i]=(byte)buffer.read(); i++; } buffer.reset(); final String r...
Determine the content generator (i.e. Slic3r, Skeinforge) for the given BufferedReader.
public void removeTileAt(CGPoint pos){ assert (pos.x < layerSize.width && pos.y < layerSize.height && pos.x >= 0 && pos.y >= 0) : "TMXLayer: invalid position"; assert (tiles != null && atlasIndexArray_ != null) : "TMXLayer: the tiles map has been released"; int gid=tileGIDAt(pos); if (gid != 0) { int z=(int...
removes a tile at given tile coordinate
public int nextIndex(){ return tokenPos; }
Gets the index of the next token to return.
protected void preProcessRow(){ }
Called automatically in all modes when a full row has been inflated.
BluetoothServerSocket(int type,boolean auth,boolean encrypt,int port,ParcelUuid uuid) throws IOException { mSocket=new BluetoothSocket(type,-1,auth,encrypt,null,port,uuid); mChannel=mSocket.getPort(); }
Construct a socket for incoming connections.
public void applicationWillEnterForeground(){ }
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. If your application supports background execution, this method is called instead of applicationWillTerminate:...
@Override public boolean equals(final Object obj){ if (obj == this) { return true; } if (obj instanceof CharRange == false) { return false; } final CharRange other=(CharRange)obj; return start == other.start && end == other.end && negated == other.negated; }
<p>Compares two CharRange objects, returning true if they represent exactly the same range of characters defined in the same way.</p>
protected void paintCurrentLineHighlight(Graphics g,Rectangle visibleRect){ if (textArea.getHighlightCurrentLine()) { Caret caret=textArea.getCaret(); if (caret.getDot() == caret.getMark()) { Color highlight=textArea.getCurrentLineHighlightColor(); int height=textArea.getLineHeight(); if (te...
Paints the highlighted current line, if it is enabled.
private MRMA createCounterDoc(){ if (getRef_RMA_ID() > 0) return null; MOrg org=MOrg.get(getCtx(),getAD_Org_ID()); int counterC_BPartner_ID=org.getLinkedC_BPartner_ID(get_TrxName()); if (counterC_BPartner_ID == 0) return null; MBPartner bp=new MBPartner(getCtx(),getC_BPartner_ID(),get_TrxName()); int co...
Create Counter Document
public final double[] weights(Instance instance){ return null; }
Method not in use
protected void calculateBranchLengths(){ if (!hasLengths) { throw new IllegalArgumentException("Can't calculate branch lengths because node heights not known"); } nodeHeightsToLengths(rootNode,getHeight(rootNode)); lengthsKnown=true; }
Calculate branch lengths from the current node heights.
public CloseableStaticBitmap decodeJpeg(final EncodedImage encodedImage,int length,QualityInfo qualityInfo,ImageDecodeOptions options){ CloseableReference<Bitmap> bitmapReference=mPlatformDecoder.decodeJPEGFromEncodedImage(encodedImage,options.bitmapConfig,length); try { return new CloseableStaticBitmap(bitmapR...
Decodes a partial jpeg.
public Object runSafely(Catbert.FastStack stack) throws Exception { String s=getString(stack); return Boolean.valueOf(EPG.getInstance().isPhysicalOverriden(EPG.getInstance().getProviderIDForEPGDSName(s),getChannel(stack).getStationID())); }
Returns true if the user has remapped this physical Channel to a different physical number than it's default on the specified Lineup
public synchronized long incrAndGetSeqno(){ seqno++; notifyAll(); return seqno; }
Increment seqno and notify waiters, then return value.
private static void printUnicodePropertyValuesAndAliases(String unicodeVersion) throws UnicodeProperties.UnsupportedUnicodeVersionException { Pattern versionPattern=Pattern.compile("(\\d+)(?:\\.(\\d+))?(?:\\.\\d+)?"); Matcher matcher=versionPattern.matcher(unicodeVersion); if (!matcher.matches()) { throw new ...
Prints one Unicode property value per line, along with its aliases, if any, for the given unicodeVersion.
private void deletePcjIdAndSparqlMetadata(final Transaction tx,final String pcjId){ requireNonNull(tx); requireNonNull(pcjId); final String queryId=getQueryIdFromPcjId(tx,pcjId); final String sparql=getSparqlFromQueryId(tx,queryId); tx.delete(queryId,FluoQueryColumns.RYA_PCJ_ID); tx.delete(sparql,FluoQueryC...
Deletes high level query meta for converting from queryId to pcjId and vice versa, as well as converting from sparql to queryId.
protected ObjectMatrix3D viewSelectionLike(int[] sliceOffsets,int[] rowOffsets,int[] columnOffsets){ return new SelectedSparseObjectMatrix3D(this.elements,sliceOffsets,rowOffsets,columnOffsets,this.offset); }
Construct and returns a new selection view.
public int decrementAliveCheck(){ assert isClient(); return --aliveCheck; }
Decrements alive check value and returns new one.
public void registerProblem(@NotNull final PsiElement psiElement,@NotNull final String message,@NotNull ProblemHighlightType highlightType,@Nullable TextRange rangeInElement,@Nullable LocalQuickFix... fixes){ final ProblemDescriptor descriptor=myManager.createProblemDescriptor(psiElement,rangeInElement,message,highli...
Creates highlighter for the specified place in the file.