code
stringlengths
10
174k
nl
stringlengths
3
129k
public FireworkEffectMetaBuilder start(){ return new FireworkEffectMetaBuilder(); }
Returns new builder of item meta data.
public PopParams build(){ return new PopParams(this); }
Builds PopParams object with current builder arguments.
private static Entry buildFromSorted(int level,int lo,int hi,int redLevel,Iterator it,java.io.ObjectInputStream str,Object defaultVal) throws java.io.IOException, ClassNotFoundException { if (hi < lo) { return null; } int mid=(lo + hi) / 2; Entry left=null; if (lo < mid) { left=buildFromSorted(level +...
Recursive "helper method" that does the real work of the of the previous method. Identically named parameters have identical definitions. Additional parameters are documented below. It is assumed that the comparator and size fields of the TreeMap are already set prior to calling this method. (It ignores both fields....
public boolean contains(String key){ if (key == null) throw new NullPointerException("called contains(null)"); if (key.length() == 0) throw new IllegalArgumentException("invalid key"); Node p; Node x=head; do { p=x; if (safeBitTest(key,x.b)) x=x.right; else x=x.left; } while (p.b < x.b...
Does the set contain the given key?
@Override public InetSocketAddress ipRemote(){ Socket s=getSocket(); if (s != null) { return (InetSocketAddress)s.getRemoteSocketAddress(); } else { return null; } }
Returns the server port that accepted the request.
private static List<TextRange> addNextComma(PsiElement e,int cursorOffset){ PsiElement nextCommaSibling=e.getNextSibling(); if (nextCommaSibling != null) { ASTNode node=nextCommaSibling.getNode(); if (node != null) { IElementType commaType=node.getElementType(); if (commaType == PyTokenTypes.COM...
add next comma and whitespace to selection
public void startGeneralEntity(String name,XMLResourceIdentifier identifier,String encoding,Augmentations augs) throws XNIException { try { if (augs != null && Boolean.TRUE.equals(augs.getItem(Constants.ENTITY_SKIPPED))) { if (fContentHandler != null) { fContentHandler.skippedEntity(name); } ...
This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name. <p> <strong>Note:</strong> Since the document is an entity, the handler will be notified of the start of the document entity by calling the sta...
public static void sleep(long sleepTime){ try { Thread.sleep(sleepTime); } catch ( InterruptedException e) { LOG.error("Unexpectedly interrupted!"); } }
Sleep the current thread.
@Override public void pause(boolean toPause){ paused=toPause; }
Pauses the plugin.
public void addValue(int seriesNumber,int index,float value){ invalidateRangeInfo(); if (seriesNumber >= this.valueHistory.length) { throw new IllegalArgumentException("TimeSeriesDataset.addValue(): series #" + seriesNumber + "unspecified in c'tor"); } if (this.valueHistory[seriesNumber] == null) { this...
Adds a value to a series.
public boolean down(){ if (isWithinCurrentMonth(mRow + 1,mColumn)) { mRow++; return false; } nextMonth(); mRow=0; while (!isWithinCurrentMonth(mRow,mColumn)) { mRow++; } return true; }
Move down one box, potentially flipping to the next month.
final void addHalfEdges(DoubleEdgeListVertex v1,DoubleEdgeListVertex v2){ DoubleEdgeListFace face=new DoubleEdgeListFace(); DoubleEdgeListHalfEdge left=new DoubleEdgeListHalfEdge(); DoubleEdgeListHalfEdge right=new DoubleEdgeListHalfEdge(); DoubleEdgeListFace referenceDoubleEdgeListFace=this.getReferenceFace(v1...
Adds two half edges to this DCEL object given the vertices to connect. <p> This method assumes that no crossing edges will be added.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:07.357 -0500",hash_original_method="85C1BF55B1F968333EFFBCF4DBC75BE6",hash_generated_method="369026569CB74E2410F62F5387F7F141") public PrivacyHeader createPrivacyHeader(String privacyType){ if (privacyType == null) throw new Nul...
Privacy header
@Override public final SplitEvaluate copy() throws Exception { CorrelationSplitInfo s=(CorrelationSplitInfo)this.clone(); return s; }
Makes a copy of this CorrelationSplitInfo object
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; int row, col, x, y; int progress=0; double slope; double z, z2; int i, n; int[] dX={1,1,1,0,-1,-1,-1,0}; int[] dY={-1,0,1,1,1,0,-1,-1}; int[] dX2={2,2,2,2,2,1,0,-1,-2,-2,-2,-2,-2,-1,0,1}; int[] dY2={-...
Used to execute this plugin tool.
public static boolean initDebug(){ return StaticHelper.initOpenCV(false); }
Loads and initializes OpenCV library from current application package. Roughly, it's an analog of system.loadLibrary("opencv_java").
public String[] validBaudRates(){ return new String[]{"57,600 baud"}; }
Get an array of valid baud rates.
public static void registerProtocol(final String id,final Protocol protocol){ if (id == null) { throw new IllegalArgumentException("id is null"); } if (protocol == null) { throw new IllegalArgumentException("protocol is null"); } PROTOCOLS.put(id,protocol); }
Registers a new protocol with the given identifier. If a protocol with the given ID already exists it will be overridden. This ID is the same one used to retrieve the protocol from getProtocol(String).
public final void timeoutExceeded(){ uiAccessor.access(null); }
Cancel with timeout exceeded event
public static Vector padRight(Collection strings){ Vector v=new Vector(); int length=maxLength(strings); for (Iterator i=strings.iterator(); i.hasNext(); ) { String string=(String)i.next(); v.add(padRight(string,length)); } return v; }
Returns a collection of strings based on the given collection but with all strings padded on the right to the length of the longest one.
public void ignorableWhitespace(char ch[],int start,int length) throws SAXException { if (documentHandler != null) documentHandler.ignorableWhitespace(ch,start,length); }
Adapt a SAX2 ignorable whitespace event.
public int skip(int n){ mark(pos); pos+=n; return n; }
Skips the given number of bytes or all bytes till the end of the assigned input buffer length.
public static _Fields findByThriftId(int fieldId){ switch (fieldId) { case 1: return ID; case 2: return TYPE; case 3: return NAME; case 5: return FILE_SIZE; case 6: return URL; default : return null; } }
Find the _Fields constant that matches fieldId, or null if its not found.
public String generateRowLabel(CategoryDataset dataset,int row){ return dataset.getRowKey(row).toString(); }
Generates a label for the specified row.
public final Vec2D rotate(float theta){ float co=(float)Math.cos(theta); float si=(float)Math.sin(theta); float xx=co * x - si * y; y=si * x + co * y; x=xx; return this; }
Rotates the vector by the given angle around the Z axis.
@UiThread @Override public void onBindParentViewHolder(@NonNull HorizontalParentViewHolder parentViewHolder,int parentPosition,@NonNull HorizontalParent horizontalParent){ parentViewHolder.bind(horizontalParent.getParentNumber(),horizontalParent.getParentText()); }
OnBindViewHolder implementation for parent items. Any data or view modifications of the parent view should be performed here.
@Override public void eUnset(int featureID){ switch (featureID) { case N4JSPackage.THROW_STATEMENT__EXPRESSION: setExpression((Expression)null); return; } super.eUnset(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
private void skipEmployees(List<Employee> employees){ Stream<String> employeesNamesStream=employees.stream().skip(2).map(null); employeesNamesStream.forEach(null); }
This method demonstrates the skipping function
public void addPoint(Coord point,int pos){ points.put(pos,point); }
Adds a new point
public static void main(String[] args) throws CloneNotSupportedException { MyStack stack1=new MyStack(); System.out.println("Pushing the number 4, 5, and 6 to 1st stack..."); stack1.push(new Integer(4)); stack1.push(new Integer(5)); stack1.push(new Integer(6)); System.out.println("Cloning 1st stack..."); ...
Main method
public int size(){ return m_sets.size(); }
Get the number of item sets.
public Key(){ this.columns=new ArrayList<Column>(); }
Creates a new key with no information.
private static void recycleLightWeightPopup(LightWeightPopup popup){ synchronized (LightWeightPopup.class) { List<LightWeightPopup> lightPopupCache=getLightWeightPopupCache(); if (lightPopupCache.size() < MAX_CACHE_SIZE) { lightPopupCache.add(popup); } } }
Recycles the LightWeightPopup <code>popup</code>.
@Override protected MkAppTreeNode<O> createNewLeafNode(){ return new MkAppTreeNode<>(leafCapacity,true); }
Creates a new leaf node with the specified capacity.
public BaseType pointsTo(){ return pointsTo; }
Returns the type whose level of pointer indirection is one less than the current type, e.g. if the current type is int* we return int.
private void handleSubStage(EnumerationContext ctx){ if (!this.ongoingEnumerations.contains(getEnumKey(ctx))) { ctx.stage=EnumerationStages.FINISHED; handleEnumerationRequest(ctx); return; } switch (ctx.subStage) { case LISTVMS: enumerate(ctx); break; case QUERY: queryForComputeStates(ctx,ctx.virt...
Handle enumeration substages for VM data collection.
public String debugTipText(){ return "If set to true, filter may output additional info to " + "the console."; }
Returns the tip text for this property
private void broadcastStart(){ for ( MapDownloadListener listener : mapDownloadListeners) { listener.downloadStart(); } }
broadcast download start
@Override public boolean add(T linkable){ insert(_size,linkable); return true; }
Appends <tt>linkable</tt> to the end of the list.
public long calculateAllocations(){ checkThreadSafety(); long mark1=((threadAllocatedBytes() - MEASURING_COST_IN_BYTES) - allocated.get()); return mark1; }
Calculates the number of bytes allocated since the last reset().
@Override protected EClass eStaticClass(){ return UmplePackage.eINSTANCE.getAnonymous_genExpr_2_(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void endElement(String namespaceURI,String localName,String name) throws org.xml.sax.SAXException { if (m_tracer != null) super.fireEndElem(name); }
Receive notification of the end of an element. <p>The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).</p> <p>If the element name has a namespace prefix, the prefix will s...
public void visitTypeInsn(int opcode,String type){ if (mv != null) { mv.visitTypeInsn(opcode,type); } }
Visits a type instruction. A type instruction is an instruction that takes the internal name of a class as parameter.
public LongColumn(){ this(0,10,0L); }
Create a new empty LongColumn.
public void doCompile(final Rule rule){ try { setMessageText(null,false,false,null); String fileName="temp" + "/" + StrategyRule.PACKAGE.replace('.','/'); fileName=fileName + rule.getStrategy().getClassName() + ".java"; doSaveFile(fileName,this.getContent()); Vector<Object> parm=new Vector<Object>...
Method doCompile.
public Editor edit() throws IOException { return DiskLruCache.this.edit(key,sequenceNumber); }
Returns an editor for this snapshot's entry, or null if either the entry has changed since this snapshot was created or if another edit is in progress.
public void createSubUsageScenario09() throws Exception { long usageStartTime=DateTimeHandling.calculateMillis("2012-12-01 00:00:00") + DateTimeHandling.weeksToMillis(0.1); BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime); VOServiceDetails serviceDetails=serviceSetup.createPublishAndActivateMarke...
Creates the subscription test data for the usage with multiple user assignment for same and different users. Usage started before the billing period start time and terminated after the Billing Period End Time. Role definitions are changed.
public void dropActionChanged(DragSourceDragEvent dsde){ }
Called when the user has modified the drop gesture. This method is invoked when the state of the input device(s) that the user is interacting with changes. Such devices are typically the mouse buttons or keyboard modifiers that the user is interacting with.
public GF2Polynomial(int length,BigInteger bi){ int l=length; if (l < 1) { l=1; } blocks=((l - 1) >> 5) + 1; value=new int[blocks]; len=l; int i; byte[] val=bi.toByteArray(); if (val[0] == 0) { byte[] dummy=new byte[val.length - 1]; System.arraycopy(val,1,dummy,0,dummy.length); val=dum...
Creates a new GF2Polynomial by converting the given FlexiBigInt <i>bi</i> according to 1363 and using the given <i>length</i>.
@Override public void testStarted(Description description){ LoggingUtils.getEvoLogger().info("* Started: " + "ClassName: " + description.getClassName() + ", MethodName: "+ description.getMethodName()); this.start=System.nanoTime(); this.testResult=new JUnitResult(description.getClassName() + "#" + description.get...
Called when an atomic test is about to be started
@RequestMapping(value="/container/{containerId}/application/{applicationName}",method=RequestMethod.GET) @CloudUnitSecurable public void downloadFile(@PathVariable final String applicationName,@PathVariable final String containerId,@RequestParam("path") String path,@RequestParam("fileName") final String fileName,HttpSe...
Download a file from a container
private static int indexOf(CharSequence cs,CharSequence searchChar,int start){ return cs.toString().indexOf(searchChar.toString(),start); }
Used by the indexOf(CharSequence methods) as a green implementation of indexOf.
public void testPrivateMode() throws Exception { processTestBothNodesDeploy(DeploymentMode.PRIVATE); }
Test GridDeploymentMode.ISOLATED mode.
public static double angleBetweenOriented(Coordinate tip1,Coordinate tail,Coordinate tip2){ double a1=angle(tail,tip1); double a2=angle(tail,tip2); double angDel=a2 - a1; if (angDel <= -Math.PI) return angDel + PI_TIMES_2; if (angDel > Math.PI) return angDel - PI_TIMES_2; return angDel; }
Returns the oriented smallest angle between two vectors. The computed angle will be in the range (-Pi, Pi]. A positive result corresponds to a counterclockwise (CCW) rotation from v1 to v2; a negative result corresponds to a clockwise (CW) rotation; a zero result corresponds to no rotation.
public final char nextChar(CharSequence csq){ return csq.charAt(index++); }
Returns the next character at this cursor position.The cursor position is incremented by one.
private CorrelationMatrix(List<Node> variables,TetradMatrix matrix,int sampleSize,boolean inPlace){ super(variables,inPlace ? MatrixUtils.convertCovToCorr(matrix) : MatrixUtils.convertCovToCorr(matrix.copy()),sampleSize); }
Constructs a correlation matrix data set using the given information. The matrix matrix is internally converted to a correlation matrix.
public CoreContainer(SolrResourceLoader loader,ConfigSolr config){ this.loader=checkNotNull(loader); this.solrHome=loader.getInstanceDir(); this.cfg=checkNotNull(config); this.coresLocator=config.getCoresLocator(); }
Create a new CoreContainer using the given SolrResourceLoader, configuration and CoresLocator. The container's cores are not loaded.
public Builder add(String name,String value){ checkNameAndValue(name,value); return addLenient(name,value); }
Add a field with the specified value.
public static Network tagTransitLinksInNetwork(TransitSchedule transitSchedule,Network network){ log.info("Tagging pt network links"); if (transitSchedule == null) { log.info("No transit schedule given. Returning unmodified network..."); return network; } for ( TransitStopFacility stopFacitlity : trans...
Adding TransportMode.pt flags to all links referred by transit schedule
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public static CipherTextIvMac encrypt(String plaintext,SecretKeys secretKeys,String encoding) throws UnsupportedEncodingException, GeneralSecurityException { return encrypt(plaintext.getBytes(encoding),secretKeys); }
Generates a random IV and encrypts this plain text with the given key. Then attaches a hashed MAC, which is contained in the CipherTextIvMac class.
protected LeatherArmorMetaBuilder(){ this.meta=Diorite.getCore().getItemFactory().construct(LeatherArmorMeta.class); }
Construct new meta builder.
protected String checkHeap(){ if (comparator == null) { for (int i=1; i < size; i++) { final int parent=(i - 1) >>> 1; @SuppressWarnings("unchecked") Comparable<Object> po=(Comparable<Object>)queue[parent]; if (po.compareTo(queue[i]) > 0) { return "@" + parent + ": "+ queue[parent]+ " < ...
Test whether the heap is still valid. Debug method.
private ExampleSet applyOnDataIntegers(ExampleSet exampleSet) throws ProcessStoppedException { List<Attribute> nominalAttributes=new ArrayList<>(); LinkedList<Attribute> transformedAttributes=new LinkedList<>(); for ( Attribute attribute : exampleSet.getAttributes()) { if (!attribute.isNumerical()) { n...
Transforms the numerical attributes to integer values (corresponding to the internal mapping).
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case UmplePackage.METHOD_BODY___ANONYMOUS_METHOD_BODY_11: return getAnonymous_methodBody_1_1(); case UmplePackage.METHOD_BODY___CODE_1: return getCode_1(); case UmplePackage.METHOD_BODY___ANONYMOUS_METHOD_BODY_21: r...
<!-- begin-user-doc --> <!-- end-user-doc -->
private int expandChildren(Candidate candidate,S2Cell cell,int numLevels){ numLevels--; S2Cell[] childCells=new S2Cell[4]; for (int i=0; i < 4; ++i) { childCells[i]=new S2Cell(); } cell.subdivide(childCells); int numTerminals=0; for (int i=0; i < 4; ++i) { if (numLevels > 0) { if (region.may...
Populate the children of "candidate" by expanding the given number of levels from the given cell. Returns the number of children that were marked "terminal".
public boolean isCreate(){ return create; }
Gets the value of the create property.
public boolean isTooManyResults(){ return tooManyResults; }
Gets the value of the tooManyResults property.
public Trace createTrace(String name,String description) throws CouldntSaveDataException { try { return new Trace(m_module.getContent().getTraceContainer().createTrace(name,description)); } catch ( com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) { throw new CouldntSave...
Creates a new Trace and saves it to the database.
@Override protected EClass eStaticClass(){ return ExpressionsPackage.Literals.NULL_LITERAL; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void init(Controller controller){ this.controller=controller; }
Called to initialize (display) windows etc. You can use this to set up the windows, then register them with the Controller so it can manage hiding, showing, and moving them. The default version of this method simply calls this.controller=controller;
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.
private static String descriptorFromProtoArray(String[] protos,String returnType){ StringBuilder builder=new StringBuilder(); builder.append("("); for (int i=0; i < protos.length; i++) { builder.append(protos[i]); } builder.append(")"); builder.append(returnType); return builder.toString(); }
Returns the method descriptor, given the argument and return type prototype strings.
private void executeBlock(SuperBlock work){ int bc=0; int next=0; if (DEBUGSTACKMAP) { System.out.println("working on sb " + work.getIndex()); System.out.println("initial type state:"); TypeInfo.print(locals,localsTop,stack,stackTop,itsConstantPool); } for (int bci=work.getStart(); bci < work.getE...
Simulate the local variable and op stack for a super block.
private Constants(){ }
Prevents instantiation
private void add(Finalizer fin){ for (; ; ) { Finalizer prev=finHead; fin.previous(prev); if (finUpdater.compareAndSet(this,prev,fin)) break; } }
Adds runnable to the finalization queue.
static Object createObject(String factoryId,String fallbackClassName) throws ConfigurationError { return createObject(factoryId,null,fallbackClassName); }
Finds the implementation Class object in the specified order. The specified order is the following: <ol> <li>query the system property using <code>System.getProperty</code> <li>read <code>META-INF/services/<i>factoryId</i></code> file <li>use fallback classname </ol>
public boolean isBalanced(){ Object oo=get_Value(COLUMNNAME_IsBalanced); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Balanced.
public void testGetFilterNames() throws Exception { String xml=WEBAPP_TEST_HEADER + " <filter>" + " <filter-name>f1</filter-name>"+ " <filter-class>fclass1</filter-class>"+ " </filter>"+ " <filter>"+ " <filter-name>f2</filter-name>"+ " <filter-class>fclass2</filter-class>"+ " </filter>"+ " <filter>"+...
Tests whether the filter names are retrieved in the expected order.
public long updateTtl(long elapsedTime){ this.ttl-=elapsedTime; return this.ttl; }
Updates the Particle's TTL
public static float calculateWidth(float top,float bottom,float targetAspectRatio){ final float height=bottom - top; final float width=targetAspectRatio * height; return width; }
Calculates the width of a rectangle given the top and bottom edges and an aspect ratio.
private static int[] craftDemanders(int[][] costs){ int len=costs[0].length; int demanders[]=new int[len]; for (int i=0; i < costs.length; i++) { if (costs[i].length != len) { throw new IllegalArgumentException("Ragged array invalid for Assignment."); } demanders[i]=1; } return demanders; }
Figure out the demanders from the costs matrix and assign 1 for each of them.
public static int bitCount(int i){ i-=(i >> 1) & 0x55555555; i=(i & 0x33333333) + ((i >> 2) & 0x33333333); i=((i >> 4) + i) & 0x0F0F0F0F; i+=i >> 8; i+=i >> 16; return i & 0x0000003F; }
Counts the number of 1 bits in the specified integer; this is also referred to as population count.
private HashMap<Integer,String> loadSystemClients(){ s_logger.log(Level.FINE,"loadSystemClients",getDirection()); HashMap<Integer,String> systemClients=new HashMap<Integer,String>(); String sql=s_dbEngine.sqlAD_getSystemClients(getVendor(),getCatalog(),getSchema()); ResultSet rs=null; Statement stmt=null; i...
load system-level clients defined in Application Dictionary
public static String cellInfoCDMAJSON(CellInfoCdma cellInfo,boolean returnSignalStrength){ final Calendar calendar=Calendar.getInstance(); final JSONObject json=new JSONObject(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 && cellInfo != null) { try { json.put("provider",CELLINFO_PRO...
Converts CellInfoCdma into JSON
protected void processDocType() throws Exception { if (!XMLUtil.checkLiteral(this.reader,"OCTYPE")) { XMLUtil.errorExpectedInput(reader.getSystemID(),reader.getLineNr(),"<!DOCTYPE"); return; } XMLUtil.skipWhitespace(this.reader,null); String systemID=null; StringBuffer publicID=new StringBuffer(); S...
Processes a document type declaration.
protected Shape createInterior(final SegmentType segmentType,final int x,final int y,final int w,final int h){ switch (segmentType) { case FIRST: return shapeGenerator.createRoundRectangle(x + 1,y + 1,w,h - 2,CornerSize.INTERIOR,CornerStyle.ROUNDED,CornerStyle.ROUNDED,CornerStyle.SQUARE,CornerStyle.SQUARE); case MI...
Create the shape for the interior.
public static void logInfo(String message,Object... args){ message=MessageFormat.format(message,args); log(IStatus.INFO,IStatus.OK,message,null); }
Log the specified information.
public boolean othersDeletesAreVisible(int type) throws SQLException { return false; }
Indicates whether deletes made by others are visible.
public static void main(String[] args){ launch(args); }
Java main for when running without JavaFX launcher
public int[] array(){ return array(null); }
Create a new array with a copy of all the values.
public float nextFloat(){ return org.evosuite.runtime.Random.nextFloat(); }
Replacement function for nextFloat
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case UmplePackage.MULTILINE_COMMENT___MULTILINE_COMMENT_1: return getMultilineComment_1(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static OptionBuilder isRequired(){ OptionBuilder.required=true; return instance; }
The next Option created will be required.
public void writeOp(LogRecord record) throws IOException { record.writeToStream(buf); }
Write an operation to the output stream
protected BaseKDFBytesGenerator(int counterStart,Digest digest){ this.counterStart=counterStart; this.digest=digest; }
Construct a KDF Parameters generator. <p>
public static double[] minmax(List<Double> values){ if (values.size() == 0) { return new double[2]; } double min=values.get(0); double max=min; int length=values.size(); for (int i=1; i < length; i++) { double value=values.get(i); min=Math.min(min,value); max=Math.max(max,value); } retur...
Calculate the minimum and maximum values out of a list of doubles.
@Override protected void free(NativeMemoryChunk value){ Preconditions.checkNotNull(value); value.close(); }
Frees the 'value'
public void drawContour(boolean drawContour){ mDrawContour=drawContour; if (mDrawContour) { mIconPadding+=mContourWidth; } else { mIconPadding-=mContourWidth; } invalidateSelf(); }
Enable/disable contour drawing.
@Transactional public long createPreApprovedVoucherFromBillForPJV(final int billId,final List<PreApprovedVoucher> voucherdetailList,final List<PreApprovedVoucher> subLedgerList) throws ApplicationRuntimeException { String voucherStatus=null; long vh=-1; try { final List vStatusList=appConfigValuesService.getC...
API to create voucher in pre approved status