code
stringlengths
10
174k
nl
stringlengths
3
129k
@DSComment("Package priviledge") @DSBan(DSCat.DEFAULT_MODIFIER) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:57:18.786 -0500",hash_original_method="3E735D41E2F85E8ACC700EB7ACA7DBFD",hash_generated_method="B3F6A2BE158A305318889C961631C794") final int dec(int i){ return ((i == 0)...
Circularly decrement i.
public AnimationBuilder(ViewAnimator viewAnimator,View... views){ this.viewAnimator=viewAnimator; this.views=views; }
Instantiates a new Animation builder.
public ASCIIReader(InputStream inputStream,int size){ fInputStream=inputStream; fBuffer=new byte[size]; }
Constructs an ASCII reader from the specified input stream and buffer size.
public List<MediaSearchResult> searchTvShow(String searchTerm,MediaScraper mediaScraper){ return searchTvShow(searchTerm,mediaScraper,TvShowModuleManager.SETTINGS.getScraperLanguage()); }
Search tv show with the default language.
public void registerWithSelector() throws IOException { getSelectableChannel().configureBlocking(false); getAcceptor().registerSC(this); }
Register this connection with the given selector for read events. Note that switch the channel to non-blocking so it can be in a selector.
public static int intersectLineSegmentAab(Vector3d p0,Vector3d p1,Vector3d min,Vector3d max,Vector2d result){ return intersectLineSegmentAab(p0.x,p0.y,p0.z,p1.x,p1.y,p1.z,min.x,min.y,min.z,max.x,max.y,max.z,result); }
Determine whether the undirected line segment with the end points <code>p0</code> and <code>p1</code> intersects the axis-aligned box given as its minimum corner <code>min</code> and maximum corner <code>max</code>, and return the values of the parameter <i>t</i> in the ray equation <i>p(t) = origin + p0 * (p1 - p0)</i...
private void openSoftKeyboard(View view){ ((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)).showSoftInput(view,InputMethodManager.SHOW_IMPLICIT); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); }
Open the soft keyboard (helper function)
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
public static Certification parseCertificationStringForMovieSetupCountry(String name){ Certification cert=Certification.NOT_RATED; name=name.trim(); if (name.contains("/")) { String[] countries=name.split("/"); for ( String c : countries) { c=c.trim(); if (c.contains(":")) { String[...
Parses a given certification string for the localized country setup in setting.
final public boolean startsWithIgnoreCase(final CharSequence prefix){ final int l=prefix.length(); if (l > length()) return false; int i=l; final char[] a=array; char c, d; while (i-- != 0) { c=Character.toLowerCase(Character.toUpperCase(a[i])); d=Character.toLowerCase(Character.toUpperCase(prefix...
Returns whether this mutable string starts with the given character sequence disregarding case.
public final boolean isEquivalent(){ return isErasure() && (this.rule & SearchPattern.R_EQUIVALENT_MATCH) != 0; }
Returns whether match element is compatible with searched pattern or not. Note that equivalent matches are also erasure ones.
public ElementCache(int size){ super(size); }
Constructs a new element cache of the given size.
LambdaForm customize(MethodHandle mh){ LambdaForm customForm=new LambdaForm(debugName,arity,names,result,forceInline,mh); if (COMPILE_THRESHOLD > 0 && isCompiled) { customForm.compileToBytecode(); } customForm.transformCache=this; return customForm; }
Customize LambdaForm for a particular MethodHandle
public void playTogether(Animator... items){ if (items != null) { mNeedsSort=true; Builder builder=play(items[0]); for (int i=1; i < items.length; ++i) { builder.with(items[i]); } } }
Sets up this AnimatorSet to play all of the supplied animations at the same time.
public boolean saveParameters(){ log.config(""); if (!validateParameters()) return false; for (int i=0; i < m_mFields.size(); i++) { WEditor editor=(WEditor)m_wEditors.get(i); WEditor editor2=(WEditor)m_wEditors2.get(i); Object result=editor.getValue(); Object result2=null; if (editor2 != nu...
Save Parameter values
public boolean next(){ if (!hasNext) { return false; } for (int i=0; i < m; i++) { out[i]=in[index[i]]; } moveIndex(); return true; }
Go to the next lineup, and if available, fill the target array.
public boolean isInitializationFinished(){ return mInitializationFinished; }
Check whether ImsModule instantiation has finished
private int detectPid() throws NodeJsDebuggerException { NodeJsDebugCommand<String> command=createCommand("process.pid",new NodeJsOutputRegExpParser(PROCESS_PID_COMMAND_OUTPUT_PATTERN)); return Integer.parseInt(doExecute(command)); }
Returns NodeJs pid.
public boolean isMultiThreadScanning(){ return !interruptMultiThread && mThreadStarted; }
Checks whether the service is currently scanning for devices or not. <b>Note: Multi-Thread scanning only!</b>
public void saveLogFile(){ if (fc == null) { fc=new FileDialog(getFrame()); fc.setMultipleMode(false); try { fc.setDirectory(PrefManager.get().getSelectedPath().getCanonicalPath()); } catch ( IOException ioe) { } } if (firstFile && (PrefManager.get().getPreferredSizeFileChooser().hei...
save the current logfile (only used in plugin mode)
public Plugin(RajawaliRenderer renderer){ this(renderer,true); }
Instantiates a new renderer plugin.
private void close(){ System.exit(0); }
This method exits the application.
public Object clone() throws CloneNotSupportedException { CandleSeries clone=(CandleSeries)super.clone(); clone.contract=(Contract)this.getContract().clone(); clone.symbol=this.getSymbol(); clone.currency=this.getCurrency(); clone.exchange=this.getExchange(); clone.secType=this.getSecType(); clone.startTi...
Method clone.
public void prepareBuilderState(){ descriptor().state().properties().forEach(null); descriptor().state().associations().forEach(null); descriptor().state().manyAssociations().forEach(null); descriptor().state().namedAssociations().forEach(null); }
When a ValueBuilder is finished and is about to instantiate a Value, call this to ensure that the state has correct settings, i.e. is immutable.
public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,Object data) throws VisitorException { return visitor.visit(this,data); }
Accept the visitor.
public MediaFormat(){ mMap=new HashMap<String,Object>(); }
Creates an empty MediaFormat
public ActionList decode(int length,boolean throwExceptions) throws IOException { int startOffset=reader.getOffset(); int end=startOffset + length; boolean ending=false; ActionFactory factory=new ActionFactory(length,startOffset,actionCount); try { for (int offset=startOffset; offset < end; offset=reader....
consume actions until length bytes are used up
protected void addServiceRefPropertyDescriptor(Object object){ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_ServiceInvocation_serviceRef_feature"),getString("_UI_PropertyDescriptor_description","_UI_Ser...
This adds a property descriptor for the Service Ref feature. <!-- begin-user-doc --> <!-- end-user-doc -->
public boolean isSetClose(){ return EncodingUtils.testBit(__isset_bitfield,__CLOSE_ISSET_ID); }
Returns true if field close is set (has been assigned a value) and false otherwise
static void test4() throws Exception { String osName=System.getProperty("os.name"); if (!osName.startsWith("SunOS")) return; String dataModel=System.getProperty("sun.arch.data.model"); if (!dataModel.startsWith("64")) return; File testFile=File.createTempFile("test4",null); testFile.deleteOnExit(); Fi...
Test to see that vector write can return > Integer.MAX_VALUE Note that under certain circumstances disk space problems occur with this test. It typically relies upon adequate disk space and/or a Solaris disk space optimization where empty files take up less space than their logical size. Note that if this test fails it...
public From(To to){ super(NAME); address=to.address; parameters=to.parameters; }
Generate a FROM header from a TO header
private void declareExtensions(){ extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile);...
Declare the extensions of the feeds for the Picasa Web Albums Data API.
public Contribution(NondominatedPopulation referenceSet,double epsilon){ this(referenceSet,new EpsilonBoxDominanceComparator(epsilon)); }
Constructs the contribution indicator using the specified reference set and &epsilon; value. Solutions residing in the same &epsilon;-box are considered to be equivalent.
public boolean hasBufferStrategyChanged(){ Container root=getRoot(); if (root != null) { BufferStrategy ourBS=null; BufferStrategy componentBS=null; ourBS=getBufferStrategy(false); if (root instanceof Window) { componentBS=((Window)root).getBufferStrategy(); } else { try { c...
Returns true if the buffer strategy of the component differs from current buffer strategy.
public boolean isNavBarTintEnabled(){ return mNavBarTintEnabled; }
Is tinting enabled for the system navigation bar?
@Override protected void mergeBlocks(OutputFileMetadata outputFileMetadata) throws IOException { try { LOG.debug("fastMergeActive: {}",fastMergeActive); if (fastMergeActive && fastMergerDecisionMaker.isFastMergePossible(outputFileMetadata) && outputFileMetadata.getNumberOfBlocks() > 0) { LOG.debug("Usin...
Uses fast merge if possible. Else, fall back to serial merge.
public static double maximalElement(double[] values){ double maximal=Double.NEGATIVE_INFINITY; for (int i=0; i < values.length; i++) { maximal=(values[i] > maximal) ? values[i] : maximal; } return maximal; }
This method returns the maximal skalar inside this vector.
synchronized int numBlockedFlushes(){ return blockedFlushes.size(); }
Returns the number of flushes that are checked out but not yet available for flushing. This only applies during a full flush if a DWPT needs flushing but must not be flushed until the full flush has finished.
private static void updateNetResponseCookies(List<String> cookiesHeader){ final CookieStore cookieStore=getCookieManager().getCookieStore(); if (cookieStore != null && cookiesHeader != null) { HttpCookie cookieStr=null; for ( String cookieHeader : cookiesHeader) { if (cookieHeader != null) { ...
write net cookies
public boolean isProgramBreak(){ return programBreak; }
Program stops and will restart later (frequently followed by a continued). Typically only found outside of North America.
public Query limit(int limit){ return limit(limit < 0 ? NO_LIMIT : Field.<Integer>field(Integer.toString(limit))); }
Set the limit of this statement. Using a negative value removes the limit.
public void paintButtonBackground(SynthContext context,Graphics g,int x,int y,int w,int h){ paintBackground(context,g,x,y,w,h,null); }
Paints the background of a button.
public boolean hasSameContent(final byte[] compareToBytes){ if (messageDigest == null || this.md5hash == null) { return false; } byte[] compareToMd5=messageDigest.digest(compareToBytes); if (logger.isDebugEnabled()) { logger.debug("For JAR file: {}, Comparing MD5 hash {} to {}",this.file.getAbsolutePath...
Uses MD5 hashes to determine if the original byte content of this JarClassLoader is the same as that past in.
public static List<String> test(){ return Test.run(); }
Run diagnostic tests.
public void open(int port) throws IOException { connection=new DatagramSocket(port); connection.setSoTimeout(timeout); }
Open the datagram connection
public static void main(final String[] args){ DOMTestCase.doMain(hc_noderemovechildoldchildnonexistent.class,args); }
Runs this test from the command line.
public Images createImageDescriptor(CompletionProposal proposal){ final int flags=proposal.getFlags(); Images descriptor; switch (proposal.getKind()) { case CompletionProposal.METHOD_DECLARATION: case CompletionProposal.METHOD_NAME_REFERENCE: case CompletionProposal.METHOD_REF: case CompletionProposal.CONSTRUCTOR_I...
Creates and returns a decorated image descriptor for a completion proposal.
public static ByteBuffer decode(ByteBuffer buf,PDFObject params) throws PDFParseException { ASCIIHexDecode me=new ASCIIHexDecode(buf); return me.decode(); }
decode an array of bytes in ASCIIHex format. <p> ASCIIHex format consists of a sequence of Hexidecimal digits, with possible whitespace, ending with the '&gt;' character.
public GeneralName(int tag,ASN1Encodable name){ this.obj=name; this.tag=tag; }
When the subjectAltName extension contains an Internet mail address, the address MUST be included as an rfc822Name. The format of an rfc822Name is an "addr-spec" as defined in RFC 822 [RFC 822]. When the subjectAltName extension contains a domain name service label, the domain name MUST be stored in the dNSName (an IA5...
@Override public void onPageStarted(WebView view,String url,Bitmap favicon){ super.onPageStarted(view,url,favicon); String newloc=""; if (url.startsWith("http:") || url.startsWith("https:") || url.startsWith("file:")) { newloc=url; } else if (url.startsWith(WebView.SCHEME_TEL)) { try { Intent i...
Notify the host application that a page has started loading.
public synchronized int readInSUTfromRemote(){ if (localBuffer.isEmpty()) { return -1; } return localBuffer.poll() & 0xFF; }
Read one byte from stream
public RoundedBitmapBuilder cornerRadius(float radius){ mCornerRadii[Corner.TOP_LEFT]=radius; mCornerRadii[Corner.TOP_RIGHT]=radius; mCornerRadii[Corner.BOTTOM_RIGHT]=radius; mCornerRadii[Corner.BOTTOM_LEFT]=radius; return this; }
Set corner radius for all corners in px.
TimeZone convertTimeZone(String timeZone){ String[] timeZoneTokens=timeZone.split(":"); int hours=0; int minutes=0; if (!timeZone.startsWith("Z") && !timeZone.startsWith("z")) { if (timeZoneTokens.length > 0) { hours=Integer.parseInt(timeZoneTokens[0]); } if (timeZoneTokens.length > 1) { ...
Converts the timeZone portion of an ISO 8601 date into a Java TimeZone object.
public static void testValidity(Object o) throws JSONException { if (o != null) { if (o instanceof Double) { if (((Double)o).isInfinite() || ((Double)o).isNaN()) { throw new JSONException("JSON does not allow non-finite numbers."); } } else if (o instanceof Float) { if (((Float)...
Throw an exception if the object is a NaN or infinite number.
private void updateText(){ if (valid) { String addressText; String nameText; if (node.hasUserDefinedName()) { addressText=String.format("Address: %s",node.getAddress()); nameText=String.format("Name: %s",node.getName()); } else { addressText=""; nameText=String.format("Address...
Updates text on the ui, except key-value fields.
private void updateNextPublishedDate(Resource resource) throws PublicationException { if (resource.usesAutoPublishing()) { try { log.debug("Updating next published date of resource: " + resource.getShortname()); Date now=new Date(); int days=resource.getUpdateFrequency().getPeriodInDays(); ...
Updates the date the resource is scheduled to be published next. The resource must have been configured with a maintenance update frequency that is suitable for auto-publishing (annually, biannually, monthly, weekly, daily), and have auto-publishing mode turned on for this update to take place.
public BasicHttpResponse(final ProtocolVersion ver,final int code,final String reason){ this(new BasicStatusLine(ver,code,reason),null,null); }
Creates a response from elements of a status line. The response will not have a reason phrase catalog and use the system default locale.
public JobExecutionResult executePipeline() throws Exception { final String jobName=options.getJobName(); if (flinkBatchEnv != null) { return flinkBatchEnv.execute(jobName); } else if (flinkStreamEnv != null) { return flinkStreamEnv.execute(jobName); } else { throw new IllegalStateException("The...
Launches the program execution.
private void removeAt(int i){ Object[] array=queue; int n=size - 1; if (n == i) array[i]=null; else { E moved=(E)array[n]; array[n]=null; Comparator<? super E> cmp=comparator; if (cmp == null) siftDownComparable(i,moved,array,n); else siftDownUsingComparator(i,moved,array,n,cmp); i...
Removes the ith element from queue.
private void checkIfIamLeader(final int seq,final ElectionContext context,boolean replacement) throws KeeperException, InterruptedException, IOException { context.checkIfIamLeaderFired(); final String holdElectionPath=context.electionPath + ELECTION_NODE; List<String> seqs=zkClient.getChildren(holdElectionPath,nu...
Check if the candidate with the given n_* sequence number is the leader. If it is, set the leaderId on the leader zk node. If it is not, start watching the candidate that is in line before this one - if it goes down, check if this candidate is the leader again.
public static void play(Context context,String clientId,SoundCloudTrack track){ Intent intent=new Intent(context,PlaybackService.class); intent.setAction(ACTION_PLAY); intent.putExtra(BUNDLE_KEY_SOUND_CLOUD_CLIENT_ID,clientId); intent.putExtra(BUNDLE_KEY_SOUND_CLOUD_TRACK,track); context.startService(intent);...
Start the playback. <p/> Play the track matching the given position in the given playlist.
public void clearUndoStack(){ m_undoStack=new ArrayList<UndoAction>(); m_nCurrentEditAction=-1; m_nSavedPointer=-1; }
remove all actions from the undo stack
private void migrateBlockConsistencyGroups(){ log.info("Migrating BlockConsistencyGroup objects."); List<URI> cgURIs=dbClient.queryByType(BlockConsistencyGroup.class,true); for ( URI cgURI : cgURIs) { BlockConsistencyGroup cg=dbClient.queryObject(BlockConsistencyGroup.class,cgURI); if (cg.getTypes() == n...
Migrates all BlockConsistencyGroups. Migrates the type and deviceName fields too types and deviceNames fields. For VPlex only BlockConsistencyGroup objects, a mapping of VPlex storage system to VPlex cluster/cg name is added.
private static final Raster decodeJPEG(byte[] data,JPEGDecodeParam decodeParam,boolean colorConvert,int minX,int minY){ ByteArrayInputStream jpegStream=new ByteArrayInputStream(data); JPEGImageDecoder decoder=decodeParam == null ? JPEGCodec.createJPEGDecoder(jpegStream) : JPEGCodec.createJPEGDecoder(jpegStream,deco...
Decode a buffer of data into a Raster with the specified location.
public void run(){ runok(); runko(); }
Finds all configuration files (*ok.properties and *ko.properties) and tests them. (see runko() and runok()).
static public Double kb2b(final String kb){ final double d=Double.parseDouble(kb); final double x=d * Bytes.kilobyte32; return x; }
Converts KB to bytes.
public LiveSet firstPEIKillSet(){ return firstPEIKillSet; }
Returns the first PEI kill set, i.e., the Kill set up to the first PEI
private static byte[] encode3to4(byte[] b4,byte[] threeBytes,int numSigBytes,int options){ encode3to4(threeBytes,0,numSigBytes,b4,0,options); return b4; }
Encodes up to the first three bytes of array <var>threeBytes</var> and returns a four-byte array in Base64 notation. The actual number of significant bytes in your array is given by <var>numSigBytes</var>. The array <var>threeBytes</var> needs only be as big as <var>numSigBytes</var>. Code can reuse a byte array by pas...
public boolean equals(java.lang.Object obj){ return obj instanceof Date && ((Date)obj).date == date; }
Compares two dates for equality. The result is true if and only if the argument is not null and is a Date object that represents the same point in time, to the millisecond, as this object. Thus, two Date objects are equal if and only if the getTime method returns the same long value for both.
private static void determineFirstDigit(StringBuilder resultString,int lgPatternFound) throws NotFoundException { for (int d=0; d < 10; d++) { if (lgPatternFound == FIRST_DIGIT_ENCODINGS[d]) { resultString.insert(0,(char)('0' + d)); return; } } throw NotFoundException.getNotFoundInstance(); }
Based on pattern of odd-even ('L' and 'G') patterns used to encoded the explicitly-encoded digits in a barcode, determines the implicitly encoded first digit and adds it to the result string.
public JSONArray(JSONTokener x) throws JSONException { this(); char c=x.nextClean(); char q; if (c == '[') { q=']'; } else if (c == '(') { q=')'; } else { throw x.syntaxError("A JSONArray text must start with '['"); } if (x.nextClean() == ']') { return; } x.back(); for (; ; ) {...
Construct a JSONArray from a JSONTokener.
public AppMap(Map m){ putAll(m); }
Constructs an empty HashMap with the specified initial capacity and load factor.
public static boolean isAcquired(long memPtr){ return isAcquired(flags(memPtr)); }
Check whether this memory chunk is pooled and acquired.
private void callDropPLSQL(String collectionName) throws OracleException { OracleCallableStatement stmt=null; String sqltext="begin\n" + " DBMS_SODA_ADMIN.DROP_COLLECTION(P_URI_NAME => ?);\n" + "end;"; try { metrics.startTiming(); stmt=(OracleCallableStatement)conn.prepareCall(sqltext); stmt.setNStrin...
Internal call to PL/SQL DDL drop.
public void remove(String name){ if (impl.formalArguments == null) { if (impl.hasFormalArgs) { throw new IllegalArgumentException("no such attribute: " + name); } return; } FormalArgument arg=impl.formalArguments.get(name); if (arg == null) { throw new IllegalArgumentException("no such att...
Remove an attribute value entirely (can't remove attribute definitions).
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case StextPackage.EVENT_RAISING_EXPRESSION__EVENT: return getEvent(); case StextPackage.EVENT_RAISING_EXPRESSION__VALUE: return getValue(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static MethodNoExceptionCoverageTestFitness createMethodTestFitness(BytecodeInstruction instruction){ if (instruction == null) throw new IllegalArgumentException("null given"); return createMethodTestFitness(instruction.getClassName(),instruction.getMethodName()); }
Convenience method calling createMethodTestFitness(class,method) with the respective class and method of the given BytecodeInstruction.
public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource,Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory){ this(tableSource,false,storageEngineFactory,DEFAULT_TABLE_SIZE); }
Creates segments using the given table buffer source and storage engine factory.
private boolean checkOtherPrimeInfo(RSAOtherPrimeInfo[] toBeChecked){ if (toBeChecked == null || toBeChecked.length != opi.length) { return false; } for (int i=0; i < opi.length; i++) { if (opi[i].getPrime().equals(toBeChecked[i].getPrime()) && opi[i].getExponent().equals(toBeChecked[i].getExponent()) && ...
Compares array passed as a parameter with reference one<br> <code>private static final RSAOtherPrimeInfo[] opi</code>
public static int numDocs(SolrIndexSearcher s,Query q,Query f) throws IOException { return (null == f) ? s.getDocSet(q).size() : s.numDocs(q,f); }
SolrIndexSearch.numDocs(Query,Query) freaks out if the filtering query is null, so we use this workarround.
public Map<String,Class<?>> memberTypes(){ return memberTypes; }
Returns member types for this annotation type (member name -> type mapping).
public Code39Reader(boolean usingCheckDigit){ this(usingCheckDigit,false); }
Creates a reader that can be configured to check the last character as a check digit. It will not decoded "extended Code 39" sequences.
public int hashCode(){ return id.hashCode(); }
Returns the hash code for this template.
@SuppressWarnings("unchecked") public static BucketWebsiteResult parseBucketWebsite(InputStream responseBody) throws ResponseParseException { try { Element root=getXmlRootElement(responseBody); BucketWebsiteResult result=new BucketWebsiteResult(); if (root.getChild("IndexDocument") != null) { result...
Unmarshall get bucket website response body to corresponding result.
public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; doc=(Document)load("staff",true); elementList=doc.getElementsByTagName("address"); nameNode=elementList.item(0); child=(CharacterData)nameNode.getFirstChild(); child.rep...
Runs the test case.
public XObject operate(XObject left,XObject right) throws javax.xml.transform.TransformerException { return new XNumber(left.num() % right.num()); }
Apply the operation to two operands, and return the result.
@Override public synchronized int hashCode(){ int hashCode=getID().hashCode() + rawOffset; if (useDaylight) { hashCode+=startYear + startMonth + startDay+ startDayOfWeek+ startTime+ startMode+ endMonth+ endDay+ endDayOfWeek+ endTime+ endMode+ dstSavings; } return hashCode; }
Returns an integer hash code for the receiver. Objects which are equal return the same value for this method.
public NotequalsOp_ createNotequalsOp_(){ NotequalsOp_Impl notequalsOp_=new NotequalsOp_Impl(); return notequalsOp_; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public List<String> badComplaintEmails(){ return Optional.ofNullable(complaint).filter(null).map(null).map(null).orElse(Collections.emptyList()); }
feedback type has 5 types, only 'not-spam' is positive <p> http://www.iana.org/assignments/marf-parameters/marf-parameters.xml#marf-parameters-2
public boolean isQuiet(){ return quiet; }
Is the logging for this mailet set to minimal?
public StringBuffer format(long number,StringBuffer toAppendTo,FieldPosition status){ return format((double)number,toAppendTo,status); }
Specialization of format. This method really calls <code>format(double, StringBuffer, FieldPosition)</code> thus the range of longs that are supported is only equal to the range that can be stored by double. This will never be a practical limitation.
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 Statement between(Object former,Object later){ statement.append(" BETWEEN "); append(former); statement.append(" AND "); append(later); return this; }
Appending the BETWEEN operator clause.
public void close() throws IOException { rafile.close(); }
Closes the underlying RRD file.
private Baustein importUserDefinedBaustein(MbBaust mbBaust,List<BausteineMassnahmenResult> list) throws CommandException { Baustein baustein=createBasicBaustein(mbBaust); baustein=createMassnForBst(list,baustein); baustein=createGefForBst(mbBaust,baustein); return baustein; }
prepares an instance of Baustein for an import of a user defined baustein from the gstool in case baustein is not userdefined, data is read from itgs-catalogue
public static byte[][] convertArray(short[][] in){ byte[][] out=new byte[in.length][in[0].length]; for (int i=0; i < in.length; i++) { for (int j=0; j < in[0].length; j++) { out[i][j]=(byte)in[i][j]; } } return out; }
This function converts a matrix of type short into a matrix of type byte
public WorkspacePoint[] newArray(int size){ return new WorkspacePoint[size]; }
Return an array of rectangles of the specified size.
public void testUnknownAttributesAttribute(){ unknownAttributesAttribute=new UnknownAttributesAttribute(); assertEquals("UnknownAttributesAttribute() did not properly set the " + "Attribute's type field!",(int)Attribute.UNKNOWN_ATTRIBUTES,(int)unknownAttributesAttribute.getAttributeType()); }
Verify the the constructed object has the correct (UNKNOWN-ATTRIBUTES) type.
public OverScroller(Context context,Interpolator interpolator,float bounceCoefficientX,float bounceCoefficientY,boolean flywheel){ this(context,interpolator,flywheel); }
Creates an OverScroller.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:34:37.195 -0500",hash_original_method="1DD335886100A2D5B4563E7A7FCB1E25",hash_generated_method="38B64ED35408E53105D19C6AADAB23EF") public void clear(){ numAuthExceptions=0; numIoExceptions=0; numParseExceptions=0; numConflictDe...
Reset all the counters to 0.