code
stringlengths
10
174k
nl
stringlengths
3
129k
public static void exportToJavascriptArrays() throws IOException { Index index2=index.filterIndex(ConfigurationManager.getCurrentProfile().getMaxKeywords(),ConfigurationManager.getCurrentProfile().getIndexFilterAlgorithm()); File searchFolder=new File(CatalogManager.getGenerateFolder(),"_search"); searchFolder=ne...
Export search information to Javascript arrays in files
public static void awaitDataReady(){ synchronized (mDbHelperLock) { if (mDbHelper == null) { try { mDbHelperLock.wait(); } catch ( InterruptedException e) { e.printStackTrace(); } } } }
This method blocks until the underlying data store is ready. Be sure to call this on a background thread. This is helpful because queries to this ContentProvider will return null if this component hasn't yet performed initialization after CacheWord becomes ready.
public int size(){ final Segment<K,V>[] segments=this.segments; final int segmentCount=segments.length; long previousSum=0L; for (int retries=-1; retries < RETRIES_BEFORE_LOCK; retries++) { long sum=0L; long size=0L; for (int i=0; i < segmentCount; i++) { Segment<K,V> segment=segmentAt(segment...
Returns the number of key-value mappings in this map. If the map contains more than <tt>Integer.MAX_VALUE</tt> elements, returns <tt>Integer.MAX_VALUE</tt>.
public void resumeIncomingFileTransfer(FileSharingSession session,boolean isGroup){ if (sLogger.isActivated()) { sLogger.info("Resume incoming file transfer from " + session.getRemoteContact()); } if (isGroup) { GroupFileTransferImpl groupFileTransfer=getOrCreateGroupFileTransfer(session.getContributionID...
Resume an incoming HTTP file transfer
public void warn(String tag,String message){ info(tag,message); }
Logs the message to the stream as a warning.
public CUCorrectionProposal(String name,ICompilationUnit cu,TextChange change,int relevance){ this(name,cu,change,relevance,JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE)); }
Constructs a correction proposal working on a compilation unit with a given text change. Uses the default image for this proposal.
@Override public int hashCode(){ return nodeId.hashCode() - distrib.hashCode(); }
Returns the hashcode for the value, computed from the node identifier and the distribution
void scheduleFade(){ mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_FADE),FADE_DELAY); }
Schedule a fade message for later.
private View findInterceptingView(float pos,View v){ for ( KeyButtonView otherView : mButtonViews) { if (otherView == v) { continue; } if (ArrayUtils.contains(SMALL_BUTTON_IDS,otherView.getId())) { continue; } otherView.getLocationOnScreen(sLocation); float otherPos=sLocation[mVer...
Find intersecting view in mButtonViews
boolean cancel0(){ setPeriod(-2l); return true; }
This method properly sets the status to cancelled, synchronizing when required.
private boolean isRootElement(Object element){ Object input=getRoot(); Object[] rootElemens=((ITreeContentProvider)getContentProvider()).getElements(input); return ArrayUtils.contains(rootElemens,element); }
Checks if the given element is one of the root object in the input list of the tree viewer.
@Override public Component add(Component comp){ _mainPanel.addRight((JComponent)comp); return comp; }
Overrides the add(Component comp) method in the <tt>Container</tt> class, adding the <tt>Component</tt> to the inner panel.
public int end(){ if (first < 0) throw new IllegalStateException("No match available"); return last; }
Returns the offset after the last character matched.
public IndexScan pickBestIndex(TableGroupJoinNode node,Set<TableSource> required,IntersectionEnumerator enumerator){ TableSource table=node.getTable(); IndexScan bestIndex=null; if (required.contains(table)) { for ( TableIndex index : table.getTable().getTable().getIndexes()) { SingleIndexScan candid...
Find the best index on the given table.
public int decodeColor(String colorString){ if (colorString == null || colorString.trim().isEmpty()) return Color.BLACK; if (colorString.startsWith("#")) colorString=colorString.replace("#",""); if (colorString.startsWith("0x")) colorString=colorString.replace("0x",""); if (colorString.startsWith("0X")) ...
Converts a String hex color value to an Integer color value.<br> <br> <b>Supported formats:</b><br> <ul> <li>#aaRRggBb</li> <li>0xaaRRggBb</li> <li>0XaaRRggBb</li> <li>#RRggBb</li> <li>0xRRggBb</li> <li>0XRRggBb</li> </ul>
public AppletThreadGroup(ThreadGroup parent,String name){ super(parent,name); setMaxPriority(Thread.NORM_PRIORITY - 1); }
Creates a new thread group for an applet. The parent of this new group is the specified thread group.
public static List<String> splitFileNames(String fileNames){ if (fileNames == null) return Collections.<String>emptyList(); List<String> result=new ArrayList<>(); for ( String file : fileNames.split("(?<!\\\\),")) { result.add(file.replaceAll("\\\\(?=,)","")); } return result; }
Splits file names separated by comma character. File names can contain comma characters escaped by backslash '\'
public void add(int v){ expandFor(size,0); vector[size - 1]=v; }
Adds the specified value on to the end of the vector, expanding its capacity as necessary.
protected Object _create(String className,Object[] constructorArgs,Class<?>[] argClasses,String prefix,Properties properties){ String errorMessage=null; Throwable exceptionCaught=null; boolean DEBUG=false; try { if (logger.isLoggable(Level.FINER)) { DEBUG=true; logger.finer("creating: " + classN...
Create a single object. If you want it to complain about classes it can't find, then set the 'basic' debug flag.
public static void main(String[] args){ runClassifier(new SGDText(),args); }
Main method for testing this class.
protected void generateSetValueMethod(SourcePrinter srcWriter){ srcWriter.println("public void setValue(Object value, String columnKey, DataSourceRecord<?> dataSourceRecord) {"); JField[] fields=JClassUtils.getDeclaredFields(dtoType); String dtoTypeName=dtoType.getParameterizedQualifiedSourceName(); for (int i=...
Generates the setValue method
public static void jenkins(final BitVector bv,final long prefixLength,final long[] aa,final long bb[],final long cc[],final long[] h){ if (prefixLength == 0) { final long seed=aa[0]; h[0]=seed ^ 0x8de6a918d6538324L; h[1]=seed ^ 0x6bda2aef21654e7dL; h[2]=seed ^ 0x36071e726d0ba0c5L; return; } in...
Constant-time Jenkins 64-bit hashing for any prefix (all three values produced).
public BookmarkManager(final com.google.security.zynamics.binnavi.models.Bookmarks.memory.BookmarkManager bookmarkManager){ m_bookmarkManager=bookmarkManager; for ( final CBookmark bookmark : m_bookmarkManager) { m_bookmarks.add(new Bookmark(bookmark)); } m_bookmarkManager.addListener(m_internalBookmarkLis...
Creates a new API bookmark manager object.
public static void overScrollBy(final PullToRefreshBase<?> view,final int deltaX,final int scrollX,final int deltaY,final int scrollY,final boolean isTouchEvent){ overScrollBy(view,deltaX,scrollX,deltaY,scrollY,0,isTouchEvent); }
Helper method for Overscrolling that encapsulates all of the necessary function. <p/> This should only be used on AdapterView's such as ListView as it just calls through to overScrollBy() with the scrollRange = 0. AdapterView's do not have a scroll range (i.e. getScrollY() doesn't work).
private Object readResolve(){ return (list instanceof RandomAccess ? new UnmodifiableRandomAccessList<>(list) : this); }
UnmodifiableRandomAccessList instances are serialized as UnmodifiableList instances to allow them to be deserialized in pre-1.4 JREs (which do not have UnmodifiableRandomAccessList). This method inverts the transformation. As a beneficial side-effect, it also grafts the RandomAccess marker onto UnmodifiableList instan...
public void populateDAO(Object value,int row,int column){ final Entrylimit element=(Entrylimit)getData().getAspect().get(row); switch (column) { case 0: { element.setStartPrice(((Money)value).getBigDecimalValue()); break; } case 1: { element.setEndPrice(((Money)value).getBigDecimalValue()); br...
Method populateDAO.
public int currentSegment(float[] coords){ if (isDone()) { throw new NoSuchElementException("flattening iterator out of bounds"); } int type=holdType; if (type != SEG_CLOSE) { coords[0]=(float)hold[holdIndex + 0]; coords[1]=(float)hold[holdIndex + 1]; if (type != SEG_MOVETO) { type=SEG_LIN...
Returns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. A float array of length 6 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of float x,y coordinates. S...
public static boolean constantTimeAreEqual(byte[] a,byte[] b){ if (a == b) { return true; } if (a == null || b == null) { return false; } if (a.length != b.length) { return false; } int nonEqual=0; for (int i=0; i != a.length; i++) { nonEqual|=(a[i] ^ b[i]); } return nonEqual == 0; }...
A constant time equals comparison - does not terminate early if test will fail.
public void init(String tmUniqueName,Properties properties) throws SysException { boolean canExport=false; String exportClass=properties.getProperty("com.atomikos.icatch.rmi_export_class"); canExport="UnicastRemoteObject".equals(exportClass) || "PortableRemoteObject".equals(exportClass); if (!canExport) { L...
Initializes the server object. Should be called as the first method, and only <b>after</b> the JTA transaction manager has been set up.
public void writeLinkGraphics(LinkGraphicList lgl,LinkProperties properties) throws IOException { int nPolys=polygons.length; if (nPolys <= 0) return; for (int i=0; i < nPolys; i++) { lgl.addPoly(((ESRIPoly.ESRIFloatPoly)polygons[i]).getRadians(),OMGraphic.RADIANS,OMGraphic.LINETYPE_STRAIGHT,properties); ...
Generates OMGraphics and adds them to the given list. <p> Copy the poly points array because the OMPoly converts from degrees to radians in place, trashing the shape.
private void inorder(TreeNode<E> root){ if (root == null) return; inorder(root.left); list.add(root.element); inorder(root.right); }
Inorder traversal from a subtree
private JCExpression makeIndyCall(DiagnosticPosition pos,Type site,Name bsmName,List<Object> staticArgs,MethodType indyType,List<JCExpression> indyArgs,Name methName){ int prevPos=make.pos; try { make.at(pos); List<Type> bsm_staticArgs=List.of(syms.methodHandleLookupType,syms.stringType,syms.methodTypeType)...
Generate an indy method call with given name, type and static bootstrap arguments types
public static void fill(short[] array,short value){ for (int i=0; i < array.length; i++) { array[i]=value; } }
Fills the specified array with the specified element.
public static boolean equals(boolean[] array1,boolean[] array2){ if (array1 == array2) { return true; } if (array1 == null || array2 == null || array1.length != array2.length) { return false; } for (int i=0; i < array1.length; i++) { if (array1[i] != array2[i]) { return false; } } re...
Compares the two arrays.
public static String format(byte[] a){ return (a == null) ? "null" : (a.length == 0) ? "" : formatTo(new StringBuilder(),a,", ").toString(); }
Formats the byte array a for printing purposes.
public void ensureCapacity(int minCapacity){ elements=cern.colt.Arrays.ensureCapacity(elements,minCapacity); }
Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. If necessary, allocates new internal memory and increases the capacity of the receiver.
public static boolean isParityAdjusted(byte[] key,int offset) throws InvalidKeyException { if (key.length - offset < 24) { throw new InvalidKeyException("Wrong key size"); } if (DESKeySpec.isParityAdjusted(key,offset) == false || DESKeySpec.isParityAdjusted(key,offset + 8) == false || DESKeySpec.isParityAdjus...
Checks if the given DES-EDE key, starting at <code>offset</code> inclusive, is parity-adjusted.
public void mouseMoved(MouseEvent e){ }
Called when the mouse is moved.
@Override public double splitValue(){ return m_splitValue; }
Returns the split value
public void changeAvailabilityStatus(String status,Presence.Mode mode){ if (nickname == null || nickname.equals("")) { throw new IllegalArgumentException("Nickname must not be null or blank."); } if (!joined) { throw new IllegalStateException("Must be logged into the room to change the " + "availability s...
Changes the occupant's availability status within the room. The presence type will remain available but with a new status that describes the presence update and a new presence mode (e.g. Extended away).
public TopicSubscriberLoop(TopicProcessor<T> processor,RingBuffer.Sequence pendingRequest,Subscriber<? super T> subscriber){ this.processor=processor; this.pendingRequest=pendingRequest; this.subscriber=subscriber; }
Construct a ringbuffer consumer that will automatically track the progress by updating its sequence
public void removeAllCallbacks(){ removeAllConnectionCallbacks(); removeAllDataCallbacks(); removeAllVersionQueryCallbacks(); removeAllTestingCallbacks(); removeAllRenamingCallbacks(); removeAllBaudRateQueryCallbacks(); removeAllErrorCallbacks(); removeAllFirmwareUpdateCallbacks(); }
Removes all connection, data, version query, board testing, renaming, baud rate query, and firmware update callbacks.
public boolean hasUserinfo(){ return (_userinfo != null); }
Tell whether or not this URI has userinfo.
public ClassCastException(){ }
Constructs a ClassCastException with no detail message.
private static void paintRegion(SynthContext state,Graphics g,Rectangle bounds){ JComponent c=state.getComponent(); SynthStyle style=state.getStyle(); int x; int y; int width; int height; if (bounds == null) { x=0; y=0; width=c.getWidth(); height=c.getHeight(); } else { x=bounds.x; ...
Paint a region.
public h4(Element element){ addElement(element); }
Use the set* methods to set the values of the attributes.
private Object[] resolveParameters(Executable executable,Optional<Object> target,Object outerInstance,ExtensionContext extensionContext,ExtensionRegistry extensionRegistry){ Preconditions.notNull(target,"target must not be null"); Parameter[] parameters=executable.getParameters(); Object[] values=new Object[param...
Resolve the array of parameters for the supplied executable, target, and outer instance.
void createSubordinateHost() throws Exception { assertCommandAndResponse("host_create_fakesite.xml","host_create_response_fakesite.xml",DateTime.parse("2000-06-06T00:01:00Z")); assertCommandAndResponse("domain_update_add_nameserver_fakesite.xml","domain_update_add_nameserver_response_fakesite.xml",DateTime.parse("2...
Creates ns3.fakesite.example as a host, then adds it to fakesite.
@SuppressWarnings("rawtypes") @Override public List<Integer> emit(List<Object> tuple,Object messageId){ if (!sanityCheck()) { LOG.error("spout collector for topic {} see monitored metadata invalid, is this data source removed! Trigger message id {} ",topic,messageId); return null; } KafkaMessageIdWrapper ...
How to assert that numTotalGroupbyBolts >= numOfRouterBolts, otherwise there is runtime issue by default, tuple includes 2 fields field 1: topic name field 2: map of key/value.
private static void addSwatchToRow(TableRow row,View swatch,int rowNumber){ if (rowNumber % 2 == 0) { row.addView(swatch); } else { row.addView(swatch,0); } }
Appends a swatch to the end of the row for even-numbered rows (starting with row 0), to the beginning of a row for odd-numbered rows.
public S2LatLngRect expanded(S2LatLng margin){ if (isEmpty()) { return this; } return new S2LatLngRect(lat.expanded(margin.lat().radians()).intersection(fullLat()),lng.expanded(margin.lng().radians())); }
Return a rectangle that contains all points whose latitude distance from this rectangle is at most margin.lat(), and whose longitude distance from this rectangle is at most margin.lng(). In particular, latitudes are clamped while longitudes are wrapped. Note that any expansion of an empty interval remains empty, and bo...
@Override public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws IOException, ServletException { HttpServletRequest req=HttpServletRequest.class.cast(request); long start=System.currentTimeMillis(); try { chain.doFilter(request,response); } finally { long delta=...
Updates performance counters using the Argus monitoring service.
private void printGitStatus(String statusText){ GitOutputConsole console=gitOutputConsoleFactory.create(STATUS_COMMAND_NAME); console.print(""); List<String> statusLines=Arrays.asList(statusText.split("\n")); boolean containsStagedChanges=statusLines.contains("Changes to be committed:"); boolean stagedChanges...
Print colored Git status to Output
public ShowSystemMenuAction(boolean show){ this.show=show; }
Creates a new ShowSystemMenuAction object.
public static synchronized void warmCodecs(String[] mimeTypes){ for (int i=0; i < mimeTypes.length; i++) { getMediaCodecInfo(mimeTypes[i]); } }
Optional call to warm the codec cache. Call from any appropriate place to hide latency.
public static DistinctFilter newInstance(){ return new DistinctFilter(BOp.NOARGS,BOp.NOANNS); }
A instance using the default configuration for the in memory hash map.
public boolean equals(Object otherObj){ if (!(otherObj instanceof BooleanArrayList)) return super.equals(otherObj); if (this == otherObj) return true; if (otherObj == null) return false; BooleanArrayList other=(BooleanArrayList)otherObj; if (size() != other.size()) return false; boolean[] theElement...
Compares the specified Object with the receiver. Returns true if and only if the specified Object is also an ArrayList of the same type, both Lists have the same size, and all corresponding pairs of elements in the two Lists are identical. In other words, two Lists are defined to be equal if they contain the same ele...
public boolean isAbstract(){ return Modifier.isAbstract(getAccessFlags()); }
Returns true for an abstract method
@SuppressWarnings("unchecked") public void initialize(Subject subject,CallbackHandler callbackHandler,Map<String,?> sharedState,Map<String,?> options){ this.subject=subject; this.callbackHandler=callbackHandler; this.sharedState=(Map<String,Object>)sharedState; this.options=options; debug="true".equalsIgnoreC...
Initialize this <code>LoginModule</code>. <p>
public void write(OutputNode node,Object source) throws Exception { Map map=(Map)source; for ( Object index : map.keySet()) { String root=entry.getEntry(); String name=style.getElement(root); OutputNode next=node.getChild(name); Object item=map.get(index); key.write(next,index); value.write...
This <code>write</code> method will write the key value pairs within the provided map to the specified XML node. This will write each entry type must contain a key and value so that the entry can be deserialized in to the map as a pair. If the key or value object is composite it is read as a root object so its <code>...
public RDFHandlerException(String msg){ super(msg); }
Creates a new RDFHandlerException.
public TableBuilder addColumns(Collection<? extends ColumnBuilder> columns){ if (columns != null) { for ( ColumnBuilder col : columns) { addColumn(col); } } return this; }
Adds the Columns to the new table.
private void minimizeTests(TestSuiteChromosome suite){ logger.info("Minimizing per test"); ExecutionTracer.enableTraceCalls(); for ( TestChromosome test : suite.getTestChromosomes()) { test.setChanged(true); } List<TestFitnessFunction> goals=new ArrayList<TestFitnessFunction>(); for ( TestFitnessFacto...
Minimize test suite with respect to the isCovered Method of the goals defined by the supplied TestFitnessFactory
public void record(Translation translation){ synchronized (this) { int offset=translation.id() - currentID; while (offset >= translations.size()) translations.add(null); translations.set(offset,translation); if (translation.id() == currentID) { this.notify(); } } }
This is called whenever a translation is completed by one of the decoder threads. There may be a current output thread waiting for the current translation, which is determined by checking if the ID of the translation is the same as the one being waited for (currentID). If so, the thread waiting for it is notified.
@SuppressWarnings("fallthrough") protected void buildCharCategories(Vector<String> tempRuleList){ int bracketLevel=0; int p=0; int lineNum=0; expressions=new Hashtable<>(); while (lineNum < tempRuleList.size()) { String line=tempRuleList.elementAt(lineNum); p=0; while (p < line.length()) { i...
This function builds the character category table. On entry, tempRuleList is a vector of break rules that has had variable names substituted. On exit, the charCategoryTable data member has been initialized to hold the character category table, and tempRuleList's rules have been munged to contain character category num...
public final boolean isKeepChildForeground(){ return mKeepChildForeground; }
Returns true if keeps foreground of child of this row, false otherwise. When ListRowPresenter applies overlay color on the child, it may change child's foreground Drawable. If application uses child's foreground for other purposes such as ripple effect, it needs tell ListRowPresenter to keep the child's foreground. ...
public static String padLeft(String text,int size){ return String.format("%1$" + size + "s",text); }
Method padLeft.
private static void runTask(AsyncIOProvider task){ if (!pool.remove(task)) { synchronized (task) { while (!task.isFinished()) { try { task.wait(); } catch ( InterruptedException e) { Thread.currentThread().interrupt(); throw new RuntimeException("Failed to w...
Runs the async part in current thread or blocks until already running async part is finished
private int computeVisualLength(char ch,int tabLength){ if (ch == '\t') return tabLength; else return 1; }
Returns the visual length of a given character taking into account the visual tabulator length.
public void addValidates(AbstractValidate validate){ this._validates.add(validate); return; }
Function adding Validates to our form
public static Thread consumeProcessErrorStream(Process self,OutputStream err){ Thread thread=new Thread(new ByteDumper(self.getErrorStream(),err)); thread.start(); return thread; }
Gets the error stream from a process and reads it to keep the process from blocking due to a full buffer. The processed stream data is appended to the supplied OutputStream. A new Thread is started, so this method will return immediately.
protected void processEvent(AWTEvent e){ if (e instanceof TextEvent) { processTextEvent((TextEvent)e); return; } super.processEvent(e); }
Processes events on this text component. If the event is a <code>TextEvent</code>, it invokes the <code>processTextEvent</code> method else it invokes its superclass's <code>processEvent</code>. <p>Note that if the event parameter is <code>null</code> the behavior is unspecified and may result in an exception.
public void testBlockCommitIntervals() throws Exception { int xacts=50; int millisPerXact=100; int[] intervals={200,1000}; for (int i=0; i < intervals.length; i++) { int interval=intervals[i]; logger.info("Testing block commit: transactions=" + xacts + " block interval="+ interval); TungstenProperti...
Verify that if a block commit interval is defined transactions will not commit at shorter intervals than specified. We can do this by setting block commit to a high number (100) but set the interval to be 1 seconds. We then insert X events per second over 10 seconds. If intervals are working correctly there should be n...
public boolean isAntialiased(){ return antialiased; }
Returns whether antialiasing is applied.
public Set<PersonUser> findDisabledPersonUsers(String tenantName,String searchString,int limit) throws Exception { return getService().findDisabledPersonUsers(tenantName,searchString,limit,this.getServiceContext()); }
Finds all the regular users that are disabled in the tenant's system domain Regular expressions are not allowed in the search string at this time.
public StoredItemStack extractItem(INetworkCache cache,StoredItemStack stack){ return null; }
simple method to extract a given stack from a network
@Override void decodeAttributeBody(byte[] attributeValue,char offset,char length){ offset+=2; setErrorClass(attributeValue[offset++]); setErrorNumber(attributeValue[offset++]); byte[] reasonBytes=new byte[length - 4]; System.arraycopy(attributeValue,offset,reasonBytes,0,reasonBytes.length); setReasonPhrase(...
Sets this attribute's fields according to attributeValue array.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case UmplePackage.ATTRIBUTE___SIMPLE_ATTRIBUTE_1: return getSimpleAttribute_1(); case UmplePackage.ATTRIBUTE___AUTOUNIQUE_ATTRIBUTE_1: return getAutouniqueAttribute_1(); case UmplePackage.ATTRIBUTE___DERIVED_ATTRIBU...
<!-- begin-user-doc --> <!-- end-user-doc -->
public String toString(){ StringBuffer sb=new StringBuffer("MAssetDelivery[").append(get_ID()).append(",A_Asset_ID=").append(getA_Asset_ID()).append(",MovementDate=").append(getMovementDate()).append("]"); return sb.toString(); }
String representation
public DoubleVector(){ len=0; vect=null; }
Instantiates a new double vector.
public SingleColumnRowMapper(final Class<T> requiredType){ this.requiredType=requiredType; }
Create a new SingleColumnRowMapper.
public boolean serviceExists(Session session,ServiceId id){ return find(session,id) != null; }
Returns true, if service with the specified identifier exists.
protected void tearDown(){ ht10=null; ht100=null; htfull=null; keyVector=null; elmVector=null; }
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.
public static boolean isNotEmpty(short[] array){ return (array != null && array.length != 0); }
<p>Checks if an array of primitive shorts is not empty or not <code>null</code>.</p>
public void stop(long tMillis){ if (mRingRadius.isActive()) { mRingRadius.stop(); } mFocusState=FocusState.STATE_HARD_STOP; mHardExitStartMillis=computeExitStartTimeMs(tMillis,mHardExitDurationMillis); }
Put the animation in the hard stop state regardless of the current dynamic transition. If the animation is currently in an enter state this will compute an exit start time such that the exit time lines up with the enter time at the current transition value.
private void generateNames(Map<TestCase,Set<TestFitnessFunction>> testToGoals){ initializeMethodCoverageCount(testToGoals); findUniqueGoals(testToGoals); initializeNameGoals(testToGoals); boolean changed=true; while (changed) { setTestNames(testToGoals); Map<String,Set<TestCase>> dupTestNameMap=determ...
Helper method that does the bulk of the work
@java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public GetterSetterJavadoc5 fieldName(final int fieldName){ this.fieldName=fieldName; return this; }
Setter section
public ConnectionConfig(){ super(); }
Ctor for a functional Swing object with no prexisting adapter
final public MutableString append(final Object[] a,final int offset,final int length,final CharSequence separator){ String s[]=new String[a.length]; for (int i=0; i < length; i++) s[i]=a[offset + i].toString(); return append(s,offset,length,separator); }
Appends the string representations of the given objects to this mutable string using the given separator.
public ImageSprite(final Sprite sprite){ this(sprite,null); }
Create an image sprite from another sprite.
public UpdatableStacking(UpdateableRegressor aggregatingRegressor,UpdateableRegressor... baseRegressors){ this(aggregatingRegressor,Arrays.asList(baseRegressors)); }
Creates a new Stacking regressor.
public static ProgressDialog showProgressDialog(Activity activity){ ProgressDialog dialog=new ProgressDialog(activity,activity.getResources().getString(R.string.loading)); dialog.setCancelable(true); if (activity.isFinishing() == false) { dialog.show(); } return dialog; }
show dialog
public NotificationChain basicSetLeftOperand(Expression newLeftOperand,NotificationChain msgs){ Expression oldLeftOperand=leftOperand; leftOperand=newLeftOperand; if (eNotificationRequired()) { ENotificationImpl notification=new ENotificationImpl(this,Notification.SET,ExpressionsPackage.BITWISE_XOR_EXPRESSION...
<!-- begin-user-doc --> <!-- end-user-doc -->
public StaticCalendarDetector(BugReporter aReporter){ reporter=aReporter; bugAccumulator=new BugAccumulator(reporter); }
Creates a new instance of this Detector.
public String toString(){ if (serial == null) return ""; return (serial.toString()); }
Return the serial number as user readable string.
public XmlElement addElement(XmlElement child){ Preconditions.checkNotNull(child); children.add(new Pair<Object,ChildType>(child,ChildType.ELEMENT)); return this; }
Adds a child XmlElement to this one. <p>Children appear in the order in which they are added in the xml output. </p>
public boolean isLinked(String authType){ Map<String,Map<String,String>> authData=getAuthData(); return authData.containsKey(authType) && authData.get(authType) != null; }
Indicates whether this user is linked with a third party authentication source. <p /> <strong>Note:</strong> This shouldn't be called directly unless developing a third party authentication library.
public static double distance(VisualItem vi1,VisualItem vi2){ double dx=vi1.getX() - vi2.getX(); double dy=vi1.getY() - vi2.getY(); return Math.sqrt(dx * dx + dy * dy); }
Get the distance between the x,y points of two VisualItems.
private void notifyAfter(FacesContext context,Lifecycle lifecycle){ UIViewRoot viewRoot=context.getViewRoot(); if (null == viewRoot) { return; } MethodExpression afterPhase=viewRoot.getAfterPhaseListener(); if (null != afterPhase) { try { PhaseEvent event=new PhaseEvent(context,PhaseId.RESTORE_V...
Notify afterPhase listener that is registered on the View Root.
@Override public void zoomRange(double lowerPercent,double upperPercent){ double start=this.timeline.toTimelineValue((long)getRange().getLowerBound()); double end=this.timeline.toTimelineValue((long)getRange().getUpperBound()); double length=end - start; Range adjusted; long adjStart, adjEnd; if (isInverted...
Zooms in on the current range (zoom-in stops once the axis length reaches the equivalent of one millisecond).