code
stringlengths
10
174k
nl
stringlengths
3
129k
public static boolean isMacOSX(){ return Utils.getOSMatches("Mac OS X"); }
Determines whether the system is a Mac os x.
public SQLEditorSourceViewerConfiguration(SQLEditorBase editor,IPreferenceStore preferenceStore){ super(preferenceStore); this.editor=editor; this.ruleManager=editor.getRuleManager(); this.completionProcessor=new SQLCompletionProcessor(editor); this.hyperlinkDetector=new SQLHyperlinkDetector(editor,editor.get...
Constructs an instance of this class with the given SQLEditor to configure.
void paste(String sXML,int mode) throws Exception { DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance(); factory.setValidating(true); Document doc=factory.newDocumentBuilder().parse(new org.xml.sax.InputSource(new StringReader(sXML))); doc.normalize(); NodeList nodelist=doc.getElementsByTagNam...
Apply paste operation with XMLBIF fragment. Depending on the paste mode, the nodes are actually added to the network or it is just tested that the nodes can be added to the network.
public String toString(){ if (size() == 0) { return "{}"; } StringBuilder buf=new StringBuilder(32 * size()); buf.append('{'); MapIterator it=mapIterator(); boolean hasNext=it.hasNext(); while (hasNext) { Object key=it.next(); Object value=it.getValue(); buf.append(key == this ? "(this Map...
Gets the map as a String.
public synchronized boolean add(E e){ modCount++; ensureCapacityHelper(elementCount + 1); elementData[elementCount++]=e; return true; }
Appends the specified element to the end of this Vector.
private TestResult parse(List<String> test,String name) throws Exception { List<String> id=new ArrayList<>(); Iterator<String> iter=test.iterator(); boolean shouldPass=true; boolean channelTest=false; while (iter.hasNext()) { String line=iter.next(); String[] args=line.split("%%"); switch (args[0]) { ...
Parses through the commands for each test, and calls handlers that execute the commands.
public final void init(Key key) throws InvalidKeyException, ExemptionMechanismException { done=false; initialized=false; keyStored=key; exmechSpi.engineInit(key); initialized=true; }
Initializes this exemption mechanism with a key. <p>If this exemption mechanism requires any algorithm parameters that cannot be derived from the given <code>key</code>, the underlying exemption mechanism implementation is supposed to generate the required parameters itself (using provider-specific default values); in ...
public void close() throws IOException { is.close(); }
Closes pcap stream handle.
@Override public void fromBytes(ByteBuf buf){ revealHiddenBlocks=buf.readBoolean(); hand=EnumHand.values()[buf.readByte()]; }
Convert from the supplied buffer into your specific message type
@CanIgnoreReturnValue public Builder<K,V> put(Range<K> range,V value){ checkNotNull(range); checkNotNull(value); checkArgument(!range.isEmpty(),"Range must not be empty, but was %s",range); if (!keyRanges.complement().encloses(range)) { for ( Entry<Range<K>,V> entry : rangeMap.asMapOfRanges().entrySet())...
Associates the specified range with the specified value.
public XBeeMessage(byte[] a,int l){ super(String.valueOf(a),l); }
This ctor interprets the byte array as a sequence of characters to send.
public boolean sendViaDataSocket(byte[] bytes,int start,int len){ if (dataOutputStream == null) { Log.i(TAG,"Can't send via null dataOutputStream"); return false; } if (len == 0) { return true; } try { dataOutputStream.write(bytes,start,len); } catch ( IOException e) { Log.i(TAG,"Could...
Sends a byte array over the already-established data socket
public int maximumMuLambdaDivisor(){ return 2; }
lambda should be no SMALLER than mu times this value. This varies between (mu,lambda) (where it's 2) and (mu + lambda) (where it's 1).
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:31.251 -0500",hash_original_method="8FB6A7484D99181743947553B04591B0",hash_generated_method="4D54DAC6709D8BC4B1289684F495D52B") public static int reverse(int i){ return i...
Reverses the order of the bits of the specified integer.
private int decodeIcs(SingleChannelElement sce,boolean commonWindow,boolean scaleFlag){ int ret; Pulse pulse=new Pulse(); TemporalNoiseShaping tns=sce.tns; IndividualChannelStream ics=sce.ics; float out[]=sce.coeffs; boolean eldSyntax=ac.oc[1].m4ac.objectType == AOT_ER_AAC_ELD; boolean erSyntax=ac.oc[1].m...
Decode an individual_channel_stream payload; reference: table 4.44.
public boolean domainMatch(String host,String domain){ boolean match=host.equals(domain) || (domain.startsWith(".") && host.endsWith(domain)); return match; }
Performs domain-match as defined by the RFC2965. <p> Host A's name domain-matches host B's if <ol> <ul>their host name strings string-compare equal; or</ul> <ul>A is a HDN string and has the form NB, where N is a non-empty name string, B has the form .B', and B' is a HDN string. (So, x.y.com domain-matches .Y.com but ...
public static int longestPrefix(final String... strings){ return longestPrefix(0,strings); }
Return the length of the longest common prefix of the supplied strings.
public void removeSimulationListener(MobsimListener listener){ if (listener instanceof MobsimInitializedListener) { removeSimulationInitializedListener((MobsimInitializedListener)listener); } if (listener instanceof MobsimBeforeSimStepListener) { removeSimulationBeforeSimStepListener((MobsimBeforeSimStepL...
Removes the SimulationListener from all ListenerLists that it supports.
public static boolean hasFunction(String name){ return s_functionTable.containsKey(name); }
Indicates if a function of the given name is included in the function table.
public static void loadLibraryFromJar(String path) throws IOException { if (!path.startsWith("/")) { throw new IllegalArgumentException("The path has to be absolute (start with '/')."); } String[] parts=path.split("/"); String filename=(parts.length > 1) ? parts[parts.length - 1] : null; String prefix="";...
Loads library from current JAR archive The file from JAR is copied into system temporary directory and then loaded. The temporary file is deleted after exiting. Method uses String as filename because the pathname is "abstract", not system-dependent.
private static void restart(){ onExit(); System.exit(0); }
Restarts the launcher (app).
public static double[] v3Combine(double[] a,double[] b,double aScale,double bScale){ return new double[]{aScale * a[0] + bScale * b[0],aScale * a[1] + bScale * b[1],aScale * a[2] + bScale * b[2]}; }
From: http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp
public static Key<CommitLogCheckpoint> createKey(DateTime checkpointTime){ return Key.create(CommitLogCheckpointRoot.getKey(),CommitLogCheckpoint.class,checkpointTime.getMillis()); }
Creates a key for the CommitLogCheckpoint for the given wall time.
private NullValue(){ super(ObjectReference.nullReference()); }
Construct an initially null object value
public synchronized BasicNetwork clone(){ BasicNetwork clone=(BasicNetwork)super.clone(); clone.setVerticies(new HashSet<Vertex>(getVerticies())); clone.setVerticiesById(new HashMap<Number,Vertex>(getVerticiesById())); clone.setVerticiesByData(new HashMap<Object,Vertex>(getVerticiesByData())); return clone; }...
Return a thread safe copy of the network.
public boolean isCancel(){ return m_cancel; }
Cancel button pressed
public GraphNode(String name){ setName(name); }
Constructs a new Tetrad node with the given (non-null) string.
@Override protected void keyTyped(char par1,int par2){ proxyBox.textboxKeyTyped(par1,par2); if (par2 == 28 || par2 == 156) actionPerformed((GuiButton)buttonList.get(1)); }
Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).
private void updateSyncState(){ boolean isSyncEnabled=AndroidSyncSettings.isSyncEnabled(getActivity()); mSyncSwitchPreference.setChecked(isSyncEnabled); mSyncSwitchPreference.setEnabled(canDisableSync()); updateSyncStateFromSwitch(); }
Update the state of all settings from sync. This sets the state of the sync switch from external sync state and then calls updateSyncStateFromSwitch, which uses that as its source of truth.
void removeMarkOccurrencesHighlight(Object tag){ removeListHighlight(markedOccurrences,tag); }
Removes a "marked occurrences" highlight from the view.
public Regression(Class<?> theClass){ if (theClass == null) { throw new NullPointerException(); } String relative=theClass.getName().replace('.',File.separatorChar) + FILE_EXTENSION; m_RefFile=new File(getRoot(),relative); m_Output=new StringBuffer(); }
Creates a new <code>Regression</code> instance for the supplied class.
public boolean shouldBeConflated(){ return this.conflate; }
Returns whether the object should be conflated
public static String toString(URI uri,String encoding) throws IOException { return toString(uri,Charsets.toCharset(encoding)); }
Gets the contents at the given URI.
protected ExecutionError(@Nullable String message){ super(message); }
Creates a new instance with the given detail message.
public RequestBuilder withTimeout(int timeout){ Preconditions.checkArgument(NumUtil.isIntBetween(timeout,Common.MIN_COMMAND_TIMEOUT_SEC,Common.MAX_COMMAND_TIMEOUT_SEC),String.format("Timeout is not in range %d to %d",Common.MIN_COMMAND_TIMEOUT_SEC,Common.MAX_COMMAND_TIMEOUT_SEC)); this.timeout=timeout; return thi...
Sets command timeout
public boolean matchesExactly(Collection<Issue> issues,List<String> messages){ Collection<Issue> issueCopy=new LinkedList<>(issues); Collection<IssueMatcher> matcherCopy=new LinkedList<>(issueMatchers); performMatching(issueCopy,matcherCopy,messages); if (inverted) { if (issueCopy.isEmpty() && matcherCopy.i...
Matches the expectations in the added issues matchers against the given issues.
private void filter(int i,SentenceFilteredTrie trieNode,boolean lastWasNT){ if (i >= tokens.length) return; Trie unfilteredTrieNode=trieNode.unfilteredTrieNode; if (unfilteredTrieNode.getChildren() == null) { return; } Trie trie=unfilteredTrieNode.match(tokens[i]); if (trie != null) { SentenceFilt...
Matches rules against the sentence. Intelligently handles chains of sequential nonterminals. Marks arcs that are traversable for this sentence.
protected void respond(ClaimBuilder cb){ cb.put(KEY_TYPE,getType()); }
Exports the response state, as preparation for triggering the challenge.
public static QuarkMaterializeCluster create(RelOptPlannerHolder plannerHolder,RexBuilder rexBuilder){ return new QuarkMaterializeCluster(plannerHolder,rexBuilder.getTypeFactory(),rexBuilder,new AtomicInteger(0),new HashMap<String,RelNode>()); }
Creates a cluster.
public RSSEnclosure(String url,String type,String length){ this.setUrl(url); this.setType(type); this.setLength(length); }
Creates a new instance of RSSEnclosure
public void startElement(StylesheetHandler handler,String uri,String localName,String rawName,Attributes attributes) throws org.xml.sax.SAXException { try { ElemTemplateElement p=handler.getElemTemplateElement(); boolean excludeXSLDecl=false; boolean isLREAsStyleSheet=false; if (null == p) { XSL...
Receive notification of the start of an element.
public static byte parseByte(CharSequence csq){ return parseByte(csq,10); }
Parses the whole specified character sequence as a signed decimal <code>byte</code>.
public final void checkAssert(final QuadConsumer<A,B,C,D> property){ check(null); }
Checks a property across a random sample of possible values where falsification is indicated by an unchecked exception such as an assertion
@Override public String toString(){ return String.valueOf(value); }
Returns a string containing a concise, human-readable description of this boolean.
public Vector3d mulTranspose(Matrix3dc mat){ return mul(mat,this); }
Multiply the transpose of the given matrix with this Vector3f and store the result in <code>this</code>.
public PersonalityInsights(final String versionDate,String username,String password){ this(versionDate); setUsernameAndPassword(username,password); }
Instantiates a new personality insights service by username and password.
public ArrayLongCompressed(long[] longs,int offset,int length){ long mask=0x0; for (int i=0; i < length; i++) { mask|=longs[offset + i]; } int leadingClearBits=0; int trailingClearBits=0; while (((mask & (1 << (BIT_LENGTH - leadingClearBits - 1))) == 0) && (leadingClearBits < BIT_LENGTH)) { leadingC...
Create <code>LongArrayCompressed</code> from longs representing the data to be stored in compressed form (from offset to offset+length).
private int findProductRow(int M_Product_ID){ DefaultTableModel model=(DefaultTableModel)dialog.getMiniTable().getModel(); KeyNamePair kp; for (int i=0; i < model.getRowCount(); i++) { kp=(KeyNamePair)model.getValueAt(i,4); if (kp.getKey() == M_Product_ID) { return (i); } } return (-1); }
Finds the row where a given product is. If the product is not found in the table -1 is returned.
public static void UF10(double[] x,double[] f,int nx){ int count1=0; int count2=0; int count3=0; double sum1=0.0; double sum2=0.0; double sum3=0.0; double yj; double hj; for (int j=3; j <= nx; j++) { yj=x[j - 1] - 2.0 * x[1] * Math.sin(2.0 * PI * x[0] + j * PI / nx); hj=4.0 * yj * yj - Math.co...
Evaluates the UF10 problem.
@Override public void introspect(ContextH3 context){ if (_infoRef.get() != null) { return; } FieldInfoH3[] fieldInfo=new FieldInfoH3[1]; fieldInfo[0]=new FieldInfoH3("ordinal"); ClassInfoH3 classInfo=new ClassInfoH3(_type.getName(),ClassTypeH3.ENUM,fieldInfo,_sequence); _infoRef.compareAndSet(null,class...
Introspect the class.
private static boolean overflowInParse(long current,int digit,int radix){ if (current >= 0) { if (current < maxValueDivs[radix]) { return false; } if (current > maxValueDivs[radix]) { return true; } return (digit > maxValueMods[radix]); } return true; }
Returns true if (current * radix) + digit is a number too large to be represented by an unsigned long. This is useful for detecting overflow while parsing a string representation of a number. Does not verify whether supplied radix is valid, passing an invalid radix will give undefined results or an ArrayIndexOutOfBoun...
public int maxReceiver(){ List<Element> kids=root.getChildren("receiver"); int max=-1; for (int i=0; i < kids.size(); i++) { Attribute a=kids.get(i).getAttribute("number"); if (a == null) { continue; } int n=-1; try { n=a.getIntValue(); } catch ( org.jdom2.DataConversionExc...
FInd the highest numbered receiver in the file
public void addChild(FXGNode child){ if (content == null) { if (child instanceof CDATANode && TextHelper.ignorableWhitespace(((CDATANode)child).content)) { return; } } else { super.addChild(child); } }
Check child node to ensure that exception isn't thrown for ignorable white spaces.
public BufferedDocumentScanner(int size){ Assert.isTrue(size >= 1); fBuffer=new char[size]; }
Creates a new buffered document scanner. The buffer size is set to the given number of characters.
private static void createParents(File file){ FileMisc.mkdirs(file.getParentFile()); }
Creates all parent files for the given file.
public NotificationChain basicSetCatchVariable(CatchVariable newCatchVariable,NotificationChain msgs){ CatchVariable oldCatchVariable=catchVariable; catchVariable=newCatchVariable; if (eNotificationRequired()) { ENotificationImpl notification=new ENotificationImpl(this,Notification.SET,N4JSPackage.CATCH_BLOCK...
<!-- begin-user-doc --> <!-- end-user-doc -->
public void importLegacySettings(){ }
For compatibility with old code style settings stored in CodeStyleSettings.
public EmbeddedJMSResource(){ this(false); }
Create a default EmbeddedJMSResource
public void update(final long item,final long count){ if (count == 0) return; if (count < 0) { throw new SketchesArgumentException("Count may not be negative"); } this.streamLength+=count; hashMap.adjustOrPutValue(item,count); if (getNumActiveItems() > curMapCap) { if (hashMap.getLgLength() < lgMa...
Update this sketch with a item and a positive frequency count.
public long numCqsCreated(){ return this.cqService.getCqServiceVsdStats().getNumCqsCreated(); }
Returns number of CQs created.
public DdlException(){ super(); }
Creates a new empty exception object.
public ArrayIndexOutOfBoundsException(int sourceLength,int index){ super("length=" + sourceLength + "; index="+ index); }
Used internally for consistent high-quality error reporting.
public StackScroller(Context context){ mFlywheel=true; mScrollerX=new SplineStackScroller(context); mScrollerY=new SplineStackScroller(context); initContants(); }
Creates an StackScroller with a viscous fluid scroll interpolator and flywheel.
public void requestUpdateFromLayout(){ }
Request an update on status. <P> Since status is continually being updated, this isn't active now. Eventually, we may want to have this move the related AIU to the top of the polling queue.
public FileEntry(BaseEntry sourceEntry){ super(sourceEntry); }
Constructs a new entry by doing a shallow copy from another BaseEntry instance.
public boolean isResetValues(){ Boolean result=(Boolean)eval(RESET_VALUES,resetValues); return ((result != null) ? result : false); }
<p class="changed_added_2_2"> Return the resetValues status of this behavior.</p>
@Override protected void verifyMatch(Object target,Object deserialized){ CronTriggerImpl targetCronTrigger=(CronTriggerImpl)target; CronTriggerImpl deserializedCronTrigger=(CronTriggerImpl)deserialized; assertNotNull(deserializedCronTrigger); assertEquals(targetCronTrigger.getName(),deserializedCronTrigger.getN...
Verify that the target object and the object we just deserialized match.
private void tokenize(InputSource is) throws SAXException, IOException, MalformedURLException { if (is == null) { throw new IllegalArgumentException("Null input."); } if (is.getByteStream() == null && is.getCharacterStream() == null) { String systemId=is.getSystemId(); if (systemId == null) { th...
Tokenizes the input source.
@Override public void processingInstruction(String target,String data) throws SAXException { writeText4Links(); write("<?"); write(target); write(' '); write(data); write("?>"); if (elementLevel < 1) { write('\n'); } super.processingInstruction(target,data); }
Write a processing instruction. <p> Pass the event on down the filter chain for further processing.
public double kineticEnergy(){ return 0.5 * mass * (vx * vx + vy * vy); }
Returns the kinetic energy of this particle. The kinetic energy is given by the formula 1/2 <em>m</em> <em>v</em><sup>2</sup>, where <em>m</em> is the mass of this particle and <em>v</em> is its velocity.
public void close() throws IOException { _stream.close(); }
Closes the stream.
public Class toClass(ClassLoader loader,ProtectionDomain domain) throws CannotCompileException { ClassPool cp=getClassPool(); if (loader == null) loader=cp.getClassLoader(); return cp.toClass(this,loader,domain); }
Converts this class to a <code>java.lang.Class</code> object. Once this method is called, further modifications are not allowed any more. <p>The class file represented by this <code>CtClass</code> is loaded by the given class loader to construct a <code>java.lang.Class</code> object. Since a private method on the clas...
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
public RangeCategorySeries(String title){ super(title); }
Builds a new category series.
public Clustering<DendrogramModel> extractClusters(DBIDs ids,final DBIDDataStore pi,final DoubleDataStore lambda){ FiniteProgress progress=LOG.isVerbose() ? new FiniteProgress("Extracting clusters",ids.size(),LOG) : null; ArrayDBIDs order=PointerHierarchyRepresentationResult.topologicalSort(ids,pi,lambda); DBIDAr...
Extract all clusters from the pi-lambda-representation.
private static void decodeAnsiX12Segment(BitSource bits,StringBuilder result) throws FormatException { int[] cValues=new int[3]; do { if (bits.available() == 8) { return; } int firstByte=bits.readBits(8); if (firstByte == 254) { return; } parseTwoBytes(firstByte,bits.readBits(8),...
See ISO 16022:2006, 5.2.7
public Collection<LocalCandidate> harvest(Component component){ if (getMask() == null || getFace() == null) return null; Collection<LocalCandidate> candidates=new HashSet<>(); for ( Candidate<?> cand : component.getLocalCandidates()) { if (!(cand instanceof HostCandidate) || !cand.getTransportAddress().get...
Maps all candidates to this harvester's mask and adds them to <tt>component</tt>.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-02-25 10:38:05.434 -0500",hash_original_method="11AFF6C7676FEB0968CBC8B8BF9C6A52",hash_generated_method="506047B26931C7FFF38435DA1DD16290") @DSVerified @DSSpec(DSCat.IO) @DSSink({DSSinkKind.NETWORK}) public synchronized void write(byte buffer[]...
Writes a byte array to the stream. <p>
private void parseAdtsHeader(){ adtsScratch.setPosition(0); if (!hasOutputFormat) { int audioObjectType=adtsScratch.readBits(2) + 1; if (audioObjectType != 2) { Log.w(TAG,"Detected audio object type: " + audioObjectType + ", but assuming AAC LC."); audioObjectType=2; } int sampleRateInde...
Parses the sample header.
public String toStringHeader(){ return new ResultMatrixPlainText(this).toStringHeader(); }
returns the header of the matrix as a string.
public ElasticSearchTransportClient(Client client,ElasticSearchEventSerializer serializer){ this.client=client; this.serializer=serializer; }
Used for testing
public void updateTime(int columnIndex,java.sql.Time x) throws SQLException { checkState(); checkTypeConcurrency(); rs.updateTime(columnIndex,x); }
Updates the designated column with a <code>java.sql.Time</code> value. The <code>updateXXX</code> methods are used to update column values in the current row or the insert row. The <code>updateXXX</code> methods do not update the underlying database; instead the <code>updateRow</code> or <code>insertRow</code> methods...
public Drawable loadIcon(PackageManager pm){ return mService.loadIcon(pm); }
Load the user-displayed icon for this spell checker.
private void execute(TriggerProcess triggerProcess) throws SaaSApplicationException { SaaSSystemException se; switch (triggerProcess.getTriggerDefinition().getType()) { case REGISTER_CUSTOMER_FOR_SUPPLIER: accLocal.registerKnownCustomerInt(triggerProcess); break; case SAVE_PAYMENT_CONFIGURATION: accLocal.savePa...
Executes the business logic for the given trigger process.
@Override public int hashCode(){ if (wifiP2pDevice == null) { return 0; } return wifiP2pDevice.hashCode(); }
Return a hash code unique-ish to this object.
protected static void remoteDestroy(String regionName,String entryName) throws CacheException { Region root=getRootRegion(); Region region=root.getSubregion(regionName); Region sub=region.getSubregion(entryName); if (sub == null) { String s="Entry \"" + entryName + "\" does not exist"; throw new EntryNo...
Destroys the value of an entry in a region in a remote VM
protected static void overrideDefaultProperties(@NotNull String localConfDir){ Path confDirPath=Paths.get(localConfDir); if (exists(confDirPath)) { try (DirectoryStream<Path> stream=newDirectoryStream(confDirPath)){ for ( Path entry : stream) { if (!Files.isDirectory(entry)) { if (e...
Override default properties from jar with values from CHE_LOCAL_CONF_DIR directory
public boolean isSaveStreams(){ return saveStreams; }
Whether stdin, stdout, stderr streams are saved.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public static <I,A>Parser<I,A> label(Parser<I,A> p,String name){ return null; }
Label a parser with a readable name for more meaningful error messages.
public FirstFitLocalCombiningAllocator(SsaMethod ssaMeth,InterferenceGraph interference,boolean minimizeRegisters){ super(ssaMeth,interference); ssaRegsMapped=new BitSet(ssaMeth.getRegCount()); mapper=new InterferenceRegisterMapper(interference,ssaMeth.getRegCount()); this.minimizeRegisters=minimizeRegisters; ...
Constructs instance.
public ResultSetImpl(long updateCount,long updateID,MySQLConnection conn,StatementImpl creatorStmt){ this.updateCount=updateCount; this.updateId=updateID; this.reallyResult=false; this.fields=new Field[0]; this.connection=conn; this.owningStatement=creatorStmt; this.retainOwningStatement=false; if (this...
Create a result set for an executeUpdate statement.
@Override public final boolean printingEnabled(OptOptions options,boolean before){ return false; }
Should the IR be printed either before or after performing this phase?
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; int col; int row; int numCols; int numRows; int a; int i; float progress=0; int range; boolean blnTextOutput=false; double z; if (args.length <= 0) { showFeedback("Plugin parameters have not b...
Used to execute this plugin tool.
public void putValue(String name,Object value){ if (name == null || value == null) { throw new IllegalArgumentException("name == null || value == null"); } Object old=values.put(name,value); if (value instanceof SSLSessionBindingListener) { ((SSLSessionBindingListener)value).valueBound(new SSLSessionBin...
A link (name) with the specified value object of the SSL session's application layer data is created or replaced. If the new (or existing) value object implements the <code>SSLSessionBindingListener</code> interface, that object will be notified in due course.
private void init(){ mShadowColor=Color.BLACK; shadowColor=ColorUtils.getNewColorAlpha(mShadowColor,MIN_SHADOW_ALPHA); elevation=DEFAULT_ELEVATION; mShadowAlpha=(MAX_SHADOW_ALPHA - MIN_SHADOW_ALPHA) * (elevation / MAX_ELEVATION) + MAX_SHADOW_ALPHA; mShadowRadius=(maxShadowSize - minShawdowSize) * (elevation /...
Initialize and do the first drawing.
private void ensureSize(int minsize){ if (minsize <= store.length) { return; } int asize=store.length; while (asize < minsize) { asize=(asize >>> 1) + asize; } final int[] prev=store; store=new int[asize]; System.arraycopy(prev,0,store,0,size); }
Resize as desired.
public static boolean pendingAddSelected(final ISelection selection){ final AdaptedSelectionInfo selectionInfo=ActionHelpers.adaptSelectionToStandardResources(selection,ResourceFilters.LINKED_RESOURCES_FILTER,false); if (selectionInfo == null || selectionInfo.getRepositories() == null || selectionInfo.getRepositori...
Test whether the selection is pending add
public void testConvertEscape() throws Exception { assertEquals(this.conn.nativeSQL("{fn convert(abcd, SQL_INTEGER)}"),this.conn.nativeSQL("{fn convert(abcd, INTEGER)}")); }
JDBC-4.0 spec will allow either SQL_ or not for type in {fn convert ...}
public void rollLeft(){ if (DEBUG) { Debug.output("Rolling left"); } doRotateZ(getRollLeftAmount()); }
Rotating position on the z axis, negative.