code
stringlengths
10
174k
nl
stringlengths
3
129k
private void promoteTail(CacheDataPage cacheDataPage) throws IOException { DataPageMain dpMain=cacheDataPage._main; DataPageExtra dpExtra=cacheDataPage._extra; setModified(cacheDataPage); DataPageMain lastMain=dpMain.getChildPage(dpExtra._entryView.getLast()); CacheDataPage lastDataPage=new CacheDataPage(last...
Makes the last normal entry of the given page the tail entry on that page, done when there are multiple entries on a page and no tail entry.
@DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:54.188 -0400",hash_original_method="7C391538556A6293A427C1DC577EC6A3",hash_generated_method="ACF5C7254CAD9AC0659F72588706415F") public static String toString(byte[] input,String encoding) throws IOException ...
Get the contents of a <code>byte[]</code> as a String using the specified character encoding. <p> Character encoding names can be found at <a href="http://www.iana.org/assignments/character-sets">IANA</a>.
void checkStartCode(){ if (!startCode) { throw new IllegalStateException("Cannot visit instructions before visitCode has been called."); } }
Checks that the visitCode method has been called.
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public void putStandard(RootFragment fragment){ stackList.get(stackList.size() - 1).add(fragment); }
standard mode,Directly add to the current task stack
protected HawkbitErrorNotificationMessage buildNotification(final Throwable ex){ LOG.error("Error in UI: ",ex); final I18N i18n=SpringContextHelper.getBean(I18N.class); return new HawkbitErrorNotificationMessage(STYLE,i18n.get("caption.error"),i18n.get("message.error.temp",ex.getClass().getSimpleName()),false); }...
Method to build a notification based on an exception.
private void ensureCurrentLayout(){ if (!tabPane.isValid()) { tabPane.validate(); } if (!tabPane.isValid()) { TabbedPaneLayout layout=(TabbedPaneLayout)tabPane.getLayout(); layout.calculateLayoutInfo(); } }
Make sure we have laid out the pane with the current layout.
public void actionPerformed(ActionEvent e){ m_popup.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); String cmd=e.getActionCommand(); for (int i=0; i < m_list.size(); i++) { KeyNamePair pp=(KeyNamePair)m_list.get(i); if (cmd.equals(pp.getName())) { launchReport(pp); return; } }...
Action Listener
public void signOut(){ SharedPreferences.Editor edit=this.mSharedPreferences.edit(); edit.remove(Constants.USER_NAME); edit.apply(); Intent intent=new Intent(this,LoginActivity.class); intent.putExtra("oldUsername",this.username); startActivity(intent); }
Log out, remove username from SharedPreferences, unsubscribe from PubNub, and send user back to the LoginActivity
public void write(BytesRef text,TermsEnum termsEnum) throws IOException { BlockTermState state=postingsWriter.writeTerm(text,termsEnum,docsSeen); if (state != null && ((IDVersionPostingsWriter)postingsWriter).lastDocID != -1) { assert state.docFreq != 0; assert fieldInfo.getIndexOptions() == IndexOptions.DO...
Writes one term's worth of postings.
void unweave(int id) throws PTAgentException { while (true) { ConfiguredAdvice[] oldWoven=woven.get(); boolean found=false; for (int i=0; i < oldWoven.length; i++) { ConfiguredAdvice e=oldWoven[i]; if (e.id == id) { ConfiguredAdvice[] newWoven=new ConfiguredAdvice[oldWoven.length - 1];...
Unweave some previously woven advice here
private Configuration(Context context){ setString(context,READY,R.string.msg_ready,0x0000ff); setString(context,GAME_OVER,R.string.msg_game_over,0xff0000); setString(context,WINNER,R.string.msg_winner,0x00ff00); for (int i=0; i < 10; i++) { mTextStrings[DIGIT_START + i]=String.valueOf((char)('0' + i)); ...
Extracts strings from Android resource file and prepares internal text data. Selects colors for text strings.
public CSSDescendantSelector(Selector ancestor,SimpleSelector simple){ super(ancestor,simple); }
Creates a new CSSDescendantSelector object.
protected SVGOMDocument(){ }
Creates a new uninitialized document.
public StreamEx<K> keys(){ return map(null); }
Returns a stream consisting of the keys of this stream elements. <p> This is an <a href="package-summary.html#StreamOps">intermediate</a> operation.
protected void updateOrderSummary(){ final Checkout checkout=getSampleApplication().getCheckout(); if (checkout == null) { return; } ((TextView)findViewById(R.id.line_item_price_value)).setText('$' + checkout.getLineItems().get(0).getPrice()); double totalDiscount=0; Discount discount=checkout.getDiscou...
Use the latest Checkout object details to populate the text views in the order summary section.
@Override public ActionMode startActionModeForChild(View child,ActionMode.Callback callback){ return null; }
Don't allow action modes in a SearchBar, it looks silly.
private Journal readJournal(ParcelFileDescriptor oldState){ Journal journal=new Journal(); if (oldState == null) { return journal; } FileInputStream inStream=new FileInputStream(oldState.getFileDescriptor()); try { int availableBytes=inStream.available(); if (DEBUG) Log.d(TAG,"available " + av...
Read the old journal from the input file. In the event of any error, just pretend we didn't have a journal, in that case, do a full backup.
@Override public T readObject(InRawH3 is,InH3Amp in){ TempOutputStream tos=new TempOutputStream(); is.readBinary(tos); StreamSourceH3 ss=null; return (T)ss; }
read the list from the input stream
public boolean isLeafAddr(long addr){ final long offset=getOffset(addr); final int length=getByteCount(addr); final boolean isNodeAddr=offset >= offsetLeaves && (offset + length) <= (offsetLeaves + extentLeaves); return isNodeAddr; }
Return <code>true</code> IFF the starting address lies entirely within the region dedicated to the B+Tree leaves.
@Override public boolean check(ProcessBranch operator,String value) throws OperatorException { if (value == null) { throw new UndefinedParameterError(ProcessBranch.PARAMETER_CONDITION_VALUE,operator); } int exampleIndex=-1; try { int startIndex=value.indexOf('['); if (startIndex >= 0) { int en...
This method checks if the file with pathname value exists.
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { s.defaultWriteObject(); for ( E e : this) s.writeObject(e); s.writeObject(null); }
Saves this queue to a stream (that is, serializes it).
protected HadoopConfiguration createHadoopConfiguration(){ return null; }
Creates custom Hadoop configuration.
public Vset addDAandJoinDU(Vset other){ if (this == DEAD_END) { return this; } if (other == DEAD_END) { return other; } if (x == fullX) { return this; } if (other.x == fullX) { return other.copy(); } vset=vset | other.vset; uset=(uset & other.uset) & ~other.vset; int selfLength=x.l...
Add in the definite assignment bits of another vset, but join the definite unassignment bits. This unusual operation is used only for 'finally' blocks. The original vset 'this' is destroyed by this operation. (Part of fix for 4068688.)
public void delete(){ m_jtree.delete(); m_updater.dispose(); }
Frees allocated resources.
private void writeMultipart(OutputStream os,MimeMultipart multipart) throws IOException { MimeContentType ct=multipart.getContentType(); MimeHeaderParameter boundaryParam=ct.getParameter("boundary"); String boundary="--" + boundaryParam.getValue(); for ( MimeBodyPart part : multipart.getBodyParts()) { os.w...
Writes a multipart entry to the stream.
@DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:53.790 -0400",hash_original_method="0C86CF264F403F294009DA2383C206BD",hash_generated_method="9A0D2328B6F82E9E4A31E48E09F45068") public boolean accept(File dir,String name){ return accept(new File(dir,name)...
Checks to see if the File should be accepted by this filter.
@Override protected void register(PackagerFactory packagerFactory){ }
Register packager. Doesn't register anything.
public WFG1(int k,int l,int M){ super(k,l,M); }
Constructs a WFG1 problem instance with the specified number of position-related and distance-related variables and the specified number of objectives.
public Set<byte[]> select(final String columnName,final Pattern columnMatcher){ final Iterator<Map.Entry<byte[],Map<String,byte[]>>> i=iterator(); Map.Entry<byte[],Map<String,byte[]>> row; Map<String,byte[]> prop; byte[] val; final Set<byte[]> pks=new TreeSet<byte[]>(this.table.ordering); while (i.hasNext()...
select all rows from a table where a given matcher matches with elements in a given row this method makes a full-table scan of the whole table
void add(final Node node){ nodes.add(node); if (currentGoal == null) { currentGoal=node; } }
Add a node to the path.
protected void doStateInHiveWithInfo(){ double pForgettingSource=getSimulation().pForgettingSource; double pForagingAgain=getSimulation().pForagingAgain; setColor(Color.yellow); receptive=true; double colonyNectarNeed=getSimulation().colonyNectarNeed; double threshold_forgetting=pForgettingSource * (100 - s...
The bee has information about a food source and is inside the hive. The bee wanders around, may listen to other dancing bees, may switch into state dancing or starts foraging again.<br> This method differs from the original model by setting the bee to non receptive during dancing.
public static void main(String[] args){ DatabaseConnectionDialog dbd=new DatabaseConnectionDialog(null,"URL","username"); dbd.setVisible(true); System.out.println(dbd.getReturnValue() + ":" + dbd.getUsername()+ ":"+ dbd.getPassword()+ ":"+ dbd.getURL()); }
for testing only
static double[] slowLog(double xi){ double x[]=new double[2]; double x2[]=new double[2]; double y[]=new double[2]; double a[]=new double[2]; split(xi,x); x[0]+=1.0; resplit(x); splitReciprocal(x,a); x[0]-=2.0; resplit(x); splitMult(x,a,y); x[0]=y[0]; x[1]=y[1]; splitMult(x,x,x2); y[0]=LN_S...
xi in the range of [1, 2]. 3 5 7 x+1 / x x x \ ln ----- = 2 * | x + ---- + ---- + ---- + ... | 1-x \ 3 5 7 / So, compute a Remez approximation of the following function ln ((sqrt(x)+1)/(1-sqrt(x))) / x This w...
protected void initToolbar(){ toolbar.setFloatable(false); loadButton=new JButton("Load"); loadButton.setToolTipText("Load Map (<ctrl> bounding box mode, <shift> overview mode)"); loadButton.addActionListener(this); toolbar.add(loadButton); saveButton=new JButton("Save"); saveButton.setToolTipText("Save V...
Defines the functionality of the toolbar by adding components to it. Override to customize!
public JSONStringer(){ super(new StringWriter()); }
Make a fresh JSONStringer. It can be used to build one JSON text.
public RotationMatrixBuilder withThetas(double theta){ for ( Plane plane : planes) { plane.setTheta(theta); } return this; }
Sets the rotation angle, in radians, of all 2D rotation planes added to this builder.
private List<Color> project(final List<Entry<Color,Integer>> colorList){ final List<Color> colors=new ArrayList<Color>(); for ( final Entry<Color,Integer> entry : colorList) { colors.add(entry.getKey()); } return colors; }
Returns the colors from a color/integer map entry.
private void computeBoundedTargetValues(){ mTargetX=(mClampedStartingX - mBounds.exactCenterX()) * .7f; mTargetY=(mClampedStartingY - mBounds.exactCenterY()) * .7f; mTargetRadius=mBoundedRadius; }
Compute target values that are dependent on bounding.
public static GT_Tool_Item constructElectricScrewdriverItem(String aUnlocalized,String aEnglish,int aMaxDamage,int aEntityDamage,int aDisChargedGTID){ try { return (GT_Tool_Item)Class.forName("gregtechmod.api.items.GT_ScrewdriverIC_Item").getConstructors()[0].newInstance(aUnlocalized,aEnglish,aMaxDamage,aEntityDa...
Creates a new electric Screwdriver Item
public String toTokens(){ return toTokens(unescape(this.urlstub(true,true))); }
Tokenized url as string (without the protocol)
public CreateTerrainVisualPanel2(){ initComponents(); _flatPanel.setVisible(true); _imagePanel.setVisible(false); _hillPanel.setVisible(false); _faultPanel.setVisible(false); this.validate(); }
Creates new form CreateTerrainVisualPanel2
private static void bindPreferenceSummaryToValue(Preference preference){ preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener); sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,PreferenceManager.getDefaultSharedPreferences(preference.getContext()).getString(preference.ge...
Binds a preference's summary to its value. More specifically, when the preference's value is changed, its summary (line of text below the preference title) is updated to reflect the value. The summary is also immediately updated upon calling this method. The exact display format is dependent on the type of preference.
public Map<String,RawProtein<SmartRawMatch>> process(Map<String,RawProtein<SmartRawMatch>> proteinIdToRawProteinMap) throws IOException { final Map<String,RawProtein<SmartRawMatch>> filteredMatches=new HashMap<String,RawProtein<SmartRawMatch>>(); for ( RawProtein<SmartRawMatch> protein : proteinIdToRawProteinMap.v...
Perform post processing.
public Reader create(InputStream is,String javaEncoding){ return new WindowsHackReader(is); }
Create a windows-hack reader based on the readStream.
public boolean isSpeaking(){ return speaking; }
Whether the user is now speaking or not.
public FunctionException(String msg,Throwable cause){ super(msg,cause); }
Creates new function exception with given error message and optional nested exception.
public Database create() throws IOException { Database db=DatabaseImpl.create(_fileFormat,_mdbFile,_channel,_autoSync,_charset,_timeZone); if (_dbProps != null) { PropertyMap props=db.getDatabaseProperties(); props.putAll(_dbProps.values()); props.save(); } if (_summaryProps != null) { PropertyM...
Creates a new Database using the configured information.
public static void createCollectionLevelSnapshot(SolrZkClient zkClient,String collectionName,CollectionSnapshotMetaData meta) throws KeeperException, InterruptedException { String zkPath=getSnapshotMetaDataZkPath(collectionName,Optional.of(meta.getName())); zkClient.makePath(zkPath,Utils.toJSON(meta),CreateMode.PER...
This method creates an entry for the named snapshot for the specified collection in Zookeeper.
public OsmNetworkReaderJohan(final Network network,final CoordinateTransformation transformation){ this(network,transformation,true); }
Creates a new Reader to convert OSM data into a MATSim network.
public final void removeElementAt(int index){ Object[] newObjects=new Object[m_Objects.length]; System.arraycopy(m_Objects,0,newObjects,0,index); System.arraycopy(m_Objects,index + 1,newObjects,index,m_Objects.length - (index + 1)); m_Objects=newObjects; m_Size--; }
Deletes an element from this vector.
private Polygon buildDummyPolygon(){ Coordinate c1=new Coordinate(0.0,0.0); Coordinate c2=new Coordinate(0.0,10 * width); Coordinate c3=new Coordinate(10 * width,10 * width); Coordinate c4=new Coordinate(10 * width,0.0); Coordinate[] ca={c1,c2,c3,c4,c1}; return gf.createPolygon(ca); }
Builds a geometry that is 20 x 20 grids cells in size.
public UTMPoint(){ }
Point to create if you are going to use the static methods to fill the values in.
public static int[] copy(int[] array){ if (array != null) { int[] copy=new int[array.length]; System.arraycopy(array,0,copy,0,array.length); return copy; } return null; }
Returns a copy of the given integer array.
public CategoryImageNameStrategyImpl(final String relativeInternalRootDirectory,final GenericDAO<AttrValueCategory,Long> attrValueCategoryDao,final LanguageService languageService){ super(Constants.CATEGORY_IMAGE_REPOSITORY_URL_PATTERN,relativeInternalRootDirectory,languageService); this.attrValueEntityCategoryDao=...
Construct image name strategy
protected TypeInfoImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static final Parameter base(){ return new Parameter(P_GE); }
Returns the default base.
public BaseStreamRequest(final String requestUrl,final IOneDriveClient client,final List<Option> options,final Class<T> responseClass){ mBaseRequest=new BaseRequest(requestUrl,client,options,responseClass){ } ; }
Creates the stream request.
@Command(description="Deletes a certificate") public void deleteCertificate(@Param(name="certId",description="Certificate ID") String certId) throws Exception { Map<String,Object> logData=new LinkedHashMap<>(); logData.put(CERT_ID_PARAM,certId); try { SignerClient.execute(new DeleteCert(certId)); AuditLog...
Deletes a certificate.
@Override protected EClass eStaticClass(){ return UmplePackage.eINSTANCE.getNamespace_(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static boolean isEnabled(){ return (factory == enabledFactory) ? true : false; }
Is the MonitorFactory currently enabled?
public String globalInfo(){ return "An instance filter that converts all incoming sparse instances" + " into non-sparse format."; }
Returns a string describing this filter
public static Tradingday newInstance(ZonedDateTime date){ Tradingday tradingday=new Tradingday(TradingCalendar.getTradingDayStart(date),TradingCalendar.getTradingDayEnd(date)); return tradingday; }
Method newInstance.
private static void validateInteger(String fieldName,String value){ try { validateRegex(fieldName,value,INTEGER_REGEX); } catch ( Exception e) { throw APIException.badRequests.serviceFieldNonInteger(fieldName); } }
Validates a value as a float.
public CatalogEntryRemovedException(){ }
Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized.
private void pauseTimer(){ if (mCountDown != null) { mCountDown.cancel(); mCountDown=null; } }
Pause the internal timer used to propagate the playback position.
@Override protected void loadChars(jmri.jmrix.AbstractMRReply msg,java.io.DataInputStream istream) throws java.io.IOException { int i; String m; if (log.isDebugEnabled()) { log.debug("loading characters from port"); } if (!(msg instanceof DCCppReply)) { log.error("SerialDCCppPacketizer.loadChars calle...
Get characters from the input source, and file a message. <P> Returns only when the message is complete. <P> Only used in the Receive thread.
public boolean visit(SwitchStatement node){ return true; }
Visits the given type-specific AST node. <p> The default implementation does nothing and return true. Subclasses may reimplement. </p>
public boolean hasChildren(CnATreeElement parentElement){ try { boolean hasChildren=true; CacheObject cachedElement=cache.getCachedObject(parentElement); if (cachedElement != null) { hasChildren=(cachedElement.getHasChildren() == ChildrenExist.YES); } else if (ChildrenExist.isAlwaysChildles...
Returns true if element has children false if not. This method never does remote calls. If return value is not found in cache it logs a warning and returns <code>true</code>.
TemplateVariable(TemplateVariableType type,String name,String[] values,int[] offsets){ Assert.isNotNull(type); Assert.isNotNull(name); fType=type; fName=name; setValues(values); setOffsets(offsets); setUnambiguous(false); setResolved(false); fInitialLength=values[0].length(); }
Creates a template variable with multiple possible values.
public Authority(File keyStoreDir,String alias,char[] password,String commonName,String organization,String organizationalUnitName,String certOrganization,String certOrganizationalUnitName){ super(); this.keyStoreDir=keyStoreDir; this.alias=alias; this.password=password; this.commonName=commonName; this.org...
Create a parameter object with the given certificate and certificate authority informations
private static boolean eq(Object o1,Object o2){ return (o1 == null) ? o2 == null : o1.equals(o2); }
Tests for equality, coping with nulls.
private String bookkeepingKeyFor(String counterName){ return "metric_meta.aggregatecounters." + counterName; }
Return the key under which are stored the names of the other keys used for the given counter.
public CommonTermsQueryBuilder lowFreqMinimumShouldMatch(String lowFreqMinimumShouldMatch){ this.lowFreqMinimumShouldMatch=lowFreqMinimumShouldMatch; return this; }
Sets the minimum number of low frequent query terms that need to match in order to produce a hit.
public static void assertSupportedCipherSuites(Set<String> expected,String[] cipherSuites){ Set<String> remainingCipherSuites=assertValidCipherSuites(expected,cipherSuites); assertEquals("Missing cipher suites",Collections.EMPTY_SET,remainingCipherSuites); assertEquals(expected.size(),cipherSuites.length); }
After using assertValidCipherSuites on cipherSuites, assertSupportedCipherSuites additionally verifies that all supported cipher suites where in the input array.
private static boolean contains(String value,int start,int length,String criteria1,String criteria2,String criteria3,String criteria4,String criteria5){ return contains(value,start,length,new String[]{criteria1,criteria2,criteria3,criteria4,criteria5}); }
Shortcut method with 5 criteria
public void yypushback(int number){ if (number > yylength()) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos-=number; }
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public void remove(@Nonnull final String category) throws NotificationStoreException { Objects.requireNonNull(category); Preconditions.checkArgument(!category.isEmpty(),"category cannot be empty"); final Optional<Context> fetchContext=fetchContext(); if (!fetchContext.isPresent()) { return; } final MapU...
Asynchronously delete a rule
public <T extends PageObject>void waitUntilAfter(T entity,Predicate<T> waitUntil,String errorMessage,int waitTimeInSeconds){ Preconditions.checkNotNull(entity); Preconditions.checkNotNull(waitUntil); Preconditions.checkArgument(!Strings.isNullOrEmpty(errorMessage)); Calendar calendar=Calendar.getInstance(); c...
Waits until the Predicate on the Page Object entity is true, times out in waitTimeInSeconds.
private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeObject(SerializationTester.test(events) ? events : null); }
Serializes this <code>DragGestureEvent</code>. Performs default serialization and then writes out this object's <code>List</code> of gesture events if and only if the <code>List</code> can be serialized. If not, <code>null</code> is written instead. In this case, a <code>DragGestureEvent</code> created from the resulti...
public Observable<Integer> exerciseReduce(Observable<Integer> nums){ return Observable.error(new RuntimeException("Not Implemented")); }
Retrieve the largest number. Use reduce to select the maximum value in a list of numbers.
protected QoSConfig createQoSConfig(JsonObject qosSettings){ if (qosSettings.containsKey(JSON_FIELD_CONFIG)) { JsonObject jsonConfig=qosSettings.getJsonObject(JSON_FIELD_CONFIG); return new QoSConfig(jsonConfig.getInteger("percentile"),jsonConfig.getInteger("quorum"),jsonConfig.getInteger("period"),jsonConfig...
Creates the QoS config object from the given JsonObject and returns it.
@DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:53.870 -0400",hash_original_method="4A5BBE95AA88C5704ABBACA3A9164E73",hash_generated_method="A1433B2D7C0B436DA90DF75973B3A7F9") public static IOFileFilter nameFileFilter(String name){ return new NameFileFi...
Returns a filter that returns true if the filename matches the specified text.
private void writeQNameAttribute(java.lang.String namespace,java.lang.String attName,javax.xml.namespace.QName qname,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String attributeNamespace=qname.getNamespaceURI(); java.lang.String attributePrefix=xmlWriter.getPre...
Util method to write an attribute without the ns prefix
public double cdf(int k){ return Probability.negativeBinomial(k,n,p); }
Returns the cumulative distribution function.
public void endInsert() throws IOException { ResponseWriter writer=getWrapped(); writer.endCDATA(); if (inInsertBefore) { writer.endElement("before"); inInsertBefore=false; } else if (inInsertAfter) { writer.endElement("after"); inInsertAfter=false; } writer.endElement("insert"); }
<p class="changed_added_2_0">Write the end of an insert operation.</p>
public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,Object data) throws VisitorException { return visitor.visit(this,data); }
Accept the visitor.
public DefaultAllocator(int individualAllocationSize){ this(individualAllocationSize,0); }
Constructs an initially empty pool.
private void notifyNoActivity(){ logger.debug("No activity notified, sending enquireLink"); enquireLinkSender.enquireLink(); }
Notify for no activity.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:54:59.241 -0500",hash_original_method="264DF371DD142B0CCD6F6ECE44A7BFB6",hash_generated_method="293E3E92EE6F12C01ED80607A408DDB1") protected String encodeBody(){ if (address == null) return null; String retval=""; if (address.g...
Encode the header content into a String.
private static int[] trimArray(int[] array,int size){ if (size < 0) { throw new IllegalArgumentException(); } if (size == 0) { return NO_ERRORS; } int[] a=new int[size]; System.arraycopy(array,0,a,0,size); return a; }
Trim the array to the required size.
public UserActiveException(String message){ super(message); }
Constructs a new exception with the specified detail message. The cause is not initialized.
public void startPrefixMapping(String prefix,String uri) throws SAXException { flushStartDoc(); m_resultContentHandler.startPrefixMapping(prefix,uri); }
Receive notification of the start of a Namespace mapping. <p>By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each Namespace prefix scope (such as storing the prefix mapping).</p>
@SuppressWarnings("unchecked") private static void addPrivateField(ClassNode classNode,String fieldName,String fieldJavaType){ FieldNode fieldNode=new FieldNode(Opcodes.ACC_PRIVATE,fieldName,fieldJavaType,null,null); classNode.fields.add(fieldNode); }
Add private field to the class
public NSDate(byte[] bytes){ this(bytes,0,bytes.length); }
Creates a date from its binary representation.
public void addSteppables(Steppable[] steppables){ toBeAdded.addAll(steppables); }
Requests that the provided Steppables be added to the Sequence prior to the next step() call.
@Override public boolean eIsSet(int featureID){ switch (featureID) { case UmplePackage.STRICTNESS___ANONYMOUS_STRICTNESS_11: return anonymous_strictness_1_1 != null && !anonymous_strictness_1_1.isEmpty(); } return super.eIsSet(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public boolean hasRespondedToFirmwareVersionQuery(){ return isFirmwareVersionQueried; }
Checks whether the device responded to the firmware version query.
public Serializer serializer(){ return segments.serializer(); }
Returns the log entry serializer.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:31:11.442 -0500",hash_original_method="D9A3541A7FCE1B51D5769F33D7BC37C6",hash_generated_method="721257353AFBA8231AD2516CD0463A2E") static public FileA3D createFromFile(RenderScript rs,File path){ return createFromFile(rs,path.getAbso...
Creates a FileA3D object from a file stored on disk