code
stringlengths
10
174k
nl
stringlengths
3
129k
public ResponseWriter cloneWithWriter(Writer writer){ try { return new CustomResponseWriter(writer,getContentType(),getCharacterEncoding()); } catch ( FacesException e) { throw new IllegalStateException(); } }
<p>Create a new instance of this <code>ResponseWriter</code> using a different <code>Writer</code>.
public boolean supportExtension(String s){ return extensions.contains(s); }
Tells whether the given extension is supported by this user agent.
@Override public void addLifecycleListener(LifecycleListener listener){ lifecycle.addLifecycleListener(listener); }
Add a lifecycle event listener to this component.
public DrawerBuilder withOnDrawerItemLongClickListener(@NonNull Drawer.OnDrawerItemLongClickListener onDrawerItemLongClickListener){ this.mOnDrawerItemLongClickListener=onDrawerItemLongClickListener; return this; }
Define a OnDrawerItemLongClickListener for this Drawer
public void post(Runnable runnable){ post(runnable,0); }
Schedule runnable to run after everything that's on the queue right now.
public JdbcConnection(final Connection conn){ this.setConnection(conn); }
Construct a new JdbcConnection, given a Connection to obtain connections from. <p>Note: This will not trigger initialization of the exception translator.
public CouldntDeleteException(final Exception exception){ super(exception); }
Creates a new exception object.
private static void checkForShutdown(){ if (_shutdownImminent && _uploadsComplete && _downloadsComplete) { GUIMediator.shutdown(); } }
Attempts to shutdown the application. This method does nothing if all file transfers are not yet complete.
public KMLLatLonAltBox(String namespaceURI){ super(namespaceURI); }
Construct an instance.
private void mergeMethods(TypeWithMethods base,TypeWithMethods given,Events events){ for ( MethodType givenMethod : given.getMethods()) { if (base.getMethods().contains(givenMethod)) { for ( MethodType baseMethod : base.getMethods()) { if (!baseMethod.equals(givenMethod)) { continue;...
Merges two entities with methods.
public static Class toClass(ClassFile cf,ClassLoader loader,ProtectionDomain domain) throws CannotCompileException { try { byte[] b=toBytecode(cf); Method method; Object[] args; if (domain == null) { method=defineClass1; args=new Object[]{cf.getName(),b,new Integer(0),new Integer(b.length)...
Loads a class file by a given class loader.
public KnowledgeWorkbench(KnowledgeGraph graph){ super(graph); setNodeEdgeErrorsReported(true); setRightClickPopupAllowed(false); this.setAllowEdgeReorientations(false); }
Constructs a new workbench workbench for the given workbench model.
static final LinkedVertexHull mergePointPoint(LinkedVertexHull left,LinkedVertexHull right){ LinkedVertex leftRoot=left.root; LinkedVertex rightRoot=right.root; leftRoot.next=rightRoot; leftRoot.prev=rightRoot; rightRoot.next=leftRoot; rightRoot.prev=leftRoot; LinkedVertexHull hull=new LinkedVertexHull();...
Merges the given left and right point hulls.
public KMLRegion peekRegion(){ return this.regionStack.peek(); }
Returns the KML Region on the top of this KML traversal context's Region stack, or <code>null</code> if the Region stack is empty. The Region on the top of the stack the last region added with a call to <code>pushRegion</code>. This does not modify the contents of the stack.
@Override public boolean locationIsLeg(int loc){ return (loc == LOC_LLEG) || (loc == LOC_RLEG) || (loc == LOC_CLEG); }
Returns true if the location in question is a leg
private void pushTaskToContext(ServletContext sc,Future<Map<Class<? extends Annotation>,Set<Class<?>>>> scanTask){ sc.setAttribute(ANNOTATIONS_SCAN_TASK_KEY,scanTask); }
Push the provided <code>Future</code> to the specified <code>ServletContext</code>.
public static float minY(final CGRect aRect){ return aRect.origin.y; }
Returns the least y-coordinate value still inside aRect.
public BurlapProtocolException(String message){ super(message); }
Create the exception.
public void release() throws InterruptedException { manager.removeAndReleaseAll(false); }
Releases the administrator and frees all resources. This must be called to ensure proper cleanup.
private int maxDepth(TreeNode root){ if (root == null) return 0; int left=maxDepth(root.left); int right=maxDepth(root.right); return Math.max(left,right) + 1; }
Recursive, O(n) If tree is empty, return 0 Else Get the max depth of left subtree recursively Get the max depth of right subtree recursively Get the max of max depths of left and right subtrees and add 1 to it
public void body(String namespace,String name,String text) throws Exception { }
<p>No body processing is required.</p>
private void updateDesiredPreviewSize(){ if (mCameraDevice == null) { return; } mCameraSettings=mCameraDevice.getSettings(); Point desiredPreviewSize=getDesiredPreviewSize(mCameraCapabilities,mProfile,mUI.getPreviewScreenSize()); mDesiredPreviewWidth=desiredPreviewSize.x; mDesiredPreviewHeight=desiredPr...
Calculates and sets local class variables for Desired Preview sizes. This function should be called after every change in preview camera resolution and/or before the preview starts. Note that these values still need to be pushed to the CameraSettings to actually change the preview resolution. Does nothing when camera ...
public Period minusMillis(int millis){ return plusMillis(-millis); }
Returns a new period minus the specified number of millis taken away. <p> This period instance is immutable and unaffected by this method call.
private Instances(){ }
This utility class cannot be instantiated
public static DeleteAgentTaskService.State buildValidStartupState(@Nullable TaskState.TaskStage startStage){ DeleteAgentTaskService.State startState=new DeleteAgentTaskService.State(); startState.hostServiceLink="hostServiceLink"; startState.controlFlags=ControlFlags.CONTROL_FLAG_OPERATION_PROCESSING_DISABLED; ...
This method creates a new State object which is sufficient to create a new service instance.
public static String encode(final byte b){ return "b" + Byte.toString(b) + "|"; }
Encodes a byte.
public void join(){ synchronized (this) { isAlive=false; notifyAll(); } Thread[] threads=new Thread[activeCount()]; int count=enumerate(threads); for (int i=0; i < count; i++) { try { threads[i].join(); } catch ( InterruptedException ex) { } } }
Closes this ThreadPool and waits for all running threads to finish. Any waiting tasks are executed.
public void unregisterClientInterest(String regionName,Object keyOfInterest,int interestType,boolean isClosing,ClientProxyMembershipID membershipID,boolean keepalive){ if (logger.isDebugEnabled()) { logger.debug("CacheClientNotifier: Client {} unregistering interest in: {} -> {} (an instance of {})",membershipID,...
Unregisters client interest in the input region and key.
public void rotateWay(final Way way,final float angle,final int direction,final float pivotX,final float pivotY,int w,int h,BoundingBox v){ if (way.getNodes() == null) { Log.d("StorageDelegator","rotateWay way " + way.getOsmId() + " has no nodes!"); return; } dirty=true; try { HashSet<Node> nodes=ne...
Rotate all nodes in a way, since the nodes keep their ids, the way itself doesn't change and doesn't need to be saved apply translation only once to the first node if way is closed. Rotation is done in screen coords
public boolean __lt__(final Object rhs){ return getBigInteger(this).compareTo(getBigInteger(rhs)) < 0; }
Used to support < operations on addresses in Python scripts.
public static ClusterStateRequest clusterStateRequest(){ return new ClusterStateRequest(); }
Creates a cluster state request.
protected GlowLivingEntity(Location location,double maxHealth){ super(location); attributeManager=new AttributeManager(this); this.maxHealth=maxHealth; attributeManager.setProperty(Key.KEY_MAX_HEALTH,maxHealth); health=maxHealth; }
Creates a mob within the specified world.
public EcuCodeItem(int numericCode,String description){ put(FID_CODE,String.valueOf(numericCode)); put(FID_DESCRIPT,description); }
Creates a new instance of ObdCodeItem
public <V>HashMap<String,V> newStringMap(){ return dbSettings.databaseToUpper ? new HashMap<String,V>() : new CaseInsensitiveMap<V>(); }
Create a new hash map. Depending on the configuration, the key is case sensitive or case insensitive.
public ComponentBuilder bold(boolean bold){ current.setBold(bold); return this; }
Sets whether the current part is bold.
public Iterator<String> parameterSignatureIterator(){ return new ParameterSignatureIterator(); }
Get an Iterator over signatures of the method parameters.
private void newHelper(Instruction s,BasicBlock b){ }
Update the heap array SSA form for an allocation instruction
public ToParentBlockJoinCollector(Sort sort,int numParentHits,boolean trackScores,boolean trackMaxScore) throws IOException { this.sort=sort; this.trackMaxScore=trackMaxScore; if (trackMaxScore) { maxScore=Float.MIN_VALUE; } this.trackScores=trackScores; this.numParentHits=numParentHits; queue=FieldVa...
Creates a ToParentBlockJoinCollector. The provided sort must not be null. If you pass true trackScores, all ToParentBlockQuery instances must not use ScoreMode.None.
public Object runSafely(Catbert.FastStack stack) throws Exception { int v=getInt(stack); String n=getString(stack); String k=getString(stack); String r=getString(stack); if (!Sage.WINDOWS_OS) return Boolean.FALSE; return Boolean.valueOf(Sage.writeDwordValue(Sage.getHKEYForName(r),k,n,v)); }
Sets a DWORD value in the Windows registry for the specified root, key and name(Windows only) The name will be created if it doesn't already exist. Acceptable values for the Root are: "HKCR", "HKEY_CLASSES_ROOT", "HKCC", "HKEY_CURRENT_CONFIG", "HKCU", "HKEY_CURRENT_USER", "HKU", "HKEY_USERS", "HKLM" or "HKEY_LOCAL_MACH...
private AuthnStatement createAuthnStatement(AuthenticationData authnData){ assert authnData != null; DateTime authnInstantTime=new DateTime(authnData.getAuthnTime()); assert authnInstantTime != null; AuthnStatement authnStatement=new AuthnStatementBuilder().buildObject(); authnStatement.setAuthnInstant(authnI...
Creates AuthenticationStatement section of the token.
public b addElement(String element){ addElementToRegistry(element); return (this); }
Adds an Element to the element.
private void writeObject(java.io.ObjectOutputStream s) throws IOException { Iterator<Map.Entry<K,V>> i=(size > 0) ? entrySet0().iterator() : null; s.defaultWriteObject(); s.writeInt(table.length); s.writeInt(size); if (i != null) { while (i.hasNext()) { Map.Entry<K,V> e=i.next(); s.writeObject...
Save the state of the <tt>ParameterizedHashMap</tt> instance to a stream (i.e., serialize it).
private void validateMultiplePartitionedRegions(VM vm0,VM vm1,VM vm2,VM vm3,int startIndexForRegion,int endIndexForRegion) throws Throwable { int AsyncInvocationArrSize=4; AsyncInvocation[] async=new AsyncInvocation[AsyncInvocationArrSize]; async[0]=vm0.invokeAsync(validateMultiplePartitionRegion(prPrefix,startIn...
<br> This function performs following checks on allPartitionRegion and bucket2Node region of Partition Region</br> <br> 1. allPartitionRegion should not be null</br> <br> 2. Size of allPartitionRegion should be no. of regions + 1.</br> <br> 3. Bucket2Node should not be null and size should = no. of regions</br> <br> 4....
public static void reset(){ requestBody=null; stubReturnValue=null; }
Resets the static members to null.
protected final void openSessionForPublish(String applicationId,List<String> permissions){ openSessionForPublish(applicationId,permissions,SessionLoginBehavior.SSO_WITH_FALLBACK,Session.DEFAULT_AUTHORIZE_ACTIVITY_CODE); }
Opens a new session with publish permissions. If either applicationID is null, this method will default to using the value from the associated meta-data value. The permissions list cannot be null.
@Override public boolean equals(Object o){ if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final AbstractDirectoryEntry that=(AbstractDirectoryEntry)o; return id == that.id; }
Indicates whether some other object is "equal to" this one.
public void appendPath(String p_addToPath) throws MalformedURIException { if (p_addToPath == null || p_addToPath.trim().length() == 0) { return; } if (!isURIString(p_addToPath)) { throw new MalformedURIException(Utils.messages.createMessage(MsgKey.ER_PATH_INVALID_CHAR,new Object[]{p_addToPath})); } if...
Append to the end of the path of this URI. If the current path does not end in a slash and the path to be appended does not begin with a slash, a slash will be appended to the current path before the new segment is added. Also, if the current path ends in a slash and the new segment begins with a slash, the extra slash...
private void notifyUIRefreshComplete(boolean ignoreHook){ if (mPtrIndicator.hasLeftStartPosition() && !ignoreHook && mRefreshCompleteHook != null) { if (DEBUG) { PtrCLog.d(LOG_TAG,"notifyUIRefreshComplete mRefreshCompleteHook run."); } mRefreshCompleteHook.takeOver(); return; } if (mPtrUIHan...
Do real refresh work. If there is a hook, execute the hook first.
public void test_DELETE_accessPath_delete_s() throws Exception { doInsertbyURL("POST",packagePath + "test_delete_by_access_path.ttl"); final long mutationResult=doDeleteWithAccessPath(new URIImpl("http://www.bigdata.com/Mike"),null,null); assertEquals(3,mutationResult); }
Delete everything with a specific subject.
public static Float convertFontWeight(Element e){ Value v=CSSUtilities.getComputedStyle(e,SVGCSSEngine.FONT_WEIGHT_INDEX); float f=v.getFloatValue(); switch ((int)f) { case 100: return TextAttribute.WEIGHT_EXTRA_LIGHT; case 200: return TextAttribute.WEIGHT_LIGHT; case 300: return TextAttribute.WEIGHT_DEMILIGH...
Converts the font-weight CSS value to a float value.
public NondominatedSorting(){ this(new ParetoDominanceComparator()); }
Constructs a fast non-dominated sorting operator using Pareto dominance.
public int[] fractionPlaceGroups(){ Object[] boxedArray=decimalGroups.toArray(); int len=boxedArray.length + 1; int[] array=new int[len]; array[0]=minimumFractionDigits; for (int i=1; i < len; i++) { array[i]=(Integer)boxedArray[i - 1]; } return array; }
Return the fractional decimal-placing used when formatting. This method returns an <code>int</code> array. The value of the first element is the minimum number of decimal places to be used in all cases, limited to a precision of satoshis. The value of each successive element is the size of an optional place-group th...
public static String toJson(Calendar cal){ return DEFAULT_GENERATOR.toJson(cal); }
Format a calendar instance that is parseable from JavaScript, according to ISO-8601.
public String toString(){ StringBuffer buffer=new StringBuffer(); buffer.append("DATNode["); buffer.append("m_id = ").append(m_id); buffer.append(", m_name = ").append(m_name); buffer.append(", m_type = ").append(m_type); buffer.append("]"); return buffer.toString(); }
toString methode: creates a String representation of the object
private void updateView(){ if (rebuildItems()) { calculateLayoutWidth(getWidth(),MeasureSpec.EXACTLY); layout(getWidth(),getHeight()); } }
Updates view. Rebuilds items and label if necessary, recalculate items sizes.
public static URI applyParameters(URI uri,Map<String,String> queryParameters,String optionPrefix) throws URISyntaxException { if (queryParameters != null && !queryParameters.isEmpty()) { StringBuffer newQuery=uri.getRawQuery() != null ? new StringBuffer(uri.getRawQuery()) : new StringBuffer(); for ( Map.En...
Given a Key / Value mapping create and append a URI query value that represents the mapped entries, return the newly updated URI that contains the value of the given URI and the appended query value. Each entry in the query string is prefixed by the supplied optionPrefix string.
public static CommandResult execute(Command command,long timeout,TimeUnit timeUnit) throws IOException, CommandTimeoutException { return execute(command,CommandContext.defaultContext(),timeout,timeUnit); }
Synchronously executes a command with the default context and the given timeout.
public void incUpdateRequest(){ this.stats.incInt(updateRequestId,1); }
Increments the number of update requests by 1.
public MutabilityControl(boolean mutable){ this.mutable=mutable; }
Constructs an instance, explicitly indicating the mutability.
private static void throwLocationPermissionMissing(SecurityException e){ throw new SecurityException("Looks like the app doesn't have the permission to access location.\n" + "Add the following line to your app's AndroidManifest.xml:\n" + "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />",e...
Provides a clearer exception message than the default one.
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 static RelationalOpExpression geProperty(String propertyLeft,String propertyRight){ return new RelationalOpExpression(getPropExpr(propertyLeft),">=",new PropertyValueExpression(propertyRight)); }
Greater-or-equal between properties.
@SuppressWarnings("unchecked") @Override public boolean equals(Object obj){ if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Row)) return false; Row<T> that=(Row<T>)obj; if (est != that.est) return false; return true; }
This equals is computed only from the Row.getEstimate() value and does not imply equality of the other items within the row: item and upper and lower bounds. Defined this way, this equals will be consistent with compareTo(Row).
public static boolean toBoolean(final String value){ return Boolean.valueOf(value).booleanValue(); }
Converts the given XML string to a boolean value.
public void test_unwrap_ByteBuffer$ByteBuffer_01() throws IOException, InterruptedException { prepareEngines(); doHandshake(); ByteBuffer bbs=ByteBuffer.allocate(100); ByteBuffer bbd=ByteBuffer.allocate(100); try { clientEngine.engine.unwrap(bbs,new ByteBuffer[]{bbd}); fail("SSLException wasn't thrown...
javax.net.ssl.SSLEngine#unwrap(ByteBuffer src, ByteBuffer[] dsts) SSLException should be thrown.
public void skipHDU(int n) throws FitsException, IOException { for (int i=0; i < n; i+=1) { skipHDU(); } }
Skip HDUs on the associate input stream.
public T caseDoStatement(DoStatement object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Do Statement</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
protected void cleanupSuspendState(DLockRequestMessage request){ postReleaseLock(request.getRemoteThread(),request.getObjectName()); }
Departure or other codepath NOT specific to unlock requires that we cleanup suspend state that was already permitted to request. This needs to be invoked for both regular and suspend locks. <p> Synchronizes on suspendLock.
public synchronized void clearAnnotations(){ mStringXY.clear(); }
Removes all the existing annotations from the series.
public HttpResponse perform(final Method method,final String path,final HttpEntity payload) throws IOException { try { return performAsync(method,path,payload,null).get(); } catch ( InterruptedException e) { throw new RuntimeException(e); } catch ( ExecutionException e) { throw new RuntimeException...
Perform an http request synchronously.
public boolean isOldNull(){ String value=getOldValue(); return value == null || value.equals(NULL); }
Is Old Value Null
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:57:50.680 -0500",hash_original_method="E5AF799D5D5F28A5FEBFEE44EB734D28",hash_generated_method="10BF5CB2E01C600AD89E7CF99F3834F5") public static void shuffle(List<?> list){ ...
Moves every element of the list to a random new position in the list.
public Block[] corners(){ Block[] res=new Block[8]; World w=this.getWorld(); res[0]=w.getBlockAt(this.x1,this.y1,this.z1); res[1]=w.getBlockAt(this.x1,this.y1,this.z2); res[2]=w.getBlockAt(this.x1,this.y2,this.z1); res[3]=w.getBlockAt(this.x1,this.y2,this.z2); res[4]=w.getBlockAt(this.x2,this.y1,this.z1);...
Get the Blocks at the eight corners of the Cuboid.
@Override public void close() throws IOException { closed=true; def.end(); in.close(); }
Closes the underlying input stream and discards any remaining uncompressed data.
public String hostId(){ return hostId; }
Returns host ID.
public void drawItem(Graphics2D g2,XYItemRendererState state,Rectangle2D dataArea,PlotRenderingInfo info,XYPlot plot,ValueAxis domainAxis,ValueAxis rangeAxis,XYDataset dataset,int series,int item,CrosshairState crosshairState,int pass){ if (!getItemVisible(series,item)) { return; } double x=dataset.getXValue(...
Draws the visual representation of a single data item.
public int lineno(){ return lineNumber; }
Returns the current line number.
public boolean isStateActive(State state){ switch (state) { case r1_R1A: return stateVector[0] == State.r1_R1A; case r1_R1B: return stateVector[0] == State.r1_R1B; case r2_R2A: return stateVector[1] == State.r2_R2A; case r2_R2B: return stateVector[1] == State.r2_R2B; default : return false; } }
Returns true if the given state is currently active otherwise false.
public void onCancelAllRealtimeData(){ m_historyDataRequests.clear(); m_realTimeBarsRequests.clear(); }
Method onCancelAllRealtimeData.
public LoadGameCommand(Server server){ super(server,"load","load a saved game from the savegames directory. Usage: /load [filename]"); }
Creates new ResetCommand
public Vector3d mul(Matrix3fc mat){ return mul(mat,this); }
Multiply the given matrix <code>mat</code> with this Vector3d.
private JCTree findJumpTarget(DiagnosticPosition pos,JCTree.Tag tag,Name label,Env<AttrContext> env){ Env<AttrContext> env1=env; LOOP: while (env1 != null) { switch (env1.tree.getTag()) { case LABELLED: JCLabeledStatement labelled=(JCLabeledStatement)env1.tree; if (label == labelled.label) { if (t...
Return the target of a break or continue statement, if it exists, report an error if not. Note: The target of a labelled break or continue is the (non-labelled) statement tree referred to by the label, not the tree representing the labelled statement itself.
public Shape modelToView(int p0,Position.Bias b0,int p1,Position.Bias b1,Shape a) throws BadLocationException { Shape s0=modelToView(p0,a,b0); Shape s1; if (p1 == getEndOffset()) { try { s1=modelToView(p1,a,b1); } catch ( BadLocationException ble) { s1=null; } if (s1 == null) { ...
Provides a mapping, for a given region, from the document model coordinate space to the view coordinate space. The specified region is created as a union of the first and last character positions. <p> This is implemented to subtract the width of the second character, as this view's <code>modelToView</code> actually ret...
public boolean evaluate(MWFActivity activity){ if (getAD_Column_ID() == 0) throw new IllegalStateException("No Column defined - " + this); PO po=activity.getPO(); if (po == null || po.get_ID() == 0) throw new IllegalStateException("Could not evaluate " + po + " - "+ this); Object valueObj=po.get_ValueOfColu...
Evaluate Condition
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case GamlPackage.ARGUMENT_DEFINITION__TYPE: return getType(); case GamlPackage.ARGUMENT_DEFINITION__DEFAULT: return getDefault(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public void onEnabled(Context context,Intent intent){ super.onEnabled(context,intent); Toast.makeText(context,R.string.switch_admin_on,Toast.LENGTH_LONG).show(); Log.d(TAG,"onEnabled"); }
Called when this application is approved to be a device administrator.
public void endVisit(UnionType node){ }
End of visit the given type-specific AST node. <p> The default implementation does nothing. Subclasses may reimplement. </p>
protected Node newNode(){ return new XBLOMHandlerGroupElement(); }
Returns a new uninitialized instance of this object's class.
static void genParameterRegisterLoad(Assembler asm,int params){ if (VM.VerifyAssertions) VM._assert(0 < params); if (0 < NUM_PARAMETER_GPRS) { stackMoveHelper(asm,T0,Offset.fromIntZeroExtend((params - 1) << LG_WORDSIZE)); } if (1 < params && 1 < NUM_PARAMETER_GPRS) { stackMoveHelper(asm,T1,Offset.from...
Copy parameters from operand stack into registers. Assumption: parameters are laid out on the stack in order with SP pointing to the last parameter. Also, this method is called before the generation of a "helper" method call. Assumption: no floating-point parameters.
public boolean someDataAvailable(){ return thresholdReachedCount == 0; }
Checks if the dynamic call graph organizer has gathered and processed enough samples to support decisions.
protected void addNamePropertyDescriptor(Object object){ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_NamedElement_name_feature"),getString("_UI_PropertyDescriptor_description","_UI_NamedElement_name_fe...
This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
public sun.net.ftp.FtpClient rename(String from,String to) throws sun.net.ftp.FtpProtocolException, IOException { issueCommandCheck("RNFR " + from); issueCommandCheck("RNTO " + to); return this; }
Renames a file on the server.
public static MainFragment newInstance(CropDemoPreset demoPreset){ MainFragment fragment=new MainFragment(); Bundle args=new Bundle(); args.putString("DEMO_PRESET",demoPreset.name()); fragment.setArguments(args); return fragment; }
Returns a new instance of this fragment for the given section number.
public void showProgressDialog(){ showDialog(DIALOG_PROGRESS_ID); }
Shows the progress dialog.
public void removeGenre(MediaGenres genre){ if (genresForAccess.contains(genre)) { genresForAccess.remove(genre); genres.remove(genre.name()); firePropertyChange(GENRE,null,genre); firePropertyChange(GENRES_AS_STRING,null,genre); } }
Removes the genre.
protected void checkEquivalence(final IonValue left,final IonValue right,boolean expectedEquality){ if (expectedEquality) { IonAssert.assertIonEquals(left,right); IonAssert.assertIonEquals(right,left); if (left.getType() != DATAGRAM && right.getType() != DATAGRAM) assertEquals("Equal values have unequ...
Check strict equivalence or non-equivalence between two IonValues. <p> This also checks for the symmetric property of equalities, i.e. X is equivalent to Y if and only if Y is equivalent to X.
public void yypushback(int number){ if (number > yylength()) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos-=number; }
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
@NonNull public static CalendarDay today(){ return from(CalendarUtils.getInstance()); }
Get a new instance set to today
protected Table createLinkTable(){ return LINKS_SCHEMA.instantiate(getNodeTable().getMaximumRow() + 1); }
Instantiate and return the link table.
private static void merge(Host first,Host second,Host result){ result.myUser=mergeValue(first.myUser,second.myUser); result.myHostName=mergeValue(first.myHostName,second.myHostName); result.myPort=mergeValue(first.myPort,second.myPort); result.myIdentityFile=mergeValue(first.myIdentityFile,second.myIdentityFile...
Merge information from two host entries