code
stringlengths
10
174k
nl
stringlengths
3
129k
@Override public String toString(){ StringBuffer text=new StringBuffer(); if (m_InfoGains == null) { text.append("Information Gain attribute evaluator has not been built"); } else { text.append("\tInformation Gain Ranking Filter"); if (!m_missing_merge) { text.append("\n\tMissing values treated...
Describe the attribute evaluator
public Reference addReference(final Address address,final ReferenceType type) throws CouldntSaveDataException { Preconditions.checkNotNull(address,"Error: Address argument can not be null"); Preconditions.checkNotNull(type,"Error: Type argument can not be null"); try { final CReference reference=new CReferenc...
This method can be used to add new code or data references to operand expressions.
private synchronized void startUpdateThread(){ if (screenUpdater == null) { screenUpdater=AccessController.doPrivileged((PrivilegedAction<Thread>)null); screenUpdater.start(); } else { wakeUpUpdateThread(); } }
If the update thread hasn't yet been created, it will be; otherwise it is awaken
private void calculateArcMetrics(Rect bounds){ float size=Math.min(bounds.height(),bounds.width()); float yOffset=(bounds.height() - size) / 2f; float xOffset=(bounds.width() - size) / 2f; float strokeWidth; float padding; if (mArcStrokeWidth == -1f && mArcPadding == -1f) { strokeWidth=4f / 48f * size; ...
Helper that calculates the bounds and the stroke width of the progress arc
public HashShortId(final Deserializer deserializer){ this(deserializer.readLong("hashShortId")); }
Deserializes a hash short id.
public StoppableNonReentrantLock(CancelCriterion stopper){ super(stopper); }
Creates an instance.
public void reset(){ m_next=0; }
Reset the iterator. May have no effect on non-iterator Nodesets.
public String expressionTipText(){ return "The expression to used for filtering the dataset."; }
Returns the tip text for this property.
public Stacking(int folds,Classifier aggregatingClassifier,Classifier... baseClassifiers){ this(folds,aggregatingClassifier,Arrays.asList(baseClassifiers)); }
Creates a new Stacking classifier
public SearchSourceBuilder internalBuilder(){ return sourceBuilder(); }
Returns the internal search source builder used to construct the request.
private IResourceRuleFactory factoryFor(IResource destination){ IResourceRuleFactory fac=projectsToRules.get(destination.getFullPath().segment(0)); if (fac == null) { if (!destination.getProject().isAccessible()) return defaultFactory; fac=teamHook.getRuleFactory(destination.getProject()); projectsT...
Returns the scheduling rule factory for the given resource
private void createBalanceLine(){ StringBuffer sb=new StringBuffer("INSERT INTO T_ReportStatement " + "(AD_PInstance_ID, Fact_Acct_ID, LevelNo," + "DateAcct, Name, Description,"+ "AmtAcctDr, AmtAcctCr, Balance, Qty) "); sb.append("SELECT ").append(getAD_PInstance_ID()).append(",0,0,").append(DB.TO_DATE(p_DateAcct_F...
Create Beginning Balance Line
public JoinMerger(DataMatrix left,DataMatrix right,int[] mergeOrder,Axis join) throws ScopeException { super(left,right,mergeOrder); this.join=join; if (join != null) { int i=0; for ( AxisValues av : left.getAxes()) { if (av.getAxis().equals(join)) { hasJoinColumn=true; joinIndex=...
The JoinMerger will merge 2 DataMatrices to compare the output. If the join Axis is defined and exits in the input DM, it will be use to correctly join them.
protected final Button createActionButton(String name,Runnable action){ Button btn=FXGL.getUIFactory().newButton(name); btn.setOnAction(null); return btn; }
Creates a new button with given name that performs given action on click/press.
public void moveConnectionTo(Connection conn,WorkspacePoint newLocation,WorkspacePoint offset){ moveConnectionTo(conn,newLocation.x + offset.x,newLocation.y + offset.y); }
Move the given connector to a specific location and update the relevant list.
public void endReporting(){ }
Notification sent after having completed the search action. Typically, this would tell a search requestor collector that no more results will be forthcoming in this search. <p> The default implementation of this method does nothing. Subclasses may override. </p>
private static Type[] extractTypeArgumentsFrom(final Map<TypeVariable<?>,Type> mappings,final TypeVariable<?>[] variables){ final Type[] result=new Type[variables.length]; int index=0; for ( final TypeVariable<?> var : variables) { Validate.isTrue(mappings.containsKey(var),"missing argument mapping for %s",t...
Helper method to establish the formal parameters for a parameterized type.
public long computeDurationHint(){ long duration=0; final int count=mAnimations.size(); final ArrayList<Animation> animations=mAnimations; for (int i=count - 1; i >= 0; --i) { final long d=animations.get(i).computeDurationHint(); if (d > duration) duration=d; } return duration; }
The duration hint of an animation set is the maximum of the duration hints of all of its component animations.
private void fetchStoragePoolTiers(StorageSystem system,String systemObjectID,AccessProfile accessProfile,HDSApiClient hdsApiClient) throws Exception { List<Pool> journalPoolList=hdsApiClient.getStoragePoolsTierInfo(systemObjectID); if (null != journalPoolList && !journalPoolList.isEmpty()) { for ( Pool pool...
1. Get all pools & its tiers of a given storagesystem. 2. Check whether pool is HDT (Tiering supported pool or not.) 3. If it is HDT pool, then process all its storage tiers.
public static Value local(Value val){ if (val != null && isLocal(val)) return val; else return null; }
filters out Locals.<br> returns <code>null</code> if <code>val</code> is null.
public boolean isRequired(){ return required; }
This is used to determine whether the attribute is required. This ensures that if an attribute is missing from a document that deserialization can continue. Also, in the process of serialization, if a value is null it does not need to be written to the resulting XML document.
public static Vector2D create(Vector2D v){ return new Vector2D(v); }
Creates a new vector from an existing one.
void fullyLock(){ putLock.lock(); takeLock.lock(); }
Locks to prevent both puts and takes.
synchronized public void send(String data){ data=StringUtil.removeLinebreakCharacters(data); irc.sent(data); out.print(data + "\r\n"); out.flush(); activity(); }
Send a line of data to the server.
public void configureFrom(CacheServer other){ setPort(other.getPort()); setBindAddress(other.getBindAddress()); setHostnameForClients(other.getHostnameForClients()); setMaxConnections(other.getMaxConnections()); setMaxThreads(other.getMaxThreads()); setNotifyBySubscription(other.getNotifyBySubscription()); ...
Sets the configuration of <b>this</b> <code>CacheServer</code> based on the configuration of <b>another</b> <code>CacheServer</code>.
public void copyContent(){ if (!isPanelSelected()) { return; } getCurrentPanel().copyContent(); }
copies the content of the selection to the clipboard
public int size(String group){ TupleSet tset=getGroup(group); return (tset == null ? 0 : tset.getTupleCount()); }
Get the size of the given visual data group.
public void addFeature(int[] fIdxArray,float[] fValueArray){ idxList.addAll(Ints.asList(fIdxArray)); valList.addAll(Floats.asList(fValueArray)); }
add features by arrays
public void initWithText(String text,String fontname,float fontSize){ initWithText(text,calculateTextSize(text,fontname,fontSize),CCLabel.TextAlignment.CENTER,fontname,fontSize); }
Initializes a texture from a string with font name and font size
public void addEndCap(int capstyle){ PDFChangeStrokeCmd sc=new PDFChangeStrokeCmd(); Cap cap=Paint.Cap.BUTT; switch (capstyle) { case 0: cap=Paint.Cap.BUTT; break; case 1: cap=Paint.Cap.ROUND; break; case 2: cap=Paint.Cap.SQUARE; break; } sc.setEndCap(cap); addCommand(sc); }
set the end cap style
public BinaryNode<E> put(E value){ return put(root,value); }
Inserts a node into the binary tree such that it always forms a complete binary tree.
protected void addAgent() throws Exception { if (agent == null) { int pSel=frame.getSelection().getIndex(EightPuzzleFrame.SEARCH_SEL); Problem problem=new BidirectionalEightPuzzleProblem(env.getBoard()); Search search=SEARCH_ALGOS.get(pSel); agent=new SearchAgent(problem,search); env.addAgent(agen...
Creates a new search agent and adds it to the current environment if necessary.
public FBManagedConnectionFactory(GDSType gdsType){ this(gdsType,new FBConnectionProperties()); }
Create a new FBManagedConnectionFactory based around the given GDSType.
public Paper(){ mHeight=LETTER_HEIGHT; mWidth=LETTER_WIDTH; mImageableArea=new Rectangle2D.Double(INCH,INCH,mWidth - 2 * INCH,mHeight - 2 * INCH); }
Creates a letter sized piece of paper with one inch margins.
protected Node newNode(){ return new XBLOMXBLElement(); }
Returns a new uninitialized instance of this object's class.
public ImportCandidateHolder(@NotNull PsiElement importable,@NotNull PsiFileSystemItem file,@Nullable PyImportElement importElement,@Nullable QualifiedName path,@Nullable String asName){ myFile=file; myImportable=importable; myImportElement=importElement; myPath=path; myAsName=asName; assert importElement !...
Creates new instance.
public SoftCache(int initialCapacity,float loadFactor){ hash=new HashMap(initialCapacity,loadFactor); }
Construct a new, empty <code>SoftCache</code> with the given initial capacity and the given load factor.
public DateMidnight withDurationAdded(ReadableDuration durationToAdd,int scalar){ if (durationToAdd == null || scalar == 0) { return this; } return withDurationAdded(durationToAdd.getMillis(),scalar); }
Returns a copy of this date with the specified duration added. <p> If the addition is zero, then <code>this</code> is returned.
private void checkQualifier(XMethod xmethod,CFG cfg,TypeQualifierValue<?> typeQualifierValue,ForwardTypeQualifierDataflowFactory forwardDataflowFactory,BackwardTypeQualifierDataflowFactory backwardDataflowFactory,ValueNumberDataflow vnaDataflow) throws CheckedAnalysisException { if (DEBUG) { System.out.println("-...
Check a specific TypeQualifierValue on a method.
public static PlaceholderFragment newInstance(int sectionNumber){ PlaceholderFragment fragment=new PlaceholderFragment(); Bundle args=new Bundle(); args.putInt(ARG_SECTION_NUMBER,sectionNumber); fragment.setArguments(args); return fragment; }
Returns a new instance of this fragment for the given section number.
public void EndRead(){ this.numReaders--; if (this.numReaders == 0) { this.notifyAll(); } }
Release the calling thread's portion of this object's read lock.<p> REQUIRES LL = SELF.
private static Identity parse(final JsonObject json){ final String fname="firstName"; final String lname="lastName"; final String unknown="?"; final Map<String,String> props=new HashMap<>(json.size()); props.put(fname,json.getString(fname,unknown)); props.put(lname,json.getString(lname,unknown)); return n...
Make identity from JSON object.
public AuthenticationException(String message){ super(message); }
Creates a new AuthenticationException without any authentication header information. The WWW-Authenticate header will have to be set separately to build a valid HTTP 401 error response.
public void removeLineHighlight(Object tag){ if (tag instanceof LineHighlightInfo) { lineHighlights.remove(tag); repaintLine((LineHighlightInfo)tag); } }
Removes a line highlight.
@Override public synchronized Object appendEL(Object o){ if (offset + size + 1 > arr.length) enlargeCapacity(size + 1); arr[offset + size]=o; size++; return o; }
append a new value to the end of the array
public void write(ExceptionlessOutputStream out){ out.writeInt(size); for (int i=0; i < size; ++i) out.writeInt(vector[i]); }
Writes a binary representation of the vector.
public Statement createStatement() throws SQLException { return createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY,resultSetHoldability); }
Creates a <code>Statement</code> object for sending SQL statements to the database. SQL statements without parameters are normally executed using Statement objects. If the same SQL statement is executed many times, it is more efficient to use a <code>PreparedStatement</code> object. <P> Result sets created using the re...
public static boolean platformSupportsModPoll(){ return System.getProperty("os.name").matches("(?i)(Windows|Linux).*"); }
Returns true if the platform supports the modpoll executable
@Override public String latitude(Angle angle){ if (angle == null) { String msg=Logging.getMessage("nullValue.LatLonIsNull"); Logging.logger().severe(msg); throw new IllegalArgumentException(msg); } if (this.isShowDMS()) { double[] dms=angle.toDMS(); return String.format("%02.0f%02.0f%04.1f%s",...
Format a latitude value. If this format is configured to show degrees, minutes, and seconds then the returned string will use the format "DDMMSS.S".
public static String formatColon(long time){ if (time == Constants.CRAPPY_INFINITY_AS_INT || time >= Constants.CRAPPY_INFINITE_AS_LONG) return Constants.INFINITY_STRING; if (time < 0) return ""; int secs=(int)time % 60; int mins=(int)(time / 60) % 60; int hours=(int)(time / 3600) % 24; int days=(int)(ti...
Format time into "[[# y] # d] 00:00:00" format
public static TXCommitMessage combine(Set<TXCommitMessage> msgSet){ assert msgSet != null; TXCommitMessage firstPart=null; Iterator<TXCommitMessage> it=msgSet.iterator(); while (it.hasNext()) { if (firstPart == null) { firstPart=it.next(); continue; } firstPart.combine(it.next()); } ...
Combines a set of small TXCommitMessages that belong to one transaction into a txCommitMessage that represents an entire transaction. At commit time the txCommitMessage sent to each node can be a subset of the transaction, this method will combine those subsets into a complete message.
private void onCheckoutCreated(Checkout checkout){ startActivity(new Intent(ProductListActivity.this,DiscountActivity.class)); }
If the selected product requires shipping, show the list of shipping rates so the user can pick one. Otherwise, skip to the discounts activity (gift card codes and discount codes).
public String index(){ return index; }
The index name to create.
public Writer asWriter(){ return new StrBuilderWriter(); }
Gets this builder as a Writer that can be written to. <p> This method allows you to populate the contents of the builder using any standard method that takes a Writer. <p> To use, simply create a <code>StrBuilder</code>, call <code>asWriter</code>, and populate away. The data is available at any time using the methods ...
public void actionPerformed(ActionEvent ae){ if (!animator.isRunning()) { this.setText("Stop Animation"); animator.start(); } else { animator.stop(); this.setText("Start Animation"); alpha=1.0f; } }
This method receives click events, which start and stop the animation
public boolean match(MemberValuePair node,Object other){ if (!(other instanceof MemberValuePair)) { return false; } MemberValuePair o=(MemberValuePair)other; return (safeSubtreeMatch(node.getName(),o.getName()) && safeSubtreeMatch(node.getValue(),o.getValue())); }
Returns whether the given node and the other object match. <p> The default implementation provided by this class tests whether the other object is a node of the same type with structurally isomorphic child subtrees. Subclasses may override this method as needed. </p>
void connect(int sourcePort,Target<P> target,Edge edge){ if (edge == null) throw new NullPointerException(); Consumer<P> input=target.vertex.invocation.getInputs().get(target.port); invocation.setTarget(sourcePort,input); edges.set(sourcePort,edge); invocation.setContext(sourcePort,new MyOutputContext(conne...
Connect this Vertex's source port to a target Vertex input port using the given edge.
public DefaultRetryPolicy(){ this(DEFAULT_TIMEOUT_MS,DEFAULT_MAX_RETRIES,DEFAULT_BACKOFF_MULT); }
Constructs a new retry policy using the default timeouts.
protected StringSetMap convertRolesToMap(List<RoleAssignmentEntry> entries){ StringSetMap assignments=new StringSetMap(); if (entries != null && !entries.isEmpty()) { for ( RoleAssignmentEntry roleAssignment : entries) { PermissionsKey key; if (roleAssignment.getGroup() != null) { key=new...
Utilities conversion methods
public Queue<Env<AttrContext>> attribute(Queue<Env<AttrContext>> envs){ ListBuffer<Env<AttrContext>> results=new ListBuffer<>(); while (!envs.isEmpty()) results.append(attribute(envs.remove())); return stopIfError(CompileState.ATTR,results); }
Attribute a list of parse trees, such as found on the "todo" list. Note that attributing classes may cause additional files to be parsed and entered via the SourceCompleter. Attribution of the entries in the list does not stop if any errors occur.
public ChannelFuture connect(String host,int port) throws InterruptedException { return connect(new InetSocketAddress(host,port)); }
Connect synchronously to specified host and port.
public void onEvent(Event e){ log.info("Cmd=" + e.getTarget().getId()); if (cmbDocType.equals(e.getTarget())) { form.postQueryEvent(); return; } validate(); }
Action Listener
public VariableDeclarationFragment newVariableDeclarationFragment(){ VariableDeclarationFragment result=new VariableDeclarationFragment(this); return result; }
Creates an unparented variable declaration fragment node owned by this AST. By default, the fragment is for a variable with an unspecified, but legal, name; no extra array dimensions; and no initializer.
private Map<String,List<Request>> requests(final Request req) throws IOException { final String header=new RqHeaders.Smart(req).single("Content-Type"); if (!new EnglishLowerCase(header).string().startsWith("multipart/form-data")) { throw new HttpException(HttpURLConnection.HTTP_BAD_REQUEST,String.format("RqMtBa...
Build a request for each part of the origin request.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:29:57.371 -0500",hash_original_method="2D34A90DB159467DA6803B576AE47B5C",hash_generated_method="D2E47960A2EF00A2F4D85C7CB407FA92") public LayoutAnimationController(Animation animation,float delay){ mDelay=delay; setAnimation(animat...
Creates a new layout animation controller with the specified delay and the specified animation.
@Override public boolean eIsSet(int featureID){ switch (featureID) { case StextPackage.ROOT__ROOTS: return roots != null && !roots.isEmpty(); } return super.eIsSet(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void e(String log,Throwable tr){ if (debug) { String line=getFunctionName(); Log.e(tag,"{Thread:" + Thread.currentThread().getName() + "}"+ "["+ name+ line+ ":] "+ log+ "\n",tr); } }
The Log Level:e
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
@SafeVarargs public static <E>ImmutableList<E> of(E e1,E e2,E e3,E e4,E e5,E e6,E e7,E e8,E e9,E e10,E e11,E e12,E... others){ Object[] array=new Object[12 + others.length]; array[0]=e1; array[1]=e2; array[2]=e3; array[3]=e4; array[4]=e5; array[5]=e6; array[6]=e7; array[7]=e8; array[8]=e9; array[9...
Returns an immutable list containing the given elements, in order.
public GemFireException(){ super(); }
Creates a new <code>GemFireException</code> with no detailed message.
public DefaultOffsets(){ this.populate(); }
Create the map and populate it with the default offsets.
public boolean canDockWest(){ List constraints=dockPanel.getConstraints(getChildren()); return DockConstraint.canDockWest(constraints); }
Determine if this can dockWest
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:36:11.202 -0500",hash_original_method="18267EA0A2027BF86F0A85466039921C",hash_generated_method="C96CA958F20C3743481DCCEA10551E2D") public static SslError verifyServerCertificates(byte[][] certChain,String domain,String authType) throws...
Similar to doHandshakeAndValidateServerCertificates but exposed to JNI for use by Chromium HTTPS stack to validate the cert chain.
@Override public void removeAcceptedOffer(Offer offer){ this.acceptedOffers.remove(offer); dataAdapter.removeCardOffer(offer); }
Remove an offer from accepted offers array.
protected void isCDATASectionWellFormed(CDATASection node){ Character invalidChar=isWFXMLChar(node.getData()); if (invalidChar != null) { String msg=Utils.messages.createMessage(MsgKey.ER_WF_INVALID_CHARACTER_IN_CDATA,new Object[]{Integer.toHexString(Character.getNumericValue(invalidChar.charValue()))}); if...
Checks if an CDATASection node is well-formed, by checking it's data for well-formedness. Note that the presence of a CDATA termination mark in the contents of a CDATASection is handled by the parameter spli-cdata-sections
public final static <T>Stream<T> optionalToStream(final Optional<T> optional){ if (optional.isPresent()) return Stream.of(optional.get()); return Stream.of(); }
Convert a Stream to an Optional
public <T extends OffsettedItem>T intern(T item){ throwIfPrepared(); OffsettedItem result=interns.get(item); if (result != null) { return (T)result; } add(item); interns.put(item,item); return item; }
Interns an item in this instance, returning the interned instance (which may not be the one passed in). This will add the item if no equal item has been added.
public boolean loadLines(){ boolean result=false; try { m_parser.parse(new InputSource(m_reader),this); result=true; m_success=true; } catch ( SAXException e) { m_errorMessage="ErrorParsingData"; m_errorDescription=e.getMessage(); } catch ( IOException e) { m_errorMessage="ErrorReadin...
Read statementlines from InputStream.
public static FileSystemInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { FileSystemInfo object=new FileSystemInfo(); int event; java.lang.String nillableValue=null; java.lang.String prefix=""; java.lang.String namespaceuri=""; try { while (!reader.isStartElement() && !rea...
static method to create the object Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable If this object is not an element, it is a complex type and the reader is at the event just after the outer start element Postcondition: If t...
public ForeignCallStub(HotSpotJVMCIRuntimeProvider runtime,HotSpotProviders providers,long address,ForeignCallDescriptor descriptor,boolean prependThread,Transition transition,boolean reexecutable,LocationIdentity... killedLocations){ super(providers,HotSpotForeignCallLinkageImpl.create(providers.getMetaAccess(),prov...
Creates a stub for a call to code at a given address.
private int javaSunTools(String[] args){ try { Class<?> sun; try { sun=forName("com.sun.tools.javac.Main"); } catch ( ClassNotFoundException e) { return -1; } Method method=sun.getMethod("compile",args.getClass()); logger.debug("invoke com.sun.tools.javac.Main#compile"); Ob...
Requires Sun tools.jar in class-path.
protected void clearEvents(){ }
This method resets the incoming events (time events included).
public void showPopupDialog(Rectangle rect){ if (getUIID().equals("Dialog")) { setUIID("PopupDialog"); if (getTitleComponent().getUIID().equals("DialogTitle")) { getTitleComponent().setUIID("PopupDialogTitle"); } getContentPane().setUIID("PopupContentPane"); } Component contentPane=getConten...
A popup dialog is shown with the context of a component and its selection, it is disposed seamlessly if the back button is pressed or if the user touches outside its bounds. It can optionally provide an arrow in the theme to point at the context component. The popup dialog has the PopupDialog style by default.
public boolean intersects(int left,int top,int right,int bottom){ return this.left < right && left < this.right && this.top < bottom && top < this.bottom; }
Returns true if this rectangle intersects the specified rectangle. In no event is this rectangle modified. No check is performed to see if either rectangle is empty. To record the intersection, use intersect() or setIntersect().
@Override public void windowGainedFocus(WindowEvent e){ timer.stop(); if (windows.get(e.getWindow()) != null) { app.setActiveView((View)windows.get(e.getWindow())); showPalettes(); } }
Invoked when the Window is set to be the focused Window, which means that the Window, or one of its subcomponents, will receive keyboard events.
public static OFGroup createMPLSL3VPNLabel(U32 index){ return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) | (MPLSSubType.MPLS_L3_VPN_LABEL << 24)| (OFDPAGroupType.MPLS_LABEL << 28)); }
Only bits 0-23 of index are used. Bits 24-31 are ignored.
public InlineQueryResultArticle.InlineQueryResultArticleBuilder description(String description){ this.description=description; return this; }
*Optional Sets a short description of the result to be shown in the inline result selection pane
static public void assertNotNull(String message,Object object){ assertTrue(message,object != null); }
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:23.216 -0500",hash_original_method="D12B7095CE782CB3A44759C6A99FDE49",hash_generated_method="95F67EF1AE8E8F4CFD78A7E29DCD7543") public static char highSurrogate(int codePoi...
Returns the high surrogate for the given code point. The result is meaningless if the given code point is not a supplementary character.
protected void fireProgressUpdate(int type,String task,int frameNumber,int totalFrames){ progressSupport.fireUpdate(type,task,totalFrames,frameNumber); }
Fire an build update to progress listeners.
@Ignore @Test public void testEmptyLocators(){ Properties props=new Properties(); props.put(MCAST_PORT,String.valueOf(0)); props.put(LOCATORS,""); try { createSystem(props); fail("Should have thrown an IllegalArgumentException"); } catch ( IllegalArgumentException ex) { } }
Test a configuration with an <code>mcastPort</code> of zero and an empty <code>locators</code>.
private static void convert(PcapDecoder decoder,FileOutputStream fos) throws IOException { boolean headerWritten=false; TimeUnit timeunit=null; for ( IPcapngType section : decoder.getSectionList()) { if (section instanceof IDescriptionBlock && !headerWritten) { timeunit=convertDescriptionBlock(fos,(IDe...
Extracts the required parts from the decoded pcapng file and writes them in the same order to the pcap output stream.
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:57:40.110 -0500",hash_original_method="418DF30233826B8D5F2BA83471599105",hash_generated_method="D53850AD9234427781A798821AD9FA19") public static boolean equals(boolean[] array...
Compares the two arrays.
@Override public void eSet(int featureID,Object newValue){ switch (featureID) { case N4JSPackage.ARGUMENT__SPREAD: setSpread((Boolean)newValue); return; case N4JSPackage.ARGUMENT__EXPRESSION: setExpression((Expression)newValue); return; } super.eSet(featureID,newValue); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public ScalaSensor(Settings settings,FileSystem fileSystem,ResourcePerspectives resourcePerspectives){ this.settings=settings; this.fileSystem=fileSystem; this.resourcePerspectives=resourcePerspectives; }
Use of IoC to get Settings and FileSystem
public FilteredExperienceDelayHandler(final Scenario scenario,final int noOfTimeBins,final String userGroup,final PersonFilter personFilter,final AreaFilter areaFilter){ delegate=new ExperiencedDelayHandler(scenario,noOfTimeBins); this.pf=personFilter; this.userGroup=userGroup; this.af=areaFilter; this.networ...
Area and user group filtering will be used, links fall inside the given shape and persons belongs to the given user group will be considered.
private ModelNode[] nodesArray(){ return nodes.values().toArray(new ModelNode[nodes.size()]); }
Returns an array view on the nodes in the balancer. Nodes should not be removed from this list.
ASCIIBits clear(String chars){ for (int i=0, n=chars.length(); i < n; ++i) { char ch=chars.charAt(i); if (ch < 64) { _lowerMask&=~(1L << ch); } else { _upperMask&=~(1L << ch); } } return this; }
Clears the bit (sets to 0) for each character in the argument string.
public Promise<List<T>> zip(){ return zipPromise(null); }
Zipping array of promises to single promise of array
public Tree<L> shallowCloneJustRoot(){ return new Tree<L>(label); }
Return a clone of just the root node of this tree (with no children)