code
stringlengths
10
174k
nl
stringlengths
3
129k
public GuacamoleInvalidCredentialsException(Throwable cause,CredentialsInfo credentialsInfo){ super(cause,credentialsInfo); }
Creates a new GuacamoleInvalidCredentialsException with the given cause and associated credential information.
public static String readAsciiLine(InputStream in) throws IOException { StringBuilder result=new StringBuilder(80); while (true) { int c=in.read(); if (c == -1) { throw new EOFException(); } else if (c == '\n') { break; } result.append((char)c); } int length=result.length();...
Returns the ASCII characters up to but not including the next "\r\n", or "\n".
public void severe(String msg,Throwable thrown){ log(Level.SEVERE,thrown,msg,thrown); }
Log a SEVERE message. <p> If the logger is currently enabled for the SEVERE message level then the given message is forwarded to all the registered output Handler objects.
public static <O>SQLParser<O> forPojo(Class<O> pojoClass){ return new SQLParser<O>(pojoClass); }
Creates a new SQLParser for the given POJO class.
protected void installDefaults(){ super.installDefaults(); String prefix=getPropertyPrefix(); Character echoChar=(Character)UIManager.getDefaults().get(prefix + ".echoChar"); if (echoChar != null) { LookAndFeel.installProperty(getComponent(),"echoChar",echoChar); } }
Installs the necessary properties on the JPasswordField.
public String toString(){ return toXML(false); }
Devuelve los valores de la instancia en una cadena de caracteres.
public synchronized void destroy(){ if (log.isDebugEnabled()) { log.debug("Destroying Esper HTTP Adapter"); } for ( EsperHttpServiceBase service : services.values()) { try { service.destroy(); } catch ( Throwable t) { log.info("Error destroying service '" + service.getServiceName() + ...
Destroy the adapter.
public PaymentGatewayParameterServiceImpl(final PaymentModuleGenericDAO<PaymentGatewayParameter,Long> genericDao){ super(genericDao); }
Construct service to work with pg parameters.
public BuildImageParams withAuthConfigs(AuthConfigs authConfigs){ this.authConfigs=authConfigs; return this; }
Adds auth configuration to this parameters.
InlineSequence(NormalMethod method,InlineSequence caller,int bcIndex){ this.method=method; this.caller=caller; this.callSite=null; this.bcIndex=bcIndex; }
Constructs a new inline sequence operand.
private static int distance(Rectangle bounds,int x,int y){ x-=normalize(x,bounds.x,bounds.x + bounds.width); y-=normalize(y,bounds.y,bounds.y + bounds.height); return x * x + y * y; }
Returns a square of the distance from the specified point to the specified rectangle, which does not contain the specified point.
private void terminate(IceProcessingState terminationState){ if (!IceProcessingState.FAILED.equals(terminationState) && !IceProcessingState.TERMINATED.equals(terminationState)) throw new IllegalArgumentException("terminationState"); connCheckClient.stop(); setState(terminationState); }
Terminates this <tt>Agent</tt> by stopping the handling of connectivity checks and setting a specific termination state on it.
public static IOException convertToIOException(Throwable e){ if (e instanceof IOException) { return (IOException)e; } if (e instanceof JdbcSQLException) { JdbcSQLException e2=(JdbcSQLException)e; if (e2.getOriginalCause() != null) { e=e2.getOriginalCause(); } } return new IOException(e.t...
Convert an exception to an IO exception.
public void detachStructure(){ processOperation(new DetachOperation()); }
Detaches all xml elements
private static Object parse(XMLTokener x,boolean arrayForm,JSONArray ja) throws JSONException { String attribute; char c; String closeTag=null; int i; JSONArray newja=null; JSONObject newjo=null; Object token; String tagName=null; while (true) { if (!x.more()) { throw x.syntaxError("Bad XML"...
Parse XML values and store them in a JSONArray.
public static void simulatedJoystick(int id,SimulatedJoystick stick){ joysticks[id]=stick; }
Register a Simulated Joystick on the Data class
@Override public void onTCPConnected(boolean isServer){ if (isServer) { roomState=ConnectionState.CONNECTED; SignalingParameters parameters=new SignalingParameters(new LinkedList<PeerConnection.IceServer>(),isServer,null,null,null,null,null); events.onConnectedToRoom(parameters); } }
If the client is the server side, this will trigger onConnectedToRoom.
public static String generateJMXObjectName(String schedName,String schedInstId){ return "quartz:type=QuartzScheduler" + ",name=" + schedName.replaceAll(":|=|\n",".") + ",instance="+ schedInstId; }
Create the name under which this scheduler should be registered in JMX. <p> The name is composed as: quartz:type=QuartzScheduler,name=<i>[schedName]</i>,instance=<i>[schedInstId]</i> </p>
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public static Problem readProblem(File file,double bias) throws IOException, InvalidInputDataException { BufferedReader fp=new BufferedReader(new FileReader(file)); List<Double> vy=new ArrayList<Double>(); List<Feature[]> vx=new ArrayList<Feature[]>(); int max_index=0; int lineNr=0; try { while (true) {...
reads a problem from LibSVM format
public static SnmpEngineId createEngineId(byte[] arr) throws IllegalArgumentException { if ((arr == null) || arr.length == 0) return null; validateId(arr); return new SnmpEngineId(arr); }
Generates an engine Id based on the passed array.
private void initialize(){ width=getContext().getResources().getDimensionPixelSize(R.dimen.default_width); maximize=false; adapter=new DividableGridAdapter(getContext(),Style.LIST,width); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) { super.setOnShowListener(createOnShowListener()); } }
Initializes the bottom sheet.
public int api_danger(Method m){ int danger=0; String perms=api_descriptors(m).toString(); if (perms.contains("intent")) danger++; if (perms.contains("permission")) danger++; if (perms.contains("reflect") || perms.contains("thread") || perms.contains("loader")) danger++; if ((danger == 0) && (perms.co...
Returns the relative dangerousness of the API. 0 is average, Negative numbers are safer, positive numbers are more dangerous.
protected JSDocCharScanner(JSDocCharScanner src,int maxOffsetExcluded){ this.s=src.s; this.nextFencePost=maxOffsetExcluded; this.nextOffset=src.nextOffset; this.offset=src.offset; }
Initiate scanner with values of other scanner.
@SuppressWarnings("deprecation") @Deprecated public final void suspend(){ if (suspendHelper()) { Thread.currentThread().suspend(); } }
Suspends every thread in this group and recursively in all its subgroups.
@Override public void run(){ amIActive=true; int progress; int row, col, i; int baseCol, baseRow, appendCol, appendRow; double x, y, z, zN, zBase, zAppend; double w1, w2, dist1, dist2, sumDist; double r1, g1, b1, r2, g2, b2; int r, g, b; boolean performHistoMatching=true; if (args.length <= 0) { ...
Used to execute this plugin tool.
public static void outputHistogramUnitConversion(Gate g){ if (g.Type == Gate.GateType.OUTPUT || g.Type == Gate.GateType.OUTPUT_OR) { ArrayList<double[]> histogram_rpus=g.get_histogram_rpus(); ArrayList<double[]> shifted_histogram_rpus=new ArrayList<double[]>(); for ( double[] histogram : histogram_rpus...
If the output module is on a different plasmid (with a different copy number or different affect on cell growth), the RPU units of the circuit might need to be converted.
public boolean removeTelegramWriter(TelegramWriter remWriter){ return (telegramWriters.remove(remWriter)); }
remove a Writer to be notified about new telegrams
public static MapDialogFragment newInstance(Branch branch){ return newInstance(null,null,branch); }
Creates dialog which handles the branch detail with an interactive map.
protected void drawHexagon(int x,int y,int w,int h,Color fillColor,Paint fillPaint,Color penColor,boolean shadow,String direction){ Polygon hexagon=new Polygon(); if (direction.equals(mxConstants.DIRECTION_NORTH) || direction.equals(mxConstants.DIRECTION_SOUTH)) { hexagon.addPoint(x + (int)(0.5 * w),y); hex...
Draws a hexagon shape for the given parameters.
public SimpleEnvironmentViewCtrl(StackPane viewRoot){ splitPane=new SplitPane(); textArea=new TextArea(); textArea.setMinWidth(0.0); splitPane.getItems().add(textArea); viewRoot.getChildren().add(splitPane); }
Adds a split pane and a text area to the provided pane. The result is an environment view which prints messages about environment changes on the text area.
private void populateDataDomainAccessProfile(AccessProfile accessProfile,StorageProvider providerInfo){ accessProfile.setSystemId(providerInfo.getId()); accessProfile.setSystemClazz(providerInfo.getClass()); accessProfile.setIpAddress(providerInfo.getIPAddress()); accessProfile.setUserName(providerInfo.getUserN...
inject details needed for Scanning
@Override public void run(){ amIActive=true; String slopeHeader=null; String aspectHeader=null; String outputHeader=null; String horizonAngleHeader=null; double z; int progress; int[] dY={-1,0,1,1,1,0,-1,-1}; int[] dX={1,1,1,0,-1,-1,-1,0}; int row, col; double azimuth=0; boolean blnSlope=false; ...
Used to execute this plugin tool.
public boolean isDraft(){ Control control=getControl(); return (control != null && control.isDraft()); }
Draft status.
public CardImagesLoader(Component peer){ this.peer=peer; }
Load deck.
public static ComponentUI createUI(JComponent a){ ComponentUI mui=new MultiMenuItemUI(); return MultiLookAndFeel.createUIs(mui,((MultiMenuItemUI)mui).uis,a); }
Returns a multiplexing UI instance if any of the auxiliary <code>LookAndFeel</code>s supports this UI. Otherwise, just returns the UI object obtained from the default <code>LookAndFeel</code>.
public double[] readAllDoubles(){ String[] fields=readAllStrings(); double[] vals=new double[fields.length]; for (int i=0; i < fields.length; i++) vals[i]=Double.parseDouble(fields[i]); return vals; }
Read all doubles until the end of input is reached, and return them.
public static double findMinDistance(Instances inst,int attrIndex){ double min=Double.MAX_VALUE; int numInst=inst.numInstances(); double diff; if (numInst < 2) { return min; } int begin=-1; Instance instance=null; do { begin++; if (begin < numInst) { instance=inst.instance(begin); ...
Find the minimum distance between values
@Override public boolean test(Object receiver,String property,Object[] args,Object expectedValue){ if (IS_ANGULAR2_PROJECT_PROPERTY.equals(property)) { return testIsTypeScriptProject(receiver); } return false; }
Tests if the receiver object is a project is a Angular2 project
@Override public void onUpgrade(SQLiteDatabase db,int oldVersion,int newVersion){ Log.w(TAG,"Upgrading database from version " + oldVersion + " to "+ newVersion+ ", which will destroy all old data"); db.execSQL("DROP TABLE IF EXISTS notes"); onCreate(db); }
Demonstrates that the provider must consider what happens when the underlying datastore is changed. In this sample, the database is upgraded the database by destroying the existing data. A real application should upgrade the database in place.
private void processJournal() throws IOException { deleteIfExists(journalFileTmp); for (Iterator<Entry> i=lruEntries.values().iterator(); i.hasNext(); ) { Entry entry=i.next(); if (entry.currentEditor == null) { for (int t=0; t < valueCount; t++) { size+=entry.lengths[t]; } } else {...
Computes the initial size and collects garbage as a part of opening the cache. Dirty entries are assumed to be inconsistent and will be deleted.
public boolean isUpdate(){ boolean is; if (m_editFlag == FolderEditFlag.UPDATE) is=true; else is=false; return is; }
Devuelve <tt>true</tt> si el nodo ha sido modificado
public void removeTileEntity(BlockPos pos){ if (this.isCubeLoaded) { TileEntity tileEntity=this.tileEntityMap.remove(pos); if (tileEntity != null) { tileEntity.invalidate(); this.isModified=true; } } }
Remove the tile entity at the specified location
public void paintRadioButtonBackground(SynthContext context,Graphics g,int x,int y,int w,int h){ paintBackground(context,g,x,y,w,h,null); }
Paints the background of a radio button.
private void addToken(int tokenType){ addToken(zzStartRead,zzMarkedPos - 1,tokenType); }
Adds the token specified to the current linked list of tokens.
public InternalTenantServiceClient(String server){ setServer(server); }
Client with specific host
private RdapSearchResults searchByNameserverLdhName(final RdapSearchPattern partialStringQuery,final DateTime now){ Iterable<Key<HostResource>> hostKeys=getNameserverRefsByLdhName(partialStringQuery,now); if (Iterables.isEmpty(hostKeys)) { throw new NotFoundException("No matching nameservers found"); } retu...
Searches for domains by nameserver name, returning a JSON array of domain info maps.
public Body(String html,String text){ this.html=html; this.text=text; }
Directly creates an email body given both HTML and plain text content.
private void sendStageProgressPatch(State current,TaskState.TaskStage stage,TaskState.SubStage subStage){ if (current.isSelfProgressionDisabled) { return; } sendSelfPatch(buildPatch(stage,subStage,null)); }
Send a patch message to ourselves to update the execution stage.
@Override protected void rehash(int newCapacity){ int oldCapacity=_set.length; double[] oldKeys=_set; double[] oldVals=_values; byte[] oldStates=_states; _set=new double[newCapacity]; _values=new double[newCapacity]; _states=new byte[newCapacity]; for (int i=oldCapacity; i-- > 0; ) { if (oldStates[i...
rehashes the map to the new capacity.
protected Cipher(CipherSpi cipherSpi,Provider provider,String transformation){ if (cipherSpi == null) { throw new NullPointerException("cipherSpi == null"); } if (!(cipherSpi instanceof NullCipherSpi) && provider == null) { throw new NullPointerException("provider == null"); } this.provider=provider; ...
Creates a new Cipher instance.
public Builder host(final String host){ checkNotNull(host,"host"); this.host=of(host); return this; }
Host to bind service to.
@Override public Consist addConsist(DccLocoAddress address){ if (consistTable.containsKey(address)) { return consistTable.get(address); } EasyDccConsist consist; consist=new EasyDccConsist(address); consistTable.put(address,consist); return consist; }
Add a new EasyDccConsist with the given address to consistTable/consistList
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
private Map<String,ExecutableElement> makeSetterMap(Map<ExecutableElement,String> getterToPropertyName){ Map<String,TypeMirror> getterMap=new TreeMap<String,TypeMirror>(); for ( Map.Entry<ExecutableElement,String> entry : getterToPropertyName.entrySet()) { getterMap.put(entry.getValue(),entry.getKey().getRetur...
Returns a map from property name to setter method. If the setter methods are invalid (for example not every getter has a setter, or some setters don't correspond to getters) then emits an error message and returns null.
public synchronized void closeDriver(){ if (camera != null) { camera.release(); camera=null; framingRect=null; framingRectInPreview=null; } }
Closes the camera driver if still in use.
public boolean isPopupOpen(){ return (popup != null); }
isPopupOpen, This returns true if the time menu popup is open. This returns false if the time menu popup is closed
ValueForKeyIterator(@Nullable Object key){ this.key=key; KeyList<K,V> keyList=keyToKeyList.get(key); next=(keyList == null) ? null : keyList.head; }
Constructs a new iterator over all values for the specified key.
@Override public int hashCode(){ return super.hashCode(); }
Returns a hash code for this instance.
public void replay(ReplayCallback replayCallback){ TempBuffer tReadBuffer=TempBuffer.createLarge(); byte[] readBuffer=tReadBuffer.buffer(); int bufferLength=readBuffer.length; try (InStore jIn=_blockStore.openRead(_startAddress,getSegmentSize())){ Replay replay=readReplay(jIn); if (replay == null) { ...
Replays all open journal entries. The journal entry will call into the callback listener with an open InputStream to read the entry.
public TLongHashSet(TLongHashingStrategy strategy){ super(strategy); }
Creates a new <code>TLongHash</code> instance with the default capacity and load factor.
public CustomizedDistributedRowLock<K> withConsistencyLevel(ConsistencyLevel consistencyLevel){ this.consistencyLevel=consistencyLevel; return this; }
Modify the consistency level being used. Consistency should always be a variant of quorum. The default is CL_QUORUM, which is OK for single region. For multi region the consistency level should be CL_LOCAL_QUORUM. CL_EACH_QUORUM can be used but will Incur substantial latency.
public static void showFormattedMessage(String messageKey,Object... args){ _callback.showFormattedMessage(messageKey,args); }
Shows a locale-specific formatted message to the user using the specified key to look up the message in the resource bundles.
public void addSerialisedObjectToIntentBundle(String key,Intent intent,Object object){ if (key == null) { throw new InvalidParameterException("IntentHelper error adding serialised object to intentbundle, key may not be null"); } if (intent == null) { throw new InvalidParameterException("IntentHelper error...
Stores the object serialised as JSON string in the Intent extradata
public static void main(String[] args){ java.util.Random r=new java.util.Random(); Bits bits=new Bits(); for (int i=0; i < 125; i++) { int k; do { k=r.nextInt(250); } while (bits.isMember(k)); System.out.println("adding " + k); bits.incl(k); } int count=0; for (int i=bits.nextBit(...
Test Bits.nextBit(int).
boolean cancel(int propertyConstant){ if ((mPropertyMask & propertyConstant) != 0 && mNameValuesHolder != null) { int count=mNameValuesHolder.size(); for (int i=0; i < count; ++i) { NameValuesHolder nameValuesHolder=mNameValuesHolder.get(i); if (nameValuesHolder.mNameConstant == propertyConstant) ...
Removes the given property from being animated as a part of this PropertyBundle. If the property was a part of this bundle, it returns true to indicate that it was, in fact, canceled. This is an indication to the caller that a cancellation actually occurred.
public static long parseUnsignedLong(String str) throws NumberFormatException { if (str.length() > 16) { throw new NumberFormatException(); } int lowstart=str.length() - 8; if (lowstart <= 0) return Long.parseLong(str,16); else return Long.parseLong(str.substring(0,lowstart),16) << 32 | Long.parseLong(...
Parses the string argument as a signed long with the radix 16.
public Enumeration oids(){ return ordering.elements(); }
return an Enumeration of the extension field's object ids.
public static boolean deleteFiles(String... files){ if (files == null || files.length == 0) { return true; } Log.d(TAG,"Number of files to delete: " + files.length); boolean allFilesDeleted=true; for (int i=0; i < files.length; i++) { Log.d(TAG,"Deleting file: " + files[i]); URI fileUri=URI.create...
Deletes an array of files from the local storage
public void reloadDocument(String URI){ reloadDocument(loadDocument(URI)); }
Reloads the document using the same base URL and namespace handler. Reloading will pick up changes to styles within the document.
Node[][] genArrays(int size,int narrays){ Node[][] arrays=new Node[narrays][size]; for (int i=0; i < narrays; i++) { for (int j=0; j < size; j++) { arrays[i][j]=new Node(null,0); } } return arrays; }
Generate object arrays.
public boolean isSet(_Fields field){ if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CATEGORY: return isSetCategory(); case MESSAGE: return isSetMessage(); } throw new IllegalStateException(); }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public Ambulance(){ super(); }
Needed by CGLib
public PRLoad(float weight,float[] bucketReadLoads,float[] bucketWriteLoads){ this.weight=weight; this.bucketReadLoads=bucketReadLoads; this.bucketWriteLoads=bucketWriteLoads; }
Constructs a new PRLoad. The bucket read and writes loads are backed by the provided arrays which will be owned and potentially modified by this instance.
void removeComponentImplNoAnimationSafety(Component cmp){ Form parentForm=cmp.getComponentForm(); layout.removeLayoutComponent(cmp); cmp.setParent(this); cmp.deinitializeImpl(); components.remove(cmp); cmp.setParent(null); if (parentForm != null) { if (parentForm.getFocused() == cmp || cmp instanceof ...
removes a Component from the Container
public static String serialize(GPathResult node){ return serialize(asString(node)); }
Return a pretty version of the GPathResult.
@Override public void retry(VolleyError error) throws VolleyError { mCurrentRetryCount++; mCurrentTimeoutMs+=(mCurrentTimeoutMs * mBackoffMultiplier); if (!hasAttemptRemaining()) { throw error; } }
Prepares for the next retry by applying a backoff to the timeout.
public TIntByteHash(int initialCapacity,float loadFactor){ super(initialCapacity,loadFactor); no_entry_key=(int)0; no_entry_value=(byte)0; }
Creates a new <code>TIntByteHash</code> instance with a prime value at or near the specified capacity and load factor.
public void add(Object o){ synchronized (_queue) { _queue.addElement(o); _queue.notify(); } }
Adds an Object to the end of the Queue.
private int calculateLeft(View child,boolean duringLayout){ int mWidth=duringLayout ? getMeasuredWidth() : getWidth(); int childWidth=duringLayout ? child.getMeasuredWidth() : child.getWidth(); int childLeft=0; switch (mGravity) { case Gravity.LEFT: childLeft=mSpinnerPadding.left; break; case Gravity.CENTER...
Figure out horizontal placement based on mGravity
private KeySelectorResult certSelect(X509Certificate xcert,SignatureMethod sm) throws KeyStoreException { boolean[] keyUsage=xcert.getKeyUsage(); if (keyUsage != null && keyUsage[0] == false) { return null; } String alias=ks.getCertificateAlias(xcert); if (alias != null) { PublicKey pk=ks.getCertifica...
Searches the specified keystore for a certificate that matches the specified X509Certificate and contains a public key that is compatible with the specified SignatureMethod.
public void ancestorRemoved(final AncestorEvent event){ }
If the JRootPane was removed from the window we should clear the screen menu bar. That's a non-trivial problem, because you need to know which window the JRootPane was in before it was removed. By the time ancestorRemoved was called, the JRootPane has already been removed
private LoadBalancedConnectionProxy(List<String> hosts,Properties props) throws SQLException { super(); String group=props.getProperty("loadBalanceConnectionGroup",null); boolean enableJMX=false; String enableJMXAsString=props.getProperty("loadBalanceEnableJMX","false"); try { enableJMX=Boolean.parseBoole...
Creates a proxy for java.sql.Connection that routes requests between the given list of host:port and uses the given properties when creating connections.
public void visitMethodInsn(int opcode,String owner,String name,String desc,boolean itf){ if (api < Opcodes.ASM5) { if (itf != (opcode == Opcodes.INVOKEINTERFACE)) { throw new IllegalArgumentException("INVOKESPECIAL/STATIC on interfaces require ASM 5"); } visitMethodInsn(opcode,owner,name,desc); ...
Visits a method instruction. A method instruction is an instruction that invokes a method.
public static void printSummary(PrintStream out){ printSummary(out,null); printErrorSummary(out); }
Print the statistics report to specified stream
public boolean replyToMessage(String quickReply){ setMessageRead(); SmsMessageSender sender=new SmsMessageSender(context,new String[]{fromAddress},quickReply,getThreadId()); return sender.sendMessage(); }
Send a reply to this message
public void unsetMatchColumn(int[] columnIdxes) throws SQLException { int i_val; for (int j=0; j < columnIdxes.length; j++) { i_val=(Integer.parseInt(iMatchColumns.get(j).toString())); if (columnIdxes[j] != i_val) { throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols").toString(...
Unsets the designated parameter to the given int array. This was set using <code>setMatchColumn</code> as the column which will form the basis of the join. <P> The parameter value unset by this method should be same as was set.
public int push(int i){ if ((m_firstFree + 1) >= m_mapSize) { m_mapSize+=m_blocksize; int newMap[]=new int[m_mapSize]; System.arraycopy(m_map,0,newMap,0,m_firstFree + 1); m_map=newMap; } m_map[m_firstFree]=i; m_firstFree++; return i; }
Pushes an item onto the top of this stack.
public final static void writeUnescapedXML(Writer out,String tag,String val,Object... attrs) throws IOException { out.write('<'); out.write(tag); for (int i=0; i < attrs.length; i++) { out.write(' '); out.write(attrs[i++].toString()); out.write('='); out.write('"'); out.write(attrs[i].toString...
does NOT escape character data in val, must already be valid XML
public static void generateRPClass(String ATTR_TITLE){ final RPClass entity=new RPClass("rpentity"); entity.isA("active_entity"); entity.addAttribute("name",Type.STRING); entity.addAttribute(ATTR_TITLE,Type.STRING); entity.addAttribute("level",Type.SHORT); entity.addAttribute("xp",Type.INT); entity.addAtt...
Generates the RPClass and specifies slots and attributes.
@DELETE @Path(PathParameters.TENANT_NAME_VAR) @RequiresRole(role=Role.ADMINISTRATOR) public void delete(@PathParam(PathParameters.TENANT_NAME) String tenantName){ try { getIDMClient().deleteTenant(tenantName); } catch ( NoSuchTenantException e) { log.debug("Failed to delete tenant '{}'",tenantName,e); ...
Delete a tenant
private void startForegroundCompat(int id,Notification notification){ if (mStartForeground != null) { try { mStartForeground.invoke(this,Integer.valueOf(id),notification); } catch ( InvocationTargetException e) { L.d("Unable to invoke startForeground"); } catch ( IllegalAccessException ...
This is a wrapper around the new startForeground method, using the older APIs if it is not available.
public MemcacheClientBuilder<V> withAddress(HostAndPort address){ this.addresses=ImmutableList.of(address); return this; }
Define which memcache server to connect to.
public float value(){ return _map._values[_index]; }
Provides access to the value of the mapping at the iterator's position. Note that you must <tt>advance()</tt> the iterator at least once before invoking this method.
public PropertyChangeListenerProxy(String propertyName,PropertyChangeListener listener){ super(listener); this.propertyName=propertyName; }
Creates a new listener proxy that associates a listener with a property name.
public static Snapshot generateStatistics(String outDir,Manager manager) throws SQLException, IOException, MitroServletException { final long runTimestampMs=System.currentTimeMillis(); Snapshot output=new Snapshot(); Multimap<Integer,Link> countToFile=TreeMultimap.create(Ordering.natural().reverse(),Ordering.natu...
Generate statistics and return newly created objects that have not been committed.
public boolean isExtended(){ return this.isExtended; }
Returns whether this completion context is an extended context. Some methods of this context can be used only if this context is an extended context but an extended context consumes more memory.
public void put(double[] data){ final int l=data.length; for (int i=0; i < l; i++) { final double val=data[i]; min=val < min ? val : min; max=val > max ? val : max; } }
Process a whole array of double values. If any of the values is smaller than the current minimum, it will become the new minimum. If any of the values is larger than the current maximum, it will become the new maximum.
public RC6Engine(){ _S=null; }
Create an instance of the RC6 encryption algorithm and set some defaults
public void updateAfkStatus(){ purgeNotOnline(); final AFKConfig config=aca.getNodeOrDefault(); long afkTime=config.getAfkTime(); long afkTimeKick=config.getAfkTimeToKick(); Instant now=Instant.now(); CommandPermissionHandler cph=getPermissionUtil(); if (afkTime > 0) { workOnAfkPlayers(now.minus(afkTi...
Updates all players' AFK status if they are inactive.