code
stringlengths
10
174k
nl
stringlengths
3
129k
public Vertex details(Vertex source,Vertex vertex){ return details(source,vertex,null); }
Self API Discover the meaning of the word including all details.
public void hideCallNotifications(){ NotificationManager nm=(NotificationManager)EventStreamService.this.getSystemService(Context.NOTIFICATION_SERVICE); if ((FOREGROUND_NOTIF_ID_PENDING_CALL == mForegroundServiceIdentifier) || (FOREGROUND_ID_INCOMING_CALL == mForegroundServiceIdentifier)) { if (FOREGROUND_NOTIF...
Hide the permanent call notifications
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){ switch (featureID) { case UmplePackage.IS_A__SINGLE_IS_A1: return ((InternalEList<?>)getSingleIsA_1()).basicRemove(otherEnd,msgs); case UmplePackage.IS_A__MULTIPLE_IS_A1: return ((InternalEList<?>)get...
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public void run(){ CrawlStarterFromSraper anchorListener=new CrawlStarterFromSraper(this.crawlStacker,this.initiatorHash,this.profile,true); this.scraper.registerHtmlFilterEventListener(anchorListener); final Writer writer=new TransformerWriter(null,null,this.scraper,null,false); FileInputStream inStr...
Run the content scraping on the file and once detected push any anchor link to the crawlStacker.
private static <T>void writeConfig(BufferedWriter writer,DatabaseTableConfig<T> config) throws IOException, SQLException { writer.append(CONFIG_FILE_START_MARKER); writer.newLine(); if (config.getDataClass() != null) { writer.append(FIELD_NAME_DATA_CLASS).append('=').append(config.getDataClass().getName()); ...
Write the config to the writer.
public void unregisterUserAssociation(Association assoc) throws AssociationNotRegisteredException, RegisterFailedException { if (assoc == null) { throw new IllegalArgumentException("The specified association is null"); } try { appAssocWriter.checkAssociationValidForUnregistration(assoc); } catch ( Ill...
Unregisters the given association in the user specific level. <p> <ul> <li> For Microsoft Windows platforms: either the MIME type or the file extension list field needs to be specified to perform this operation. <p> For Windows NT, Windows Me/98/95: the unregistration is always system wide, since all users share the s...
@Override public void run(){ amIActive=true; String ouptutFile=null; String shapefileName=null; int i=0; int row, col, rows, cols; InputStream inStream=null; OutputStream outStream=null; int progress=0; Geometry[] JTSGeometries; WKTWriter wktWriter=new WKTWriter(); String str1=null; FileWriter f...
Used to execute this plugin tool.
private void homogeneousUnion(final HLL other){ switch (type) { case EMPTY: return; case EXPLICIT: for ( LongCursor c : other.explicitStorage) { addRaw(c.value); } return; case SPARSE: for (IntByteCursor c : other.sparseProbabilisticStorage) { final int registerIndex=c.key; final byte registerValue=c.value...
Computes the union of two HLLs of the same type, and stores the result in this instance.
public boolean waitForWifiState(int expectedState,long timeout){ long startTime=System.currentTimeMillis(); while (true) { if ((System.currentTimeMillis() - startTime) > timeout) { if (mWifiState != expectedState) { return false; } else { return true; } } Log.v(LOG_TAG...
Wait for a given wifi state to occur within a given timeout.
public static Entity stackingViolation(IGame game,int enteringId,Coords coords){ Entity entering=game.getEntity(enteringId); if (entering == null) { return null; } return Compute.stackingViolation(game,entering,coords,null); }
Returns an entity if the specified entity would cause a stacking violation entering a hex, or returns null if it would not. The returned entity is the entity causing the violation. The position, and elevation for the stacking violation are derived from the Entity represented by the passed Entity ID.
@Override public boolean supportsColumnAliasing(){ debugCodeCall("supportsColumnAliasing"); return true; }
Returns whether column aliasing is supported.
public RasterModel(int numDataSources){ addDataSources(numDataSources); }
Initialize model to specified number of data sources.
public synchronized Transliterator normalizer(){ if (normalizer == null) { normalizer=Transliterator.createFromRules("",normalizerRules,Transliterator.FORWARD); } return normalizer; }
Deferred initialization because it can be slow.
public boolean contains(Sector that){ if (that == null) return false; if (that.minLongitude.degrees < this.minLongitude.degrees) return false; if (that.maxLongitude.degrees > this.maxLongitude.degrees) return false; if (that.minLatitude.degrees < this.minLatitude.degrees) return false; if (that.maxLat...
Determines whether another sectror is fully contained within this one. The sector's angles are assumed to be normalized to +/- 90 degrees latitude and +/- 180 degrees longitude. The result of the operation is undefined if they are not.
@Override public Item withSetSelected(boolean selected){ this.mSelected=selected; return (Item)this; }
set if this item is selected
public void removeUpdate(DocumentEvent e){ try { int offs=e.getOffset(); if (firstOffsetModded == null || offs < firstOffsetModded.getOffset()) { firstOffsetModded=e.getDocument().createPosition(offs); } if (lastOffsetModded == null || offs > lastOffsetModded.getOffset()) { lastOffsetModde...
Called when the document is modified.
public static void saveName(final Window parent,final INaviAddressSpace addressSpace,final String name){ try { addressSpace.getConfiguration().setName(name); } catch ( final CouldntSaveDataException e) { CUtilityFunctions.logException(e); final String innerMessage="E00153: " + "Could not save address ...
Saves the address space name to the database.
public void storeLocal(final int local,final Type type){ setLocalType(local,type); storeInsn(type,local); }
Generates the instruction to store the top stack value in the given local variable.
public void add(@NotNull Collection<VirtualFile> files){ synchronized (myDefinitelyUntrackedFiles) { myDefinitelyUntrackedFiles.addAll(files); } }
Adds several files to the list of untracked.
public boolean contains(char ch){ return (ch >= start && ch <= end) != negated; }
<p>Is the character specified contained in this range.</p>
@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED}) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:54.993 -0500",hash_original_method="F84161825A8E4C54BC8547EBE9290572",hash_generated_method="93A4FA549F2F63403E088CAD0E99EFFE") public final MappedByteBuffer force(){ if (mapMode =...
Writes all changes of the buffer to the mapped file. If the mapped file is stored on a local device, it is guaranteed that the changes are written to the file. No such guarantee is given if the file is located on a remote device.
public final void testRemoveAllValidators(){ Validator<CharSequence> validator1=Validators.notEmpty("foo"); Validator<CharSequence> validator2=Validators.noWhitespace("bar"); AbstractValidateableViewImplementation abstractValidateableView=new AbstractValidateableViewImplementation(getContext()); abstractValidat...
Tests the functionality of the method, which allows to remove all validators.
public LazyValue(Collection<? super LazyValue<T>> collection,Supplier<T> supplier){ this.supplier=supplier; collection.add(this); }
Construct new ByteLazyValue with given supplier for value.
public static int highestOneBit(int i){ i|=(i >> 1); i|=(i >> 2); i|=(i >> 4); i|=(i >> 8); i|=(i >> 16); return i - (i >>> 1); }
Determines the highest (leftmost) bit of the specified integer that is 1 and returns the bit mask value for that bit. This is also referred to as the Most Significant 1 Bit. Returns zero if the specified integer is zero.
@Override protected void onCompleted(IoEventArgs e){ int transferred=e.getBytesTransferred(); if (transferred > 0) { if (transferred < e.getCount()) { e.setBuffer(e.getOffset() + transferred,e.getCount() - transferred); sendAsync(); } else { sendPacket(); } } else { dispose(); ...
On asynchronous send end callback
public ArffTest(String name){ super(name); }
Constructs the <code>ArffTest</code>.
@Override public void currentRequestContentChanged(String newContent,String oldContent){ if (!working) { working=true; log().trace("Current Request Content Changed"); Document domDoc; try { domDoc=DomUtilities.stringToDom(newContent); } catch ( SAXException e) { getSignatureManager...
If the current request is changed, the SignatureManger must be notified.
public Element render(SVGPlot svgp){ Element tag=svgp.svgElement(SVGConstants.SVG_G_TAG); Element button=svgp.svgRect(x,y,w,h); if (!Double.isNaN(r)) { SVGUtil.setAtt(button,SVGConstants.SVG_RX_ATTRIBUTE,r); SVGUtil.setAtt(button,SVGConstants.SVG_RY_ATTRIBUTE,r); } SVGUtil.setAtt(button,SVGConstants.S...
Produce the actual SVG elements for the button.
public boolean isLcdCrystalEnabled(){ return null == lcdCrystalEnabled ? _lcdCrystalEnabled : lcdCrystalEnabled.get(); }
Returns true if the crystal effect of the LCD display will be drawn. This feature could decrease the performance if you run it on embedded devices because it will calculate a bitmap image where each pixel will be calculated.
public CapabilityFilter(String... capabilities){ for ( String capability : capabilities) { addCapability(capability); } }
Create a CapabilityFilter with the given array of required capabilities.
public void onCreate(Activity activity){ onCreate(activity,false); }
Calls onCreate method asLanding default false. # This method is just to keep track has no affect on given activity
public BetweennessCentrality(Graph<V,E> graph){ initialize(graph); computeBetweenness(new LinkedList<V>(),Functions.<Integer>constant(1)); }
Calculates betweenness scores based on the all-pairs unweighted shortest paths in the graph.
final long logNodeStart(long parentIndex,Move m,int alpha,int beta,int ply,int depth){ bb.putInt(0,(int)-1); bb.putInt(4,(int)parentIndex); bb.putShort(8,(short)(m.from + (m.to << 6) + (m.promoteTo << 12))); bb.putShort(10,(short)alpha); bb.putShort(12,(short)beta); bb.put(14,(byte)ply); bb.put(15,(byte)d...
Log information when entering a search node.
public boolean containedWithin(Vector min,Vector max){ return x >= min.x && x <= max.x && y >= min.y && y <= max.y && z >= min.z && z <= max.z; }
Checks to see if a vector is contained with another.
public Partial plus(ReadablePeriod period){ return withPeriodAdded(period,1); }
Gets a copy of this instance with the specified period added. <p> If the amount is zero or null, then <code>this</code> is returned.
public JsonArrayRequest(int method,String url,JSONArray jsonRequest,Listener<JSONArray> listener,ErrorListener errorListener){ super(method,url,listener,errorListener); }
Creates a new request.
private final boolean checkProximityPosition(XPathContext xctxt,int predPos,DTM dtm,int context,int pos){ try { DTMAxisTraverser traverser=dtm.getAxisTraverser(Axis.PRECEDINGSIBLING); for (int child=traverser.first(context); DTM.NULL != child; child=traverser.next(context,child)) { try { xctxt.p...
New Method to check whether the current node satisfies a position predicate
public NodesInfoRequest process(boolean process){ this.process=process; return this; }
Should the node Process be returned.
public String toString(){ return name; }
Returns a string describing this Variability attribute.
public FilePath(FilePath base){ this(base.elements,base.isAbsolute()); }
Constructs a path from an existing path.
private static String toString(byte[] ranges,int dimension){ return "[" + Double.toString(decodeMin(ranges,dimension)) + " : "+ Double.toString(decodeMax(ranges,dimension))+ "]"; }
Returns the String representation for the range at the given dimension
@Override public void stop() throws LifecycleException { if (getLogger().isDebugEnabled()) { getLogger().debug(this + ": Stopping"); } this.started.set(false); this.lifecycle.fireLifecycleEvent(STOP_EVENT,null); this.random=null; if (this.initialized) { destroy(); } getSessionsToTouch().clear();...
Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component.
private static void addProperty(final Map<String,String> props,final String key,final String value){ if (value == null) { return; } props.put(key,value); }
Add property entry only of value is not null
@Override public Properties trackVideoPause(String videoId,Double currentTime,String courseId,String unitUrl){ SegmentAnalyticsEvent aEvent=getCommonPropertiesWithCurrentTime(currentTime,videoId,Values.VIDEO_PAUSED); aEvent.setCourseContext(courseId,unitUrl,Values.VIDEOPLAYER); tracker.track(Events.PAUSED_VIDEO,a...
This function is used to track Video Pause
public void onBackPressed(){ if (bt.socket.isConnected()) { bt.sendToManualMode("stop"); bt.disconnect(); } Intent changeToMain=new Intent(getApplicationContext(),MainActivity.class); startActivity(changeToMain); }
Changes the behaviour of the back button
public void postPutAll(DistributedPutAllOperation putallO,VersionedObjectList successfulPuts,LocalRegion r) throws TransactionException { if (r.getCache().isCacheAtShutdownAll()) { throw new CacheClosedException("Cache is shutting down"); } PartitionedRegion pr=(PartitionedRegion)r; final long startTime=Par...
Create PutAllPRMsgs for each bucket, and send them.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case N4JSPackage.CATCH_VARIABLE__BINDING_PATTERN: return getBindingPattern(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
protected boolean isConditionExpression(ValueNode value) throws StandardException { switch (value.getNodeType()) { case NodeTypes.BINARY_EQUALS_OPERATOR_NODE: case NodeTypes.BINARY_GREATER_THAN_OPERATOR_NODE: case NodeTypes.BINARY_GREATER_EQUALS_OPERATOR_NODE: case NodeTypes.BINARY_LESS_THAN_OPERATOR_NODE: case NodeTyp...
Is this a boolean condition used as a normal value?
public static char toUpperAscii(char c){ if (isLowercaseAlpha(c)) { c-=(char)0x20; } return c; }
Uppers lowercase ASCII char.
public Builder withLogTerm(long term){ request.logTerm=Assert.argNot(term,term < 0,"log term must not be negative"); return this; }
Sets the request last log term.
public EventStoreBuilder tcpCloseTimeout(Duration duration){ tcpSettingsBuilder.closeTimeout(duration); return this; }
Sets connection closing timeout.
@Override public void actualStart(){ setPeriod(180 * 60 * 1000); setDelay(200); ListenerSim.self().attach(this); markupContacts=new Markup(this); if (markupContacts.isMarkup()) { try { contacts=(HashMap<Long,Long>)markupContacts.readMarkupSerializable(); } catch ( final IOException e) { ...
unserialize the contacts crc hashtable
public static double convertHoursToMillis(double hours){ return (hours * HOUR_TO_MILLIS); }
Converts time in hours to time in milliseconds.
protected void validateOnStop(){ if (Command.STOP.equals(getCommand())) { } }
Validates the arguments passed to the Builder when the 'stop' command has been issued.
public JarEntry(String name){ super(name); }
Creates a new <code>JarEntry</code> for the specified JAR file entry name.
public final boolean isInfoEnabled(){ return false; }
Info is never enabled.
public static ComponentUI createUI(JComponent c){ return new WindowsEditorPaneUI(); }
Creates a UI for a JEditorPane.
public void createTestDatabaseEntitiesForBusinessObjectFormatTesting(String namespaceCode,String dataProviderName,String businessObjectDefinitionName,String businessObjectFormatFileType,String partitionKeyGroupName){ businessObjectDefinitionDaoTestHelper.createBusinessObjectDefinitionEntity(namespaceCode,businessObje...
Creates relative database entities required for the unit tests.
private static boolean shouldLimit(@LimitFlag int limits,@LimitFlag int flag){ return (limits & flag) != LIMIT_NONE; }
Checks whether the specified limit flag is present in the limits provided. <p> If the flag contains multiple flags together using a bitwise OR, this only checks that at least one of the flags is included.
public MemberList<TMember> allMembers(ContainerType<?> type,boolean includeImplicitSuperTypes,boolean includePolyfills,boolean includeInheritedMembers){ return new AllMembersCollector(type,includeImplicitSuperTypes,includePolyfills,includeInheritedMembers).getResult(); }
Returns all members of given type.
@Override protected void installDefaults(){ LayoutManager layout=spinner.getLayout(); if (layout == null || layout instanceof UIResource) { spinner.setLayout(createLayout()); } updateStyle(spinner); }
Initializes the <code>JSpinner</code> <code>border</code>, <code>foreground</code>, and <code>background</code>, properties based on the corresponding "Spinner.*" properties from defaults table. The <code>JSpinners</code> layout is set to the value returned by <code>createLayout</code>. This method is called by <code>...
protected void deleteGateway(String guid){ Integer gwIp=guidToGateway.remove(guid); if (gwIp == null) return; Set<String> gSet=gatewayToGuid.get(gwIp); gSet.remove(guid); if (vNetsByGuid.get(guid) != null) vNetsByGuid.get(guid).setGateway(null); }
Deletes a gateway for a virtual network.
public static boolean initAsync(String Version,Context AppContext,LoaderCallbackInterface Callback){ return AsyncServiceHelper.initOpenCV(Version,AppContext,Callback); }
Loads and initializes OpenCV library using OpenCV Engine service.
public void testSize2PrivateMode() throws Exception { }
Test GridDeploymentMode.PRIVATE mode.
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 isEmail(String email){ return EMAIL_VALIDATOR.isValid(email); }
Checks if the input fiels is an valid email address.
@Override public void fireActionPerformed(ActionEvent event){ super.fireActionPerformed(event); }
We have to make this method public to allow BegMenuItemUI to invoke it.
public void removeNetwork(String ssid){ List<WifiConfiguration> configs=mWifiManager.getConfiguredNetworks(); if (configs != null) { for ( WifiConfiguration config : configs) { loadWifiConfigurationFromProfile(config); if ((config.SSID != null) && config.SSID.contains(ssid)) { mWifiManage...
clear the special net Info
private static CNaviViewNode insertFunctionNode(final INaviView target,final INaviFunctionNode sourceNode){ final CFunctionNode node=target.getContent().createFunctionNode(sourceNode.getFunction()); if (sourceNode.getLocalFunctionComment() != null) { node.initializeLocalFunctionComment(sourceNode.getLocalFuncti...
Clones a source function node and inserts the cloned node into the target view.
private void showFeedback(String feedback){ if (myHost != null) { myHost.showFeedback(feedback); } else { System.out.println(feedback); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
public StyledPasswordFieldUI(Style style){ this.style=style; }
Create a new StyledPasswordFieldUI.
@Override public boolean supportsSchemasInProcedureCalls(){ debugCodeCall("supportsSchemasInProcedureCalls"); return true; }
Returns whether the schema name in procedure calls is supported.
public static WritableArray createArray(){ return new WritableNativeArray(); }
This method should be used when you need to stub out creating NativeArrays in unit tests.
@Override public boolean select(Viewer viewer,Object parentElement,Object element){ String title=""; if (element instanceof Gefaehrdung) { Gefaehrdung gefaehrdung=(Gefaehrdung)element; title=gefaehrdung.getTitel(); } else if (element instanceof MassnahmenUmsetzung) { MassnahmenUmsetzung massnahmeUm...
Selects all (Own)Gefaehrdungen matching the Pattern.
protected Map<String,String> computeEntry2DpidMap(Map<String,Map<String,OFFlowMod>> map){ Map<String,String> ret=new ConcurrentHashMap<String,String>(); for ( String dpid : map.keySet()) { for ( String entry : map.get(dpid).keySet()) ret.put(entry,dpid); } return ret; }
Used only for bundle-local indexing
public void addAll(Iterator<? extends Number> values){ while (values.hasNext()) { add(values.next().doubleValue()); } }
Adds the given values to the dataset.
public MapBasedMovement(Settings settings){ super(settings); map=readMap(); readOkMapNodeTypes(settings); maxPathLength=100; minPathLength=10; backAllowed=false; }
Creates a new MapBasedMovement based on a Settings object's settings.
public static PropertyValuesHolder ofFloat(String propertyName,float... values){ return new FloatPropertyValuesHolder(propertyName,values); }
Constructs and returns a PropertyValuesHolder with a given property name and set of float values.
public final ByteBuffer putLong(int baseOffset,long value){ if (order == ByteOrder.BIG_ENDIAN) { for (int i=7; i >= 0; i--) { byteArray.set(baseOffset + i,(byte)(value & 0xFF)); value=value >> 8; } } else { for (int i=0; i <= 7; i++) { byteArray.set(baseOffset + i,(byte)(value & 0xFF)...
Writes the given long to the specified index of this buffer. <p> The long is converted to bytes using the current byte order. The position is not changed. </p>
public void addField(String name,Object value,float boost){ SolrInputField field=_fields.get(name); if (field == null || field.value == null) { setField(name,value,boost); } else { field.addValue(value,boost); } }
Adds a field with the given name, value and boost. If a field with the name already exists, then the given value is appended to the value of that field, with the new boost. If the value is a collection, then each of its values will be added to the field. The class type of value and the name parameter should match sche...
public MqttConfig(){ }
Create a new configuration.
private void mergeCollapse(){ while (stackSize > 1) { int n=stackSize - 2; if (n > 0 && runLen[n - 1] <= runLen[n] + runLen[n + 1]) { if (runLen[n - 1] < runLen[n + 1]) n--; mergeAt(n); } else if (runLen[n] <= runLen[n + 1]) { mergeAt(n); } else { break; } } }...
Examines the stack of runs waiting to be merged and merges adjacent runs until the stack invariants are reestablished: 1. runLen[i - 3] > runLen[i - 2] + runLen[i - 1] 2. runLen[i - 2] > runLen[i - 1] This method is called each time a new run is pushed onto the stack, so the invariants are guaranteed to hold for i < st...
public Url(String url){ super(url); }
Creates a URL property.
private void removeFromStack(Entry<K,V> e){ e.stackPrev.stackNext=e.stackNext; e.stackNext.stackPrev=e.stackPrev; e.stackPrev=e.stackNext=null; stackSize--; }
Remove the entry from the stack. The head itself must not be removed.
private void goBack(){ if (isAlbum()) { final Long artistId=mArguments.getLong(Config.ID); long[] tracks=MusicUtils.getSongListForArtist(this,artistId); NavUtils.openArtistProfile(this,mArtistName,tracks); } finish(); }
Finishes the activity and overrides the default animation.
public int limit(){ return limit; }
Limit specifies how many elements can be contained in this list.
private void updateHibernateSequences() throws SQLException { executeStatement(QUERY_UPDATE_HIBERNATE_SEQUENCES); }
Updates the hibernate sequences table according to the
public void sendGroupMessage(String name,String text){ StendhalRPRuleProcessor ruleProcessor=SingletonRepository.getRuleProcessor(); for ( String playerName : membersAndLastSeen.keySet()) { Player player=ruleProcessor.getPlayer(playerName); if (player != null) { player.sendPrivateText(NotificationTyp...
sends a group chat message to all members
public static void clear(){ final AsyncContext context=getContext(); final boolean forceSetSecurity=forceSetSecurityContext(context); if (forceSetSecurity) { SecurityContextHolder.clearContext(); } ctx.set(null); }
Clear security context.
public boolean isSetStatus(){ return this.status != null; }
Returns true if field status is set (has been assigned a value) and false otherwise
public static TupleQueryResultParser createTupleParser(QueryResultFormat format,ValueFactory valueFactory) throws UnsupportedQueryResultFormatException { TupleQueryResultParser parser=createTupleParser(format); parser.setValueFactory(valueFactory); return parser; }
Convenience methods for creating TupleQueryResultParser objects that use the specified ValueFactory to create RDF model objects.
public static final void deleteOldBackupFile(Path file,int keep){ ArrayList<Path> al=new ArrayList<>(); String fname=file.getFileName().toString(); try (DirectoryStream<Path> directoryStream=Files.newDirectoryStream(Paths.get("backup"))){ for ( Path path : directoryStream) { if (path.getFileName().to...
Deletes old backup files in backup folder; keep only last X files
public Victory createVictory(String victory){ return new SpaghettiVictory(); }
This is a really nasty implementation
public synchronized void beSick(){ if (!beingSick) { beingSick=true; logger.info("GroupMembershipService.beSick invoked for {} - simulating sickness",this.address); services.getJoinLeave().beSick(); services.getHealthMonitor().beSick(); if (directChannel != null) { directChannel.beSick(); ...
Test hook - be a sick member
private Collection<Insanity> checkSubreaders(MapOfSets<Integer,CacheEntry> valIdToItems,MapOfSets<ReaderField,Integer> readerFieldToValIds){ final List<Insanity> insanity=new ArrayList<>(23); Map<ReaderField,Set<ReaderField>> badChildren=new HashMap<>(17); MapOfSets<ReaderField,ReaderField> badKids=new MapOfSets<...
Internal helper method used by check that iterates over the keys of readerFieldToValIds and generates a Collection of Insanity instances whenever two (or more) ReaderField instances are found that have an ancestry relationships.
public static _BuildStepStatus fromString(final String value) throws SOAPSerializationException { return (_BuildStepStatus)Enumeration.fromString(value,_BuildStepStatus.VALUES_TO_INSTANCES); }
Gets the specific enumeration value in this class appropriate for the given XML attribute value. If no value is known, null is returned (_DEFAULT is not used; that value is for when the attribute is not present).
static public int[] unPackDate(int packedDate){ int retval[]=new int[3]; retval[2]=packedDate & DAY_MASK; retval[1]=(packedDate >> MONTH_SHIFT_BITS) & MONTH_MASK; retval[0]=(packedDate >> YEAR_SHIFT_BITS) & YEAR_MASK; return retval; }
convert a packed date in format YYYY-MM-DD to an integer[3] YYYY,MM,DD
public static CGPoint ccpRotateByAngle(CGPoint v,CGPoint pivot,float angle){ CGPoint r=ccpSub(v,pivot); float t=r.x; float cosa=(float)Math.cos(angle); float sina=(float)Math.sin(angle); r.x=t * cosa - r.y * sina; r.y=t * sina + r.y * cosa; r=ccpAdd(r,pivot); return r; }
Rotates a point counter clockwise by the angle around a pivot
String retrieveStatusMessage(String userID){ String userStatus; try { Roster roster=Roster.getInstanceFor(sConnection); userStatus=roster.getPresence(userID).getStatus(); } catch ( NullPointerException e) { Log.e("Invalid connection or user in retrieveStatus() - NPE",e); userStatus=""; } if ...
returns the status message for a given bare or full JID
private int assertUser(String methodName,int mask) throws JPlagException { String user=getUsername(); int userstate=JPLAG_CENTRAL.getUserAdmin().getState(user); if ((userstate & mask) == 0) logInvalidAccessAndThrow(methodName,user); return userstate; }
Checks whether the current user has enough rights (mask parameter) to access the function with the given name