code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public void close(){
db.close();
}
| Close the connection to the database. |
public Caption(String caption,Font font,Color c,float alpha,Position position,int insets){
this.caption=caption;
this.font=font;
this.c=c;
this.alpha=alpha;
this.position=position;
this.insets=insets;
}
| Instantiates a filter which adds a text caption to an image. |
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case UmplePackage.ANONYMOUS_ACTION_1__CODE_LANG_1:
return getCodeLang_1();
case UmplePackage.ANONYMOUS_ACTION_1__CODE_LANGS_1:
return getCodeLangs_1();
}
return super.eGet(featureID,resolve,coreType);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
private void addSynapseGroupRecurrent(SynapseGroup sg){
SynapseGroupNodeRecurrent synGNR=SynapseGroupNodeRecurrent.createRecurrentSynapseGN(this,sg);
objectNodeMap.put(sg,synGNR);
canvas.getLayer().addChild(synGNR);
NeuronGroupNode srcNode=(NeuronGroupNode)objectNodeMap.get(sg.getSourceNeuronGroup());
if (src... | Add a recurrent synapse group representation to the canvas |
@Override public String toString(){
return "RefQueueWorker::" + this.workerThread;
}
| Obtains a description of this worker. |
public byte returnByte(byte in){
oneByte[0]=in;
cipher.processBlock(oneByte,0,oneByte,0);
return oneByte[0];
}
| encrypt/decrypt a single byte returning the result. |
public void applyChanges(PhysicalPlan.PlanContext physicalPlanContext){
physicalPlan.deployChanges();
}
| Deploy plan changes to execution layer.. |
private void createOrUpdateSLOBasedAutoTierPolicy(StorageSystem storageSystem,AutoTieringPolicy policy,String sloID,String sloName,String slo,String workload,String avgResponseTime){
boolean newPolicy=false;
if (null == policy) {
newPolicy=true;
policy=new AutoTieringPolicy();
policy.setId(URIUtil.creat... | Create or update an AutoTieringPolicy object with the passed parameters. Updates 'newSLOList' and 'updateSLOList' |
private CompletableFuture<CopycatServer> start(Supplier<CompletableFuture<Void>> joiner){
if (started) return CompletableFuture.completedFuture(this);
if (openFuture == null) {
synchronized (this) {
if (openFuture == null) {
Function<Void,CompletionStage<CopycatServer>> completionFunction=null;
... | Starts the server. |
public synchronized boolean createEvidence(final byte[] additionalData){
return createEvidence(additionalData,typeEvidenceId);
}
| Crea un'evidenza con tipo standard. |
public boolean contains(int index){
return index >= getFirst() && index <= getLast();
}
| Tests whether item is contained by range |
public IVector2D(int c1,int c2){
defaultCapacity2=Math.max(defaultDefaultCapacity2,c2);
vector=new int[Math.max(defaultCapacity1,c1)][defaultCapacity2];
sizes=new IVector(c1);
}
| Constructs a new vector with the specified capacities. |
public GlassFish2xAsAdmin(String home){
super();
if (home == null) {
throw new CargoException("GlassFish home directory is not set");
}
this.home=home;
}
| Saves the GlassFish home directory and the timeout. |
@Override public void close(){
if (!this.closed) {
this.closed=true;
for ( TXRegionState r : this.regions.values()) {
r.close();
}
}
}
| Note that cleanup does more than is needed in this method. This method only needs to do stuff that is required when a Cache close is done and we have txs that are still in progress. Currently the only thing that is needed is to decrement off-heap refcounts since off-heap memory lives after a cache close. |
public Set<Object> keySet(){
return map.keySet();
}
| Returns a Set view of the attribute names (keys) contained in this Map. |
public boolean exists(String blockName){
if (findStartIndex(blockName) == -1) {
return false;
}
if (findEndIndex(blockName) == -1) {
return false;
}
return true;
}
| Checks to see if a block exists...returns true or false |
public void drawRangeLine(Graphics2D g2,CategoryPlot plot,ValueAxis axis,Rectangle2D dataArea,double value,Paint paint,Stroke stroke){
Range range=axis.getRange();
if (!range.contains(value)) {
return;
}
PlotOrientation orientation=plot.getOrientation();
Line2D line=null;
double v=axis.valueToJava2D(val... | Draws a line perpendicular to the range axis. |
@Override protected void initViews(Bundle savedInstanceState){
this.coordinatorRV=this.findView(R.id.coordinator_rv);
}
| Initialize the view in the layout |
public static void resumeTrack(TrackRecordingServiceConnection trackRecordingServiceConnection){
try {
ITrackRecordingService service=trackRecordingServiceConnection.getServiceIfBound();
if (service != null) {
service.resumeCurrentTrack();
}
}
catch ( RemoteException e) {
Log.e(TAG,"Unable t... | Resumes the recording track. |
public boolean isNone(){
return NONE.equals(gender);
}
| Determines if the gender is "none" or not. A group, organization, or location may have this gender property. |
public double eccentricity(){
return Math.sqrt(1 - (semiMinorAxis() * semiMinorAxis()) / (semiMajorAxis() * semiMajorAxis()));
}
| Gets the eccentricity of the ellipse, between 0 (inclusive) and 1 (exclusive) |
public static void clearInstances(){
instances.clear();
}
| This method is used to clear internal caches for the sake of releasing memory. |
private void postA11yHintRunnable(String hint){
cancelA11yHint();
mPendingHint=hint;
mSpeechController.addUtteranceCompleteAction(mSpeechController.peekNextUtteranceId(),mA11yHintRunnable);
}
| Starts the hint timeout. Call this for every event that triggers a hint. |
public StopNetworkAction(final NetworkPanel networkPanel){
if (networkPanel == null) {
throw new IllegalArgumentException("networkPanel must not be null");
}
this.networkPanel=networkPanel;
putValue(SMALL_ICON,ResourceManager.getImageIcon("Stop.png"));
putValue(SHORT_DESCRIPTION,"Stop iterating the networ... | Create a new stop network action with the specified network panel. |
@Override public void run(){
amIActive=true;
if (args.length < 2) {
showFeedback("Plugin parameters have not been set properly.");
return;
}
String inputHeader=args[0];
String outputHeader=args[1];
if ((inputHeader == null) || (outputHeader == null)) {
showFeedback("One or more of the input para... | Used to execute this plugin tool. |
private static void runAscendingTest(final int wordLength,final int bytePadding,final int wordCount){
final long wordMask;
if (wordLength == 64) {
wordMask=~0L;
}
else {
wordMask=(1L << wordLength) - 1L;
}
final BigEndianAscendingWordSerializer serializer=new BigEndianAscendingWordSerializer(wordLeng... | Runs a test which serializes and deserializes ascending (from zero) word values. |
public static Stream<Base> streamReferent(JCas jCas,Map<ReferenceTarget,?> referentMap){
return JCasUtil.select(jCas,Base.class).stream().filter(null);
}
| Stream all annotations which have a referent. |
public GuacamoleUnsupportedException(String message){
super(message);
}
| Creates a new GuacamoleUnsupportedException with the given message. |
protected boolean checkArgs(String[] args){
landscapePath=null;
layerName=null;
filePath=null;
missing=null;
tileSize=0;
layerType=null;
margin=null;
globe=defaultGlobe;
color=Color.white;
elevAttrName=null;
for (int i=0; i < args.length; ++i) {
if (args[i].startsWith("-landscape=")) {
l... | Perform the pyramid build if all required arguments are present. |
public synchronized void moveToEnd(Rsrc rsrc){
if (tail == rsrc) return;
if (rsrc.getPrev() != null) rsrc.getPrev().setNext(rsrc.getNext());
if (rsrc.getNext() != null) rsrc.getNext().setPrev(rsrc.getPrev());
if (head == rsrc) head=rsrc.getNext();
if (tail == rsrc) tail=rsrc.getPrev();
rsrc.setNex... | Moved rsrc to end of linked-list. |
public h6(Element element){
addElement(element);
}
| Use the set* methods to set the values of the attributes. |
private void connectDBSchema(){
s_logger.log(Level.FINE,"connectDBSchema",new Object[]{getSchema(),getDirection()});
Statement stmt=setStatement();
int step=0;
String sql=s_dbEngine.sqlAdmin_connectSchema(step,getVendor(),getCatalog(),getSchema());
while (sql != null) {
executeUpdate(stmt,sql,false,true);... | connect to the schema |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:50.413 -0400",hash_original_method="20EC3E86A407C3B8FA8EE95F9E9C09C0",hash_generated_method="3338CD5330875F583AAAA6E85E3FE299") public static void writeSwappedDouble(byte[] data,int offset,double value){
writeSwappedLong(data,offs... | Writes a "double" value to a byte array at a given offset. The value is converted to the opposed endian system while writing. |
protected void notifyDataInvalidatedEvent(){
if (datasetObservers != null) {
for ( DataSetObserver observer : datasetObservers) {
observer.onInvalidated();
}
}
}
| Notifies observers about invalidating data |
public static boolean isMarkovMatrix(double[][] m){
return isElementsPositive(m) && isEachColumnSum1(m);
}
| isMarkovMatrix returns true if matrix is a positive Markov matrix |
public void push(NavigationStack stack){
dispatcher.dispatch(add(History.NAV_TYPE_PUSH,stack));
}
| Push navigation stack on top of the current one |
public boolean distributedExperimentSelected(){
return m_enableDistributedExperiment.isSelected();
}
| Returns true if the distribute experiment checkbox is selected |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:06.664 -0500",hash_original_method="9B65437FA923D12CE9D4363AF11C8369",hash_generated_method="36C0011C3F6F96837C4E739DA193138A") protected String encodeBody(){
StringBuffer encoding=new StringBuffer();
if (uri != null) {
enco... | Return value encoding in canonical form. |
void reportStatus(IgniteLogger log){
assert log != null;
log=log.getLogger(getClass());
String latestVer=this.latestVer;
String downloadUrl=this.downloadUrl;
downloadUrl=downloadUrl != null ? downloadUrl : IgniteKernal.SITE;
if (latestVer != null) if (latestVer.equals(ver)) {
if (!reportOnlyNew) t... | Logs out latest version notification if such was received and available. |
public boolean isClose(){
return (this == REGION_CLOSE) || (this == CACHE_CLOSE) || (this == CACHE_RECONNECT)|| (this == FORCED_DISCONNECT);
}
| Returns true if the operation closed the cache or a region. |
public void applyConfiguration(final ConfigSettings config){
clear();
Iterator<ArchiveDescription> aIt=config.archiveIterator();
while (aIt.hasNext()) {
addArchive(aIt.next());
}
}
| Adds the ArchiveDescriptions contained in the configuration. |
public static float max(final float... array){
validateArray(array);
float max=array[0];
for (int j=1; j < array.length; j++) {
if (Float.isNaN(array[j])) {
return Float.NaN;
}
if (array[j] > max) {
max=array[j];
}
}
return max;
}
| <p>Returns the maximum value in an array.</p> |
public void playTogether(Collection<Animator> items){
if (items != null && items.size() > 0) {
mNeedsSort=true;
Builder builder=null;
for ( Animator anim : items) {
if (builder == null) {
builder=play(anim);
}
else {
builder.with(anim);
}
}
}
}
| Sets up this AnimatorSet to play all of the supplied animations at the same time. |
public DistributedLogNamespaceBuilder featureProvider(FeatureProvider featureProvider){
this._featureProvider=featureProvider;
return this;
}
| Feature provider used to control the availabilities of features in the namespace. |
public static void downloadImageToFileSystem(String url,String fileName,SuccessCallback<Image> onSuccess){
downloadImageToFileSystem(url,fileName,onSuccess,new CallbackAdapter<Image>());
}
| Downloads an image to the file system asynchronously. If the image is already downloaded it will just load it directly from the file system. |
public Object runSafely(Catbert.FastStack stack) throws Exception {
String s=getString(stack);
stack.getUIMgrSafe().addIRCodeForUE(getLong(stack),UserEvent.getEvtCodeForName(s));
return null;
}
| Links an infrared code to a SageTV Command. The specified SageTV Command will then be executed whenever the specified IRCode is received. |
protected void calcYValueSum(List<? extends DataSet<?>> dataSets){
mYValueSum=0;
if (dataSets == null) return;
for (int i=0; i < dataSets.size(); i++) {
mYValueSum+=Math.abs(dataSets.get(i).getYValueSum());
}
}
| calculates the sum of all y-values in all datasets |
public static Bitmap loadBitmap(String fileName,int scale) throws ImageLoadException {
return loadBitmap(new FileSource(fileName),scale);
}
| Loading bitmap with scaling |
public boolean canEditTopicName(){
if (getChange().getStatus().isOpen()) {
return isOwner() || getRefControl().isOwner() || getProjectControl().isOwner()|| getUser().getCapabilities().canAdministrateServer()|| getRefControl().canEditTopicName();
}
return getRefControl().canForceEditTopicName();
}
| Can this user edit the topic name? |
private void showFeedback(String message){
if (myHost != null) {
myHost.showFeedback(message);
}
else {
System.out.println(message);
}
}
| Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface. |
public ServiceNotPublishedException(Object[] params){
super(params);
}
| Constructs a new exception with the specified message parameters. |
@Override public void deallocatePesForAllContainerVms(){
super.deallocatePesForAllContainerVms();
getMipsMapRequested().clear();
setPesInUse(0);
}
| Releases PEs allocated to all the VMs. |
private MoreVersionsAppViewItem createMore(ViewItem item){
MoreVersionsAppViewItem moreVersionsItem=new MoreVersionsAppViewItem(numColumns);
moreVersionsItem.id=item.id.longValue();
moreVersionsItem.storeName=item.store.name;
moreVersionsItem.storeAvatar=item.store.avatar;
moreVersionsItem.storeId=item.store.... | Given a Json POJO, creates a MoreVersionsAppViewItem displayable in order to populate the moreVersions recyclerView |
@Override public void updateDrawState(TextPaint ds){
super.updateDrawState(ds);
ds.setUnderlineText(link.isUnderlined());
ds.setFakeBoldText(link.isBold());
ds.setColor(textColor);
ds.bgColor=touched ? adjustAlpha(textColor,link.getHighlightAlpha()) : Color.TRANSPARENT;
if (link.getTypeface() != null) ds.... | Draw the links background and set whether or not we want it to be underlined or bold |
protected <T extends AbstractOptionValue<?,?>>AbstractOptions(Function<T,T> valueFilter,Iterable<T> values){
requireNonNull(valueFilter,"valueFilter");
requireNonNull(values,"values");
valueMap=new IdentityHashMap<>();
putAll(valueFilter,StreamSupport.stream(values.spliterator(),false));
}
| Creates a new instance. |
public String sqlObject_dropIndex(String vendorName,String catalogName,String schemaName,String indexName){
return m_interfaces.get(getDBVendorID(vendorName)).sqlObject_dropIndex(catalogName,schemaName,indexName);
}
| gets the database specific SQL command to drop indexes |
public static int countMostCoveredGoals(){
return countGoalsIn(mostCoveredGoals);
}
| <p> countMostCoveredGoals </p> |
public void visitFormalTypeParameter(String name){
}
| Visits a formal type parameter. |
public final int readUnsignedShort() throws IOException {
r.readFully(w,0,2);
return ((w[1] & 0xff) << 8 | (w[0] & 0xff));
}
| like RandomAcessFile.readUnsignedShort except little endian. Note, returns int even though it reads a short. |
public void updateAsciiStream(String columnLabel,java.io.InputStream x,long length) throws SQLException {
}
| Updates the designated column with an ascii stream value, which will have the specified number of bytes.. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the <code>updateRow</code> or <code>insertRow</code> me... |
@Override public Object clone() throws CloneNotSupportedException {
return super.clone();
}
| Returns an independent copy of the generator. |
public final boolean isTracking(){
return mIsTracking;
}
| Setter for mIsTracking |
private static void updateUnOrderListSpanBeforeNewLine(Editable editable,int start,MDUnOrderListSpan mdUnOrderListSpan){
int position=EditUtils.findNextNewLineCharCompat(editable,start);
int startSpan=editable.getSpanStart(mdUnOrderListSpan);
int endSpan=editable.getSpanEnd(mdUnOrderListSpan);
if (endSpan <= po... | - aaa --> - a\n- aa |
@Inject public HttpManager(Context context){
this.context=context;
}
| Executes a GET request to given URL with given parameters. |
public RouterConfiguration load() throws ConfigurationException {
load(ConfigurationConstants.TR_PROPERTIES);
DataServicesConfiguration d=DataServicesConfiguration.getInstance();
String managerList=d.getProps().get(props.get(ConfigurationConstants.CLUSTER_CLUSTERNAME));
props.put(ConfigurationConstants.CLUSTER_... | Loads a router configuration from disk. |
private static Set<Method> findLockedMethods(ClassContext classContext,SelfCalls selfCalls,Set<CallSite> obviouslyLockedSites){
JavaClass javaClass=classContext.getJavaClass();
Method[] methodList=javaClass.getMethods();
CallGraph callGraph=selfCalls.getCallGraph();
Set<Method> lockedMethodSet=new HashSet<Metho... | Find methods that appear to always be called from a locked context. We assume that nonpublic methods will only be called from within the class, which is not really a valid assumption. |
public static String toPinyin(char c){
if (isChinese(c)) {
if (c == PinyinData.CHAR_12295) {
return PinyinData.PINYIN_12295;
}
else {
return PinyinData.PINYIN_TABLE[getPinyinCode(c)];
}
}
else {
return String.valueOf(c);
}
}
| return pinyin if c is chinese in uppercase, String.valueOf(c) otherwise. |
public static byte[] decodeLines(String s){
char[] buf=new char[s.length()];
int p=0;
for (int ip=0; ip < s.length(); ip++) {
char c=s.charAt(ip);
if (c != ' ' && c != '\r' && c != '\n' && c != '\t') buf[p++]=c;
}
return decode(buf,0,p);
}
| Decodes a byte array from Base64 format and ignores line separators, tabs and blanks. CR, LF, Tab and Space characters are ignored in the input data. This method is compatible with <code>sun.misc.BASE64Decoder.decodeBuffer(String)</code>. |
public Integer loadAllValues(DbOutputStatement statement,Integer idx) throws Exception {
int index=idx.intValue();
setId(statement.getLongInteger(index++));
setReport(statement.getLongText(index++));
setTypeReport(statement.getLongInteger(index++));
setTypeArch(statement.getLongInteger(index++));
setAllArch... | Carga los valores recuperados de la base de datos en el objeto bean |
public CopyAction(){
this(null);
}
| Creates a new instance which acts on the currently focused component. |
private TimeoutController(){
}
| Do not instantiate objects of this class. Methods are static. |
public ExtensionSpider(){
super(NAME);
initialize();
}
| Instantiates a new spider extension. |
public Dashboard(PrincipalUser creator,String dashboardName,PrincipalUser owner){
super(creator);
setName(dashboardName);
setOwner(owner);
}
| Creates a new Dashboard object. |
public void validateIpInterfaceData(IpInterfaceParam param,IpInterface ipInterface){
String protocol=param.findProtocol() != null ? param.findProtocol() : ipInterface.getProtocol();
if (!HostInterface.Protocol.IPV4.toString().equals(protocol) && !HostInterface.Protocol.IPV6.toString().equals(protocol)) {
throw ... | Validates the create/update IP interface operation input data. |
public boolean isMember(Principal p){
if ((p.hashCode() & super.hashCode()) == p.hashCode()) return true;
else return false;
}
| Returns true if the passed principal is a member of the group. |
public SnmpString(String v){
value=v.getBytes();
}
| Constructs a new <CODE>SnmpString</CODE> from the specified <CODE>String</CODE> value. |
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
if (xmlWriter.getPrefix(namespace) == null) {
xmlWriter.writeNamespace(prefix,namespace);
x... | Util method to write an attribute with the ns prefix |
public boolean isReference(){
return false;
}
| This method always returns false for the default type. This is because by default all elements encountered within the XML are to be deserialized based on there XML annotations. |
public void testSuspend_closesExistingPatientCursor(){
mController.loadSearchResults();
TypedCursorFetchedEvent event=TypedCursorFetchedEventFactory.createEvent(Patient.class,getFakeAppPatientCursor());
mFakeCrudEventBus.post(event);
mController.suspend();
assertTrue(((FakeTypedCursor<Patient>)event.cursor).i... | Tests that retrieving a new cursor results in the closure of any existing cursor. |
void unlink(Node<E> p,Node<E> trail){
p.item=null;
trail.next=p.next;
if (last == p) last=trail;
if (count.getAndDecrement() == capacity) notFull.signal();
}
| Unlinks interior Node p with predecessor trail. |
protected long doHighlightingTest(){
return doHighlightingTest(getTestName(true) + ".bash");
}
| Checks the file testName.bash for proper markup. Does not test lexer highlighting. |
public static void reportStatus(int status){
RecordHistogram.recordEnumeratedHistogram("Search.IcingContextReportingStatus",status,STATUS_BOUNDARY);
}
| Records the given status via UMA. Use one of the STATUS_* constants above. |
protected Object readResolve() throws ObjectStreamException {
try {
if (type == Type.SECRET && RAW.equals(format)) {
return new SecretKeySpec(encoded,algorithm);
}
else if (type == Type.PUBLIC && X509.equals(format)) {
KeyFactory f=KeyFactory.getInstance(algorithm);
return f.generatePub... | Resolve the Key object. <p> This method supports three Type/format combinations: <ul> <li> Type.SECRET/"RAW" - returns a SecretKeySpec object constructed using encoded key bytes and algorithm <li> Type.PUBLIC/"X.509" - gets a KeyFactory instance for the key algorithm, constructs an X509EncodedKeySpec with the encoded k... |
public boolean isClosed(){
return closed;
}
| Returns true if this stream was closed locally. |
public void registerSensor(Sensor s,int rawaddr){
if ((rawaddr < 0) || (rawaddr >= MAXNODE)) {
log.error("Unexpected sensor ordinal in registerSensor: " + Integer.toString(rawaddr));
return;
}
int addr=-1;
addr=rawaddr - startingSensorAddress;
hasActiveSensors=true;
AcelaTrafficController.instance()... | The numbers here are 0 to MAXSENSORBITS, not 1 to MAXSENSORBITS. |
public CrowdedScoringFunctionFactory(ScoringFunctionFactory delegate,EventsManager events){
this.delegate=delegate;
this.events=events;
}
| Constructs a ScoringFunctionFactory that adds disutilities for crowdedness on top of the ScoringFunctions generated by the delegate ScoringFunction. If an EventManager is supplied, CrowdedPenaltyEvents will be passed to the EventManager, which can be useful to find the penalties for crowdedness afterwards. |
public boolean match(Certificate certificate){
if (!(certificate instanceof X509Certificate)) {
return false;
}
X509Certificate cert=(X509Certificate)certificate;
if ((certificateEquals != null) && !certificateEquals.equals(cert)) {
return false;
}
if ((serialNumber != null) && !serialNumber.equals(... | Returns whether the specified certificate matches all the criteria collected in this instance. |
public boolean isInline(){
return inline;
}
| This is used to determine whether the list has been specified as inline. If the list is inline then no overrides are needed and the outer XML element for the list is not used. |
public LIMIT LIMIT(String limit){
return new LIMIT(this,limit);
}
| Adds a SQL LIMIT clause |
private String renderPattern(StatementPattern thePattern) throws Exception {
return "{" + renderValueExpr(thePattern.getSubjectVar()) + "} "+ renderValueExpr(thePattern.getPredicateVar())+ " "+ "{"+ renderValueExpr(thePattern.getObjectVar())+ "} ";
}
| Render a StatementPattern |
@Deprecated public void addSlideInFromBottomAnimator(@NonNull List<Animator> animators,@NonNull View view){
if (animatorsUsed.contains(AnimatorEnum.SLIDE_IN_LEFT) || animatorsUsed.contains(AnimatorEnum.SLIDE_IN_RIGHT) || animatorsUsed.contains(AnimatorEnum.SLIDE_IN_TOP)|| animatorsUsed.contains(AnimatorEnum.SLIDE_IN_... | Item will slide from Bottom of the screen to its natural position.<br/> Ignored if LEFT, RIGHT, TOP or BOTTOM animators were already added. <p><b>Note:</b> Only 1 animator of the same compatible type can be added per time.<br/> Incompatible with LEFT, RIGHT, TOP, BOTTOM animators.</p> |
protected static void invalidateSwitchPoints(){
if (LOG_ENABLED) {
LOG.info("invalidating switch point");
}
synchronized (IndyInterface.class) {
SwitchPoint old=switchPoint;
switchPoint=new SwitchPoint();
SwitchPoint.invalidateAll(new SwitchPoint[]{old});
}
}
| Callback for constant meta class update change |
@Override public void eUnset(int featureID){
switch (featureID) {
case GamlPackage.FUNCTION__ACTION:
setAction((Expression)null);
return;
case GamlPackage.FUNCTION__PARAMETERS:
setParameters((Parameters)null);
return;
case GamlPackage.FUNCTION__ARGS:
setArgs((ExpressionList)null);
return;
case GamlPackage.FUNCTIO... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public Rational(){
this(0,1);
}
| Construct a ratinoal with default properties |
public DatasourceTransactionInterceptor(PlatformTransactionManager ptm,Properties attributes){
setTransactionManager(ptm);
setTransactionAttributes(attributes);
}
| Create a new TransactionInterceptor. |
public static synchronized void unregister(PurchaseObserver observer){
sPurchaseObserver=null;
}
| Unregisters a previously registered observer. |
public static int skipVarint(ByteBuffer buffer){
int skipped=1;
long bytevalue;
while (((bytevalue=buffer.get()) & 0x80L) != 0) {
skipped++;
Preconditions.checkArgument(skipped <= 9,"Variable length quantity is too long");
}
return skipped;
}
| Skip a Varint in a ByteBuffer |
public static int highOrderLongToInt(long longValue){
return (int)(longValue >> 32);
}
| Returns int representing the bit values of the high order 32 bits of given 64 bit long value. |
public Scope(S state){
this.key=UUID.randomUUID().toString();
phlux.create(key,state);
}
| Constructs a new scope from a given initial state. |
public Frame<V> init(final Frame<? extends V> src){
returnValue=src.returnValue;
System.arraycopy(src.values,0,values,0,values.length);
top=src.top;
return this;
}
| Copies the state of the given frame into this frame. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.