code
stringlengths
10
174k
nl
stringlengths
3
129k
public boolean contains(final CharSequence s){ int i=d, l=s.length(); long bits[]=this.bits; while (i-- != 0) if (!get(bits,hash(s,l,i))) return false; return true; }
Checks whether the given character sequence is in this filter. <P>Note that this method may return true on a character sequence that has not been added to the filter. This will happen with probability 2<sup>-<var>d</var></sup>, where <var>d</var> is the number of hash functions specified at creation time, if the numbe...
public N4IDEXpectFileSetup(FileSetupContext ctx,Injector injector){ this.ctx=ctx; injector.injectMembers(this); }
Creates setup with provided context. Adds members to provided injector.
void withFocusData(Consumer<Entities> cb){ VisualItem item=this.focusItem; if (item != null && PhysicalVisualization.isNodeGroup(item)) { Node node=(Node)item.getSourceTuple(); withData(node,cb); } }
Gets the source data for the focus node.
public LocalSageFile(String name,boolean readonly) throws IOException { randomAccessFile=new RandomAccessFile(name,readonly ? "r" : "rw"); this.readonly=readonly; }
Create a local instance of <code>SageFileSource</code>.
public static ZoneRules of(ZoneOffset offset){ Objects.requireNonNull(offset,"offset"); return new ZoneRules(offset); }
Obtains an instance of ZoneRules that has fixed zone rules.
public void addItem(View view){ if (Util.hasValidContents(mInput)) { mAdapter.addItem(mInput.getText().toString()); } }
Invoked after user hits the button to add an Item to the RecyclerView, check the contents of the EditText, if it has valid contents, add the item to the Adapter of the RecyclerView
private static JSONObject makeRequest(String requestUrl) throws JSONException { String response=Network.get(requestUrl); if (response != null) { return new JSONObject(response); } else { Log.w(TAG,"Empty response."); return null; } }
Makes a network request at the specified URL, expecting a JSON response.
public static Builder builder(ConfigureResponse response){ return new Builder(response); }
Returns a configure response builder for an existing response.
public static boolean isLoggable(int level){ return sAlwaysLoggable || android.util.Log.isLoggable(TAG,level); }
Returns `true` if the provided log level is loggable either through environment options or a previous call to setAlwaysLoggable().
@Override public void process(KeyValPair<K,V> tuple){ K key=tuple.getKey(); ArrayList<Object> list=getObject(key); list.set(number,tuple.getValue()); }
Process key/value pair.
public static InetAddress decode(byte value[]){ try { return InetAddress.getByAddress(value); } catch ( UnknownHostException e) { throw new IllegalArgumentException("encoded bytes are of incorrect length",e); } }
Decodes InetAddress value from binary encoding
public void stop(){ puller.switchOf(); System.out.println("Switched of Url Puller"); bandit.switchOf(); System.out.println("Switched of Bandit"); pusher.switchOf(); System.out.println("Switched of Url Pusher"); statusViewer.switchOf(); System.out.println("Switched of Status Viewer"); }
Stop the threads.
public void updateInfo(){ double total=Runtime.getRuntime().totalMemory() / 1024; double free=Runtime.getRuntime().freeMemory() / 1024; double used=total - free; double percent=used * 100 / total; memoryBar.setMaximum((int)total); memoryBar.setValue((int)used); String msg=MessageFormat.format("{0,number,i...
Show Memory Info - run GC if required - Update Requests/Memos/Activities
private String nextUnquotedValue() throws IOException { long i=source.indexOfElement(UNQUOTED_STRING_TERMINALS); return i != -1 ? buffer.readUtf8(i) : buffer.readUtf8(); }
Returns an unquoted value as a string.
public static IMultiPoint[] randomPoints(int n,int d,int scale){ IMultiPoint points[]=new IMultiPoint[n]; for (int i=0; i < n; i++) { StringBuilder sb=new StringBuilder(); for (int j=0; j < d; j++) { sb.append((int)(rGen.nextDouble() * scale)); if (j < d - 1) { sb.append(","); } ...
generate array of n d-dimensional points whose coordinates are integer values in the range 0 .. scale-1
public ListRewriteEvent(List<ASTNode> originalNodes){ this.originalNodes=new ArrayList<ASTNode>(originalNodes); }
Creates a ListRewriteEvent from the original ASTNodes. The resulting event represents the unmodified list.
public CustomModelLoader registerExtension(@Nonnull LoaderExtension extension){ Validate.notNull(extension); this.loaderExtensions.add(extension); return this; }
Registers a loader extension
public ICUTransformFilterFactory(Map<String,String> args){ super(args); String id=require(args,"id"); String direction=get(args,"direction",Arrays.asList("forward","reverse"),"forward",false); int dir="forward".equals(direction) ? Transliterator.FORWARD : Transliterator.REVERSE; transliterator=Transliterator....
Creates a new ICUTransformFilterFactory
public void removeScripType(ScriptType type){ ScriptType scriptType=typeMap.remove(type.getName()); if (scriptType != null) { getTreeModel().removeType(scriptType); } }
Removes the given script type. <p> The templates and scripts associated with the given type are also removed, if any. <p> The call to this method has no effect if the given type is not registered.
void sendMessageToHandlerNoControllerReset(List<OFMessage> messages) throws Exception { setupMessageEvent(messages); handler.messageReceived(ctx,messageEvent); }
reset, setup, and replay the messageEvent mock for the given messages, mock controller send message to channel handler This method will start replay on controller, and then verify
public int find(String what,int start){ try { ByteBuffer src=ByteBuffer.wrap(this.bytes,0,this.length); ByteBuffer tgt=encode(what); byte b=tgt.get(); src.position(start); while (src.hasRemaining()) { if (b == src.get()) { src.mark(); tgt.mark(); boolean found=true; ...
Finds any occurence of <code>what</code> in the backing buffer, starting as position <code>start</code>. The starting position is measured in bytes and the return value is in terms of byte position in the buffer. The backing buffer is not converted to a string for this operation.
Method(MethodDoc methodDoc){ this.methodDoc=methodDoc; exceptionTypes=methodDoc.thrownExceptions(); Arrays.sort(exceptionTypes,new ClassDocComparator()); operationString=computeOperationString(); nameAndDescriptor=methodDoc.name() + Util.methodDescriptorOf(methodDoc); methodHash=computeMethodHash(); }
Creates a new Method instance for the specified method.
public void addRow(Object... row){ if (rows == null) { throw new IllegalStateException("Cannot add a row when using RowSource"); } rows.add(row); }
Add a new row to the result set. Do not use this method when using a RowSource.
public void showHistory(){ JList list; ListSelectorDialog dialog; String tmpStr; list=new JList(m_History); dialog=new ListSelectorDialog(m_Parent,list); if (dialog.showDialog() == ListSelectorDialog.APPROVE_OPTION) { if (list.getSelectedValue() != null) { tmpStr=list.getSelectedValue().toString()...
displays the query history.
public GroupNode createGroupNode(final String text,final List<ViewNode> elements){ Preconditions.checkNotNull(text,"Error: Text argument can not be null"); Preconditions.checkNotNull(elements,"Error: Elements argument can not be null"); final List<INaviViewNode> nodes=new ArrayList<INaviViewNode>(); for ( fina...
Creates a new group node in the view.
public JFXPopup(){ this(null,null); }
creates empty popup
private static Map<String,String> convertHeaders(Header[] headers){ Map<String,String> result=new HashMap<String,String>(); for (int i=0; i < headers.length; i++) { result.put(headers[i].getName(),headers[i].getValue()); } return result; }
Converts Headers[] to Map<String, String>.
public final java_cup.runtime.Symbol CUP$Parser$do_action(int CUP$Parser$act_num,java_cup.runtime.lr_parser CUP$Parser$parser,java.util.Stack<java_cup.runtime.Symbol> CUP$Parser$stack,int CUP$Parser$top) throws java.lang.Exception { java_cup.runtime.Symbol CUP$Parser$result; switch (CUP$Parser$act_num) { case 42: { ...
Method with the actual generated action code.
@SuppressWarnings("serial") public void testFilter(){ final FilterNode fn=(FilterNode)new Helper(){ { tmp=filter(FunctionNode.AND(varNode(w),FunctionNode.OR(FunctionNode.EQ(constantNode(w),varNode(y)),FunctionNode.LT(varNode(x),varNode(z))))); } } .getTmp(); final QueryRoot query=new QueryRoot(QueryType...
Test interface implementation for FILTER nodes (simple).
public final void printSummary(){ m_out.println("Parsing summary:"); m_out.println(" Events:"); m_events.print(m_out); m_out.println(" Errors:"); m_errors.print(m_out); }
Prints number of events and errors to indicate parsing quality.
public boolean isUserManual(){ return getNode().isUserManual(); }
Is this a Manual user step?
private void returnData(Object ret){ if (myHost != null) { myHost.returnData(ret); } }
Used to communicate a return object from a plugin tool to the main Whitebox user-interface.
public boolean visit(Assignment node){ return true; }
Visits the given type-specific AST node. <p> The default implementation does nothing and return true. Subclasses may reimplement. </p>
@Override public final int compareTo(Version other){ final int minLength=Math.min(this.m_rawVersion.length,other.m_rawVersion.length); for (int i=0; i < minLength; i++) { final int componentComparison=this.m_rawVersion[i].compareTo(other.m_rawVersion[i]); if (componentComparison != 0) { return compone...
Compares versions lexicographically. Trailing zeros are ignored.
public void update(){ setText(networkPanel.getNetwork().getTimeLabel()); }
Update the text based on the network time.
public String globalInfo(){ return "Class for building and using a multinomial logistic " + "regression model with a ridge estimator.\n\n" + "There are some modifications, however, compared to the paper of "+ "leCessie and van Houwelingen(1992): \n\n"+ "If there are k classes for n instances with m attributes, the "+...
Returns a string describing this classifier
public void comment(char ch[],int start,int length) throws SAXException { if (m_insideDTD) return; charactersFlush(); m_values.addElement(new String(ch,start,length)); int dataIndex=m_valueIndex++; m_previous=addNode(DTM.COMMENT_NODE,DTM.COMMENT_NODE,m_parents.peek(),m_previous,dataIndex,false); }
Report an XML comment anywhere in the document. <p>This callback will be used for comments inside or outside the document element, including comments in the external DTD subset (if read).</p>
protected Object cloneTemplate(Node node){ Object obj=null; try { obj=template.getClass().newInstance(); if (obj instanceof Collection) { node=node.getFirstChild(); if (node != null && node instanceof Element && ((Element)node).hasAttribute("as")) { obj=new Hashtable(); } } }...
Returns a new instance of the template object for representing the given node.
@ObjectiveCName("myUid") public int myUid(){ return modules.getAuthModule().myUid(); }
Get authenticated User Id
public boolean shipsLoadName(String load){ if (_shipLoadOption.equals(ALL_LOADS)) { return true; } if (_shipLoadOption.equals(INCLUDE_LOADS)) { return _shipLoadList.contains(load); } return !_shipLoadList.contains(load); }
Determine if track will service a specific ship load name.
private static Class<?> loadAndInitializeInvokerClass(byte[] classBytes,Object[] patches){ Class<?> invokerClass=UNSAFE.defineAnonymousClass(HOST_CLASS,classBytes,patches); UNSAFE.ensureClassInitialized(invokerClass); return invokerClass; }
Define a given class as anonymous class in the runtime system.
public ImageInfo inspectImage(InspectImageParams params) throws IOException { try (DockerConnection connection=connectionFactory.openConnection(dockerDaemonUri).method("GET").path(apiVersionPathPrefix + "/images/" + params.getImage()+ "/json")){ final DockerResponse response=connection.request(); if (OK.getSt...
Gets detailed information about docker image.
public static long dataPoints(String periodExpression,String spanExpression){ return dataPoints(inSeconds(periodExpression),inSeconds(spanExpression)); }
Data points.
public Map<String,List<String>> pageParametesAsMultiMap(final PageParameters pageParameters){ final Map<String,List<String>> map=new LinkedHashMap<String,List<String>>(); if (pageParameters != null) { for ( String key : pageParameters.getNamedKeys()) { if (!commandConfig.isInternalCommandKey(key)) { ...
Transform wicket 1.5 page parameter to more traditional map. Expensive operation.
public byte[] toBytes(){ try { ByteArrayOutputStream out=new ByteArrayOutputStream(); _field.store(out,null); return out.toByteArray(); } catch ( IOException e) { throw new IllegalStateException(e); } }
Serializes this nested object into byte[]
public ChartPanel(JFreeChart chart,int width,int height,int minimumDrawWidth,int minimumDrawHeight,int maximumDrawWidth,int maximumDrawHeight,boolean useBuffer,boolean properties,boolean save,boolean print,boolean zoom,boolean tooltips){ this(chart,width,height,minimumDrawWidth,minimumDrawHeight,maximumDrawWidth,maxi...
Constructs a JFreeChart panel.
public LookupOp(LookupTable lookup,RenderingHints hints){ this.ltable=lookup; this.hints=hints; numComponents=ltable.getNumComponents(); }
Constructs a <code>LookupOp</code> object given the lookup table and a <code>RenderingHints</code> object, which might be <code>null</code>.
public void incrementInUseCount(){ mInUseLength++; }
Increment the mInUseCount field. Used by the pool to update the bucket info when a value was 'alloc'ed (because no free value was available)
private void paintPressed(Graphics2D g,JComponent c,int width,int height){ paintMenu(g,c,width,height,pressed); }
Paint the background pressed state.
Query makeContains(Rectangle bbox){ Query qMinY=this.makeNumericRangeQuery(field_minY,null,bbox.getMinY(),false,true); Query qMaxY=this.makeNumericRangeQuery(field_maxY,bbox.getMaxY(),null,true,false); Query yConditions=this.makeQuery(BooleanClause.Occur.MUST,qMinY,qMaxY); Query xConditions; if (!bbox.getCros...
Constructs a query to retrieve documents that fully contain the input envelope.
public final void writeBoolean(boolean v) throws IOException { write(v ? 1 : 0); }
Writes a <code>boolean</code> to the file as a 1-byte value. The value <code>true</code> is written out as the value <code>(byte)1</code>; the value <code>false</code> is written out as the value <code>(byte)0</code>.
public static boolean isRawTypeRef(TypeRef typeRef){ if (typeRef instanceof ParameterizedTypeRef) { final Type declType=typeRef.getDeclaredType(); return declType != null && declType.getTypeVars().size() > typeRef.getTypeArgs().size(); } return false; }
Returns true iff the given type reference is "raw", i.e. if it points to a generic type and has fewer type arguments than the generic type has type parameters.
public void add(SelectClauseElementRaw element){ selectClauseElements.add(element); }
Adds an select expression within the select clause.
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { request.getSession().setAttribute("school","lnit"); response.sendRedirect("servlet/SchoolServlet"); return; }
The doGet method of the servlet. <br> This method is called when a form has its tag value method equals to get.
private void confiscate(final HousePortal portal){ notifyIfNeeded(portal.getOwner(),"You have neglected to pay your house taxes for too long. " + "Your house has been repossessed to cover the debt to the state."); logger.info("repossessed " + portal.getDoorId() + ", which used to belong to "+ portal.getOwner()); ...
Confiscate a house, and notify the owner.
public byte[] decrypt(String encryptedString) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException, NoSuchPaddingException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException { if ((encryptedString == null) || (encryptedString.isEmpty())) { ret...
Decryption Method
public final Vec4D rotateZ(float theta){ final float co=(float)Math.cos(theta); final float si=(float)Math.sin(theta); final float xx=co * x - si * y; y=si * x + co * y; x=xx; return this; }
Rotates the vector by the given angle around the Z axis.
private static CopyImageResponse checkCopyImageResponse(CopyImageResponse copyImageResponse) throws RpcException { logger.info("Checking {}",copyImageResponse); switch (copyImageResponse.getResult()) { case OK: break; case IMAGE_NOT_FOUND: throw new ImageNotFoundException(copyImageResponse.getError()); case SYS...
This method validates a CopyImageResponse object, raising an exception if the response reflects an operation failure.
@DSComment("no security concern") @DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:32:41.228 -0500",hash_original_method="B25B5EE312C01437108EEEF8D289ECD3",hash_generated_method="C63E892A6BA4EC792C3677F2364FB69A") @DSVerified public boolean shouldOverrideUr...
Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView. If WebViewClient is not provided, by default WebView will ask Activity Manager to choose the proper handler for the url. If WebViewClient is provided, return true means the host application handles t...
public boolean isSetKeys(){ return this.keys != null; }
Returns true if field keys is set (has been assigned a value) and false otherwise
@Override public void visitEnd(){ outer: for ( Class<? extends Annotation> toAddAnn : toAddAnnotations) { Type toAddAnnType=Type.getType(toAddAnn); if (VERBOSE) System.out.println("Annotation: " + toAddAnn); for ( String presentAnn : presentAnnotations) { if (toAddAnnType.equals(Type.getTy...
We've finished processing method, check what annotations were found and then add those that weren't
protected void addContent(Group bg,OMGraphicHandlerLayer layer){ addContent(bg,layer,0); }
Add a layer to the Group.
public static boolean isServiceRunning(Context ctx,String serviceName){ if (serviceName == null) throw new NullPointerException("Service name cannot be null"); ActivityManager manager=(ActivityManager)ctx.getSystemService(Context.ACTIVITY_SERVICE); for ( RunningServiceInfo service : manager.getRunningServices(...
Checks if the service with the given name is currently running on the device.
public static void recordMainEntryPointTime(){ sApplicationStartWallClockMs=System.currentTimeMillis(); }
Record the time at which the activity started. This should be called asap after the start of the activity's onCreate function.
private void appendType(Type genericType,final StringBuilder builder){ builder.append(getImplName(genericType,false)); }
Appends a suitable type for the given type. For example, at minimum, this will replace DTO interfaces with their implementation classes and JSON collections with corresponding Java types. If a suitable type cannot be determined, this will throw an exception.
public Property dayOfYear(){ return new Property(this,getChronology().dayOfYear()); }
Get the day of year property which provides access to advanced functionality.
public synchronized boolean wasDoubleClicked(){ return this.value == 2; }
Returns true if this mouse button was double clicked. <p> Returns false if the button was single/triple/etc clicked or is currently waiting to be released.
public void pathDirty(){ messageLabel.setText("Press refresh to recalculate."); }
Notify user that the currently displayed statistics is old. We don't automatically update the window for performance reasons.
public boolean verifyPoints(final GPInitializer initializer,final GPNode inner1,final GPNode inner2){ if (!inner1.swapCompatibleWith(initializer,inner2)) return false; if (inner1.depth() + inner2.atDepth() > maxDepth) return false; return true; }
Returns true if inner1 can feasibly be swapped into inner2's position.
public void forNumVMsInvoke(int numVMs,String methodName,Object[] args){ Host host=Host.getHost(0); for (int i=0; i < numVMs; i++) { logInfo("Invoking " + methodName + "on VM#"+ i); host.getVM(i).invoke(this.getClass(),methodName,args); } }
Assumes there is only one host, and invokes the given method in the first numVMs VMs that host knows about.
public void execute(){ try { prep.execute(); } catch ( SQLException e) { throw convert(e); } }
Execute the prepared statement.
public static Sentence newDisjunction(Sentence... disjuncts){ return newDisjunction(Arrays.asList(disjuncts)); }
Create a disjunction of disjuncts.
public void testGoodRpc() throws Exception { String resdata="Response Data"; Response response=Response.newBuilder().setStrData(resdata).build(); socketRpcServer.registerService(new FakeServiceImpl(REQUEST).withResponse(response)); FakeSocket socket=new FakeSocket(false).withRequest(RPC_REQUEST); runHandler(s...
Test good request/response
@Override public void paintComponent(Graphics g){ Color oldBackground=((Graphics2D)g).getBackground(); if (m_BackgroundColor != null) { ((Graphics2D)g).setBackground(m_BackgroundColor); } g.clearRect(0,0,getSize().width,getSize().height); ((Graphics2D)g).setBackground(oldBackground); g.setClip(3,7,getWi...
Updates the screen contents.
public boolean isGeneral(){ return (type & GENERAL) != 0; }
Returns <code>true</code> if it is a general entity.
@NoInline private static void arraycopyPiecemeal(char[] src,int srcIdx,char[] dst,int dstIdx,int len){ if (srcIdx < dstIdx) { srcIdx+=len; dstIdx+=len; while (len-- != 0) { dst[--dstIdx]=src[--srcIdx]; } } else { while (len-- != 0) { dst[dstIdx++]=src[srcIdx++]; } } }
Perform element-by-element arraycopy for array of chars. Used when bulk copy is not possible.
public void testMultiWordSynonymsPhrase() throws Exception { MultiPhraseQuery.Builder expectedBuilder=new MultiPhraseQuery.Builder(); expectedBuilder.add(new Term[]{new Term("field","guinea"),new Term("field","cavy")}); expectedBuilder.add(new Term("field","pig")); QueryBuilder queryBuilder=new QueryBuilder(new...
forms multiphrase query
public static boolean asBoolean(final Object o){ if (o == null) { return false; } if (o instanceof Number) { return ((Number)o).doubleValue() != 0; } if (o instanceof Boolean) { return (Boolean)o; } try { return !((Boolean)o.getClass().getMethod("isEmpty").invoke(o)); } catch ( Excepti...
Attempts to interpret a given object as boolean. Behaves consistently with python's rules.
private static boolean isInCenterTargetZone(float x,float y,float left,float top,float right,float bottom){ if (x > left && x < right && y > top && y < bottom) { return true; } return false; }
Determines if the specified coordinate falls anywhere inside the given bounds.
public void visit(Edge e){ State s1=e.getSrc(); State s2=e.getDest(); if (e.isDestAccepting()) { appendStateToBuilder(s1,this.fsbAcceptingStates); } if (s1 != null && s2 != null) { s1.visited(this); s2.visited(this); if (s1.equals(this.fStartState)) { fsbStartEdges.append(getStateNumber(...
Visit an Edge of the Automaton
@Override public void onAdChanged(){ notifyDataSetChanged(); }
Raised when the number of ads have changed. Adapters that implement this class should notify their data views that the dataset has changed.
private void disableUnsupportedButtons(){ try { if (mPauseButton != null && !mPlayer.canPause()) { mPauseButton.setEnabled(false); } if (mRewButton != null && !mPlayer.canSeekBackward()) { mRewButton.setEnabled(false); } if (mFfwdButton != null && !mPlayer.canSeekForward()) { mFf...
Disable pause or seek buttons if the stream cannot be paused or seeked. This requires the control interface to be a MediaPlayerControlExt
public static DataWorldComponent createDataWorld(final NumericTable data,final String name){ DataWorldComponent component=new DataWorldComponent(data,name); component.init(); return component; }
Create the data world component.
public JCExpression longToIntForHashCode(JavacTreeMaker maker,JCExpression ref1,JCExpression ref2){ JCExpression shift=maker.Binary(CTC_UNSIGNED_SHIFT_RIGHT,ref1,maker.Literal(32)); JCExpression xorBits=maker.Binary(CTC_BITXOR,shift,ref2); return maker.TypeCast(maker.TypeIdent(CTC_INT),xorBits); }
The 2 references must be clones of each other.
public OMArc(double latPoint,double lonPoint,double radius,Length units,double s,double e){ this(new LatLonPoint.Double(latPoint,lonPoint),radius,units,-1,s,e); }
Create an OMArc with a lat/lon center and a physical distance radius. Rendertype is RENDERTYPE_LATLON.
@Override protected EClass eStaticClass(){ return TypesPackage.Literals.BUILT_IN_TYPE; }
<!-- begin-user-doc --> <!-- end-user-doc -->
private static String yieldpointPrefix(Operator op){ if (op == YIELDPOINT_PROLOGUE) return "Prologue"; if (op == YIELDPOINT_EPILOGUE) return "Epilogue"; if (op == YIELDPOINT_BACKEDGE) return "Backedge"; return "ERROR"; }
Return a string based version of the passed yieldpoint operator
private void addCORSHeaders(HttpServerRequest request,Logger log){ String originHeader=request.headers().get("Origin"); if (addCORSheaders && originHeader != null) { request.response().headers().set("Access-Control-Allow-Origin",originHeader); request.response().headers().set("Access-Control-Allow-Credentia...
Add headers for Cross-Origin Resource Sharing (CORS) to Response when not in PROD environment
protected void emit_ArrayBindingPattern_CommaKeyword_3_2_0_q(EObject semanticObject,ISynNavigable transition,List<INode> nodes){ acceptNodes(transition,nodes); }
Ambiguous syntax: ','? This ambiguous syntax occurs at: elements+=BindingRestElement (ambiguity) ']' (rule end)
public void rollbackMethodNull(String stepId) throws WorkflowException { WorkflowStepCompleter.stepSucceded(stepId); }
The null rollback method. Simply marks the step as succeeded.
protected int unwrapValue(Object value){ return ((Integer)value).intValue(); }
Unwraps a value
private void doAcquireSharedInterruptibly(long arg) throws InterruptedException { final Node node=addWaiter(Node.SHARED); boolean failed=true; try { for (; ; ) { final Node p=node.predecessor(); if (p == head) { long r=tryAcquireShared(arg); if (r >= 0) { setHeadAndPropag...
Acquires in shared interruptible mode.
public boolean isRecordProcessable(long epoch,long sequenceNo){ if (epoch < getReadEpoch()) { return false; } else if (epoch > getReadEpoch()) { return false; } else { synchronized (this) { if (sequenceNo < receiveWindowLowerBoundary) { return false; } else { return !isDup...
* Checks whether a given record can be processed within the context of this session. This is the case if <ul> <li>the record is from the same epoch as session's current read epoch</li> <li>the record has not been received before</li> </ul>
public void readFromParcel(Parcel in){ x=in.readFloat(); y=in.readFloat(); }
Set the point's coordinates from the data stored in the specified parcel. To write a point to a parcel, call writeToParcel().
boolean compareAndSetLeaf(Page oldPage,Page page){ if (oldPage == page) { return true; } int pid=(int)page.getId(); updateTailPid(pid); if (oldPage instanceof PageLeafImpl && page instanceof PageLeafImpl) { PageLeafImpl oldLeaf=(PageLeafImpl)oldPage; PageLeafImpl newLeaf=(PageLeafImpl)page; if...
Updates the leaf to a new page. Called only from TableService.
public boolean equals(Task that){ if (that == null) { return false; } boolean this_present_taskId=true & this.isSetTaskId(); boolean that_present_taskId=true & that.isSetTaskId(); if (this_present_taskId || that_present_taskId) { if (!(this_present_taskId && that_present_taskId)) { return false;...
Description: <br>
public Vector4i zero(){ MemUtil.INSTANCE.zero(this); return this; }
Set all components to zero.
public void ensureCapacity(int minCapacity){ modCount++; int oldCapacity=elementData.length; if (minCapacity > oldCapacity) { Object[] oldData=elementData; int newCapacity=(oldCapacity * 3) / 2 + 1; if (newCapacity < minCapacity) newCapacity=minCapacity; elementData=new Object[newCapacity]; ...
Increases the capacity of this <tt>ArrayList</tt> instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
void elementDequeued(){ if (count == 0) queueIsEmpty(); else if (takeIndex == 0) takeIndexWrapped(); }
Called whenever an element has been dequeued (at takeIndex).
public Color(){ }
Constructs a color with red, green, blue and alpha all 1.0.