code
stringlengths
10
174k
nl
stringlengths
3
129k
private void $$$setupUI$$$(){ contentPanel=new JPanel(); contentPanel.setLayout(new GridLayoutManager(7,1,new Insets(0,0,0,0),-1,-1)); commentLabel=new JLabel(); this.$$$loadLabelText$$$(commentLabel,ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("FeedbackDialog.CommentLabel.Smi...
Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
public void emitDirect(int taskId,List<Object> tuple,Object messageId){ emitDirect(taskId,Utils.DEFAULT_STREAM_ID,tuple,messageId); }
Emits a tuple to the specified task on the default output stream. This output stream must have been declared as a direct stream, and the specified task must use a direct grouping on this stream to receive the message. The emitted values must be immutable.
public boolean isPingDisabled(){ return (null != healthcheck && !healthcheck.exists()); }
Returns true if the healthcheck flag-file is enabled but does not exist, otherwise (no file configured, or file configured and exists) returns false.
private boolean isLink(){ return ((state & LINK_FLAG) == LINK_FLAG); }
Returns true if this image within a link?
public void removeTab(Component comp){ if (tabs.getTabCount() == 0) { if (firstComp == null || firstComp != comp) { return; } super.remove(firstComp); firstComp=null; this.validate(); this.repaint(); return; } tabs.remove(comp); if (tabs.getTabCount() == 1) { if (firstComp ...
Removes a Component. If after removing the Component there is only one left, remove the JTabbedPane and add the remaining Component directly to the JPanel.
public static void modifySpanAnnotation(AnnotationFS aOldFs,AnnotationFS aNewFs,JCas aJCas){ Feature[] features=getAllFeatures(aOldFs); for ( Feature f : features) { if (isLinkOrBasicFeatures(aOldFs,f)) { continue; } setFeatureValue(aNewFs,f,getFeatureValue(aOldFs,f)); } aJCas.addFsToIndexes(...
Modify existing non-stackable annotations from one of the users annotation
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 void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
Close a <code>Connection</code>, avoid closing if null.
public TollAnalyzer(final String eventsFile,final double simulationEndTime,final int noOfTimeBins,final String shapeFile,final Network network){ this(eventsFile,simulationEndTime,noOfTimeBins,shapeFile,network,null); }
Area filtering will be used, result will include links falls inside the given shape and persons from all user groups.
private void genId(){ setId(Long.valueOf(System.currentTimeMillis() % Long.MAX_VALUE).toString()); }
Generates a unique exception ID. The current implementation is based on the system time stamp and is therefore only unique per millisecond (and for about 317 years)
public NSGAII(Problem problem,NondominatedSortingPopulation population,EpsilonBoxDominanceArchive archive,Selection selection,Variation variation,Initialization initialization){ super(problem,population,archive,initialization); this.variation=variation; this.selection=selection; }
Constructs the NSGA-II algorithm with the specified components.
public Grammar(int size){ this(new int[size]); }
Constructs a grammar variable with the specified initial size.
public void attrAdded(Attr node,String newv){ if (!changing) { if (pathSegs != null) { pathSegs.invalidate(); } if (normalizedPathSegs != null) { normalizedPathSegs.invalidate(); } } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
Called when an Attr node has been added.
public HttpSessionsSite(ExtensionHttpSessions extension,String site){ super(); this.extension=extension; this.site=site; this.sessions=new LinkedHashSet<>(); this.model=new HttpSessionsTableModel(this); this.activeSession=null; }
Instantiates a new site http sessions object.
public void buildDistanceTables(Geometry rebuildZone){ LOG.info("Finding distances from transit stops to street vertices."); if (rebuildZone != null) { LOG.info("Selectively finding distances for only those stops potentially affected by scenario application."); } LambdaCounter buildCounter=new LambdaCounter...
Run a distance-constrained street search from every transit stop in the graph. Store the distance to every reachable street vertex for each of these origin stops. If a scenario has been applied, we need to build tables for any newly created stops and any stops within transfer distance or access/egress distance of those...
public Timer(String name){ this.name=name; duration=0; }
Creates a new timer with the given name.
public void delete() throws IOException { close(); deleteContents(directory); }
Closes the cache and deletes all of its stored values. This will delete all files in the cache directory including files that weren't created by the cache.
protected void NCName(){ m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH),m_queueMark - 1); m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1); nextToken(); }
NCName ::= (Letter | '_') (NCNameChar) NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender
public static void main(final String[] args){ DOMTestCase.doMain(elementgetelementempty.class,args); }
Runs this test from the command line.
protected void sequence_RequiredRuntimeLibraries(ISerializationContext context,RequiredRuntimeLibraries semanticObject){ genericSequencer.createSequence(context,semanticObject); }
Contexts: RequiredRuntimeLibraries returns RequiredRuntimeLibraries Constraint: (requiredRuntimeLibraries+=RequiredRuntimeLibraryDependency requiredRuntimeLibraries+=RequiredRuntimeLibraryDependency*)?
@TargetApi(21) public static TVShowDetailsFragment newInstance(TVShowListFragment.ViewHolder vh){ TVShowDetailsFragment fragment=new TVShowDetailsFragment(); Bundle args=new Bundle(); args.putInt(BUNDLE_KEY_TVSHOWID,vh.tvshowId); args.putInt(BUNDLE_KEY_EPISODE,vh.episode); args.putString(BUNDLE_KEY_GENRES,vh....
Create a new instance of this, initialized to show tvshowId
@Override public void process(V tuple){ if (!flag) { low=tuple; flag=true; } else if (low.doubleValue() > tuple.doubleValue()) { low=tuple; } }
Unifier process function.
@Override public String findNumBinsTipText(){ return "Ignored."; }
Returns the tip text for this property
public float seconds(){ return ((float)millis()) / UNIT; }
Returns the elapsed time in seconds; does not stop the timer, if started.
public static <DTO>List<DTO> createListDtoFromJson(String json,Class<DTO> dtoInterface){ return DtoFactory.getInstance().createListDtoFromJson(json,dtoInterface); }
Translates JSON to the list of DTO objects.
public LoadFactor60ScoringFunctionFactory(ScoringFunctionFactory delegate,EventsManager events,ScoreTracker scoreTracker,Scenario scenario){ this.delegate=delegate; this.events=events; this.scoreTracker=scoreTracker; this.scenario=scenario; }
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 PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,Map<String,Analyzer> fieldAnalyzers){ super(PER_FIELD_REUSE_STRATEGY); this.defaultAnalyzer=defaultAnalyzer; this.fieldAnalyzers=(fieldAnalyzers != null) ? fieldAnalyzers : Collections.<String,Analyzer>emptyMap(); }
Constructs with default analyzer and a map of analyzers to use for specific fields.
protected void readImage(){ ix=readShort(); iy=readShort(); iw=readShort(); ih=readShort(); int packed=read(); lctFlag=(packed & 0x80) != 0; interlace=(packed & 0x40) != 0; lctSize=2 << (packed & 7); if (lctFlag) { lct=readColorTable(lctSize); act=lct; } else { act=gct; if (bgIndex ...
Reads next frame image
private void returnJson500(RequestAndResponse requestAndResponse,String text) throws ServletException, IOException { requestAndResponse.setResponseContentTypeJson(); requestAndResponse.response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); requestAndResponse.print("{\"errors\":[" + JsonBuilder.quote(te...
Returns a JSON 500.
private static void writeItems(final Collection<Item> itemCollection,final DataOutput dos,final boolean dotted) throws IOException { int size=itemCollection.size(); Item[] items=itemCollection.toArray(new Item[size]); Arrays.sort(items); for (int i=0; i < size; i++) { dos.writeUTF(items[i].name); dos.wr...
Sorts the items in the collection and writes it to the data output stream
public static Drawable generateRoundBorderDrawable(Resources res,float radii,int pressColor,int defaultColor){ radii=dpToPx(res,radii); float[] outRadii=new float[]{radii,radii,radii,radii,radii,radii,radii,radii}; Shape roundRectShape=new RoundRectShape(outRadii,null,null); ShapeDrawable shopDrawablePress=new ...
Generate bg drawable drawable.
@Override public boolean supportsDb(String type){ return true; }
No database tables used, so all supported
protected SingleAssociationEnd_Impl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
protected static DHPublicKeyParameters decodeDHPublicKey(byte[] encoded){ BigInteger i=new BigInteger(encoded); return new DHPublicKeyParameters(i,DH_GROUP_PARAMETERS); }
Creates a public key object from the given encoded key.
public DrawerBuilder withScrollToTopAfterClick(boolean scrollToTopAfterClick){ this.mScrollToTopAfterClick=scrollToTopAfterClick; return this; }
defines if the drawer should scroll to top after click
public synchronized void notifyWaitingThread(final HostConnectionPool hostPool){ WaitingThread waitingThread=null; if (hostPool.waitingThreads.size() > 0) { if (LOG.isDebugEnabled()) { LOG.debug("Notifying thread waiting on host pool, hostConfig=" + hostPool.hostConfiguration); } waitingThread=(Wa...
Notifies a waiting thread that a connection for the given configuration is available. This will wake a thread waiting in this host pool or if there is not one a thread in the connection pool will be notified.
public static char[] toCharArray(Reader input) throws IOException { CharArrayWriter sw=new CharArrayWriter(); copy(input,sw); return sw.toCharArray(); }
Get the contents of a <code>Reader</code> as a character array. <p/> This method buffers the input internally, so there is no need to use a <code>BufferedReader</code>.
public void removeSetting(final int index){ Assert.isTrue(index >= 0); fSettings.remove(index); }
Removes the setting at the specified index.
public void addProgressListener(ChartProgressListener listener){ this.progressListeners.add(ChartProgressListener.class,listener); }
Registers an object for notification of progress events relating to the chart.
@Override public void run(){ amIActive=true; String outputHeader=""; int row, col; double rowYCoord, value, z; int progress=0; double cellSizeX, cellSizeY; int rows, topRow, bottomRow; int cols; int inputRow, inputCol; double inputX, inputY; double east; double west; double north; double sou...
Used to execute this plugin tool.
public static void execAndCheckOutput(ProcessBuilder builder,String expectedOut,String expectedErr) throws Exception { Process process=builder.start(); ExecutorService executorService=Executors.newFixedThreadPool(2); try { Future<String> errFuture=executorService.submit(streamToStringCallable(process.getError...
Starts the process described by 'builder', and asserts that it sees 'expectedOut' on stdout and 'expectedErr' on stderr. Times out after 10s.
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public static void sinhAndCosh(double value,DoubleWrapper hsine,DoubleWrapper hcosine){ if (USE_JDK_MATH) { hsine.value=STRICT_MATH ? StrictMath.sinh(value) : Math.sinh(value); hcosine.value=STRICT_MATH ? StrictMath.cosh(value) : Math.cosh(value); return; } double h; if (value < 0.0) { value=-va...
Computes hyperbolic sine and hyperbolic cosine together, at the cost of... a dependency of this class with DoubleWrapper.
public static SpannableString typeface(Context context,int strResId){ if (sDefaultTypefaceCollection == null) { throw new IllegalStateException("Default typeface collection not initialized. Forgot to call init()?"); } return typeface(context.getString(strResId),sDefaultTypefaceCollection,Typeface.NORMAL); }
Return spannable string with default typeface style (style: Typeface.NORMAL) see: http://stackoverflow.com/questions/8607707/how-to-set-a-custom-font-in-the-actionbar-title
@Override public void onAccept(){ }
onAccept called on connection accept.
public int findReferencePosition(int offset,boolean danglingElse,boolean matchBrace,boolean matchParen,boolean matchCase,boolean throwsClause){ fIndent=0; fAlign=JavaHeuristicScanner.NOT_FOUND; fPosition=offset; if (matchBrace) { if (skipScope(Symbols.TokenLBRACE,Symbols.TokenRBRACE)) { try { ...
Returns the reference position regarding to indentation for <code>position</code>, or <code>NOT_FOUND</code>.<code>fIndent</code> will contain the relative indentation (in indentation units, not characters) after the call. If there is a special alignment (e.g. for a method declaration where parameters should be aligned...
public boolean isDrawerOpen(){ return mDrawerLayout != null && mDrawerLayout.isDrawerOpen(GravityCompat.START); }
checks if the drawer exists and is opened.
public Builder withOpenSettingsButton(@StringRes int buttonTextResourceId){ return withOpenSettingsButton(rootView.getContext().getString(buttonTextResourceId)); }
Adds a button that opens the application settings when clicked
public static boolean withinGetter(Tree.Declaration decl){ return withinGetter(decl.getDeclarationModel()); }
Determines whether the declaration's containing scope is a getter
public Translation translate(Sentence sentence){ LOG.info("Input {}: {}",sentence.id(),sentence.fullSource()); if (sentence.target() != null) LOG.info("Input {}: Constraining to target sentence '{}'",sentence.id(),sentence.target()); if (sentence.isEmpty()) { LOG.info("Translation {}: Translation took 0 sec...
Translate a sentence.
public <T extends Fragment>T into(T fragment){ fragment.setArguments(get()); return fragment; }
Set the argument of Fragment.
protected void addIntermediateNode(BTreeNode curNode,List<BTreeNode[]> childNodeGroups,BTreeNode[] currentGroup,List<List<IndexKey>> interNSKeyList,int numberOfInternalNode){ int groupCounter; int remainder; int nHigh=numberOfInternalNode; boolean bRootBuilt=false; remainder=nLeaf % (maxNumberOfEntriesInNonLe...
Below method is to build the intermediate node of the btree
public void updateClusterGroupsFromGossiper(){ for ( Entry<InetAddress,EndpointState> entry : Gossiper.instance.getEndpointStates()) { DiscoveryNodeStatus status=(entry.getValue().isAlive()) ? DiscoveryNode.DiscoveryNodeStatus.ALIVE : DiscoveryNode.DiscoveryNodeStatus.DEAD; if (DatabaseDescriptor.getEndpoint...
Update cluster group members from cassandra topology (should only be triggered by IEndpointStateChangeSubscriber events). This should trigger re-sharding of index for new nodes (when token distribution change).
@Override public boolean updatesAreDetected(int type){ debugCodeCall("updatesAreDetected",type); return false; }
Returns whether updates are detected.
protected int findAndEliminateRedundant(int start,int firstOccuranceIndex,ExpressionOwner firstOccuranceOwner,ElemTemplateElement psuedoVarRecipient,Vector paths) throws org.w3c.dom.DOMException { MultistepExprHolder head=null; MultistepExprHolder tail=null; int numPathsFound=0; int n=paths.size(); Expression...
Look through the vector from start point, looking for redundant occurances. When one or more are found, create a psuedo variable declaration, insert it into the stylesheet, and replace the occurance with a reference to the psuedo variable. When a redundent variable is found, it's slot in the vector will be replaced...
private synchronized void rebuildJournal() throws IOException { if (journalWriter != null) { journalWriter.close(); } Writer writer=new BufferedWriter(new FileWriter(journalFileTmp),IO_BUFFER_SIZE); writer.write(MAGIC); writer.write("\n"); writer.write(VERSION_1); writer.write("\n"); writer.write(In...
Creates a new journal that omits redundant information. This replaces the current journal if it exists.
static void testAccess1(ClassLoader loader){ Class altClass; try { altClass=loader.loadClass("Inaccessible1"); } catch ( ClassNotFoundException cnfe) { System.err.println("loadClass failed"); cnfe.printStackTrace(); return; } Object obj; try { obj=altClass.newInstance(); System.err...
See if we can load a class that isn't public to us. We should be able to load it but not instantiate it.
public SignatureVisitor visitReturnType(){ return this; }
Visits the return type of the method.
public static _Fields findByName(String name){ return byName.get(name); }
Find the _Fields constant that matches name, or null if its not found.
public static double incompleteBeta(double aa,double bb,double xx){ double a, b, t, x, xc, w, y; boolean flag; if (aa <= 0.0 || bb <= 0.0) throw new ArithmeticException("ibeta: Domain error!"); if ((xx <= 0.0) || (xx >= 1.0)) { if (xx == 0.0) return 0.0; if (xx == 1.0) return 1.0; throw ne...
Returns the Incomplete Beta Function evaluated from zero to <tt>xx</tt>.
public void finer(String msg){ log(Level.FINER,msg); }
Log a FINER message. <p> If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered output Handler objects. <p>
public LinkedList(){ }
Constructs an empty list.
public SkinFileChooserUI(JFileChooser filechooser){ super(filechooser); }
Creates the UI delegate for the specified file chooser.
public synchronized void resetAddressItemList(){ addressItemList=null; }
Resets a to-many relationship, making the next get call to query for a fresh result.
private void loadMap(String extension,String mimeType){ if (!mimeTypeToExtensionMap.containsKey(mimeType)) { mimeTypeToExtensionMap.put(mimeType,extension); } extensionToMimeTypeMap.put(extension,mimeType); if (isImageType(mimeType)) { imageMimeTypeSet.add(mimeType); } }
Load an entry into the map.
static String instructionToString(IR ir,Instruction instr){ StringBuilder sb=new StringBuilder(); sb.append(instr.getBytecodeIndex()).append("\t").append(instr.isPEI() ? "E" : " ").append(instr.isGCPoint() ? "G " : " "); if (instr.operator() == LABEL) { sb.append("LABEL").append(Label.getBlock(instr).block.g...
Converts instruction to String in of AnnotatedLSTNode format.
protected void createChildrenLazily(SourcePrinter out,WidgetCreatorContext context){ out.println(context.getWidget() + ".addAttachHandler(new " + Handler.class.getCanonicalName()+ "(){"); out.println("private boolean childrenCreated = false;"); out.println("public void onAttachOrDetach(" + AttachEvent.class.getCa...
Create the children widgets lazily. It means, only process the HTML panel children creation when the panel is attached to DOM. This strategy is less secure, but faster, that eager loading strategy.
static <E>ImmutableList<E> asImmutableList(Object[] elements,int length){ switch (length) { case 0: return of(); case 1: @SuppressWarnings("unchecked") ImmutableList<E> list=new SingletonImmutableList<E>((E)elements[0]); return list; default : if (length < elements.length) { elements=arraysCopyOf(elements,length)...
Views the array as an immutable list. Copies if the specified range does not cover the complete array. Does not check for nulls.
protected void checkIndex(int index){ if (index < 0 || index >= size) throw new IndexOutOfBoundsException("Attempted to access " + toStringShort() + " at index="+ index); }
Sanity check for operations requiring an index to be within bounds.
@Override public boolean equals(Object o){ if (o instanceof ChannelInfo) { ChannelInfo other=(ChannelInfo)o; if (this.channelId != null) { if (this.channelId.equals(other.channelId)) return true; } else if (this.channelName != null && this.channelNumber != null) { return this.channe...
Compares two ChannelInfo objects.
public Editor edit() throws IOException { return DiskLruCache.this.edit(key,sequenceNumber); }
Returns an editor for this snapshot's entry, or null if either the entry has changed since this snapshot was created or if another edit is in progress.
private View findChildUnder(float x,float y){ return findChildUnder(this,x,y); }
Note: this method doesn't take Z into account for overlapping views since it is only used in contexts where this doesn't affect the outcome.
public QRBase(){ }
Creates a query base object with nothing set.
private static byte[] encode3to4(byte[] b4,byte[] threeBytes,int numSigBytes,int options){ encode3to4(threeBytes,0,numSigBytes,b4,0,options); return b4; }
Encodes up to the first three bytes of array <var>threeBytes</var> and returns a four-byte array in Base64 notation. The actual number of significant bytes in your array is given by <var>numSigBytes</var>. The array <var>threeBytes</var> needs only be as big as <var>numSigBytes</var>. Code can reuse a byte array by pas...
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:32:24.646 -0500",hash_original_method="439F40B8AE0DFA06D4CE3EB843023A82",hash_generated_method="EAF5CD1C7D4E570AFF0CBE3F9A1D9217") public void switchToHeader(Header header){ if (mCurHeader == header) { getFragmentManager().popBac...
When in two-pane mode, switch to the fragment pane to show the given preference fragment.
protected boolean isOnlyReceipt(){ super.setIsOnlyReceipt(pickcombo.getSelectedIndex() == 2); return super.isOnlyReceipt(); }
Determines whether the Delivery Rule is set to 'OnlyReciept'
public SuggestRequest routing(String... routings){ this.routing=Strings.arrayToCommaDelimitedString(routings); return this; }
The routing values to control the shards that the search will be executed on.
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.
@Override public void createFieldEditors(){ Composite fep=getFieldEditorParent(); addField(new BooleanFieldEditor(PreferenceConstants.CRYPTO_VERINICE_SSL_SECURITY_ENABLED,Messages.getString("CryptoPreferencePage.0"),fep)); addField(new BooleanFieldEditor(PreferenceConstants.CRYPTO_SERVER_AUTHENTICATION_VIA_CERTIF...
Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences. Each field editor knows how to save and restore itself.
public void updateItem(int identifier){ if (mDrawer != null && mDrawerAdapter != null && mDrawerAdapter.getDrawerItems() != null && identifier != -1) { IDrawerItem drawerItem=mDrawer.getDrawerItem(identifier); for (int i=0; i < mDrawerAdapter.getDrawerItems().size(); i++) { if (mDrawerAdapter.getDrawerI...
update a MiniDrawerItem (after updating the main Drawer) via its identifier
public boolean equals(Object obj){ if (this == obj) return true; if (!(obj instanceof RFC822Name)) return false; RFC822Name other=(RFC822Name)obj; return name.equalsIgnoreCase(other.name); }
Compares this name with another, for equality.
public static int compare(String id1,String id2){ int result=-1; String seed1=IdGenerator.getSeedFromId(id1); String seed2=IdGenerator.getSeedFromId(id2); if (seed1 != null && seed2 != null) { result=seed1.compareTo(seed2); if (result == 0) { long count1=IdGenerator.getSequenceFromId(id1); l...
Does a proper compare on the Id's
public boolean isPublic(){ return Modifier.isPublic(_method.getModifiers()); }
Returns true for a public method.
private void cmd_history(){ log.info(""); if (m_mWorkbench.getMWindow(getWindowIndex()).isTransaction()) { if (m_curTab.needSave(true,true) && !cmd_save(false)) return; Point pt=new Point(0,aHistory.getButton().getBounds().height); SwingUtilities.convertPointToScreen(pt,aHistory.getButton()); VO...
Toggle History
final String[] tokenize(String cmdLine){ cmdLine=cmdLine.trim(); return cmdLine.split("\\s+"); }
Convert a string to tokens by splitting at whitespace characters.
public boolean hasAttributes(){ return this.hasAttributes; }
Returns true if someone explicitly added region attributes to this region.
public Drawer buildView(){ mSliderLayout=(ScrimInsetsRelativeLayout)mActivity.getLayoutInflater().inflate(R.layout.material_drawer_slider,mDrawerLayout,false); mSliderLayout.setBackgroundColor(UIUtils.getThemeColorFromAttrOrRes(mActivity,R.attr.material_drawer_background,R.color.material_drawer_background)); Draw...
build the drawers content only. This will still return a Result object, but only with the content set. No inflating of a DrawerLayout.
private List<CompletionProposal> jsToList(List<AngularJSCompletionProposal> autocompletions,InvocationContext context){ final List<CompletionProposal> proposals=new ArrayList<>(); if (autocompletions != null) { for ( AngularJSCompletionProposal proposal : autocompletions) { proposals.add(proposal); ...
Convert Javascript array and apply invocation context
public String[] validBaudRates(){ return new String[]{"57,600 baud"}; }
Get an array of valid baud rates.
public ValidationWarnings validate(VCardVersion version){ ValidationWarnings warnings=new ValidationWarnings(); if (getStructuredName() == null && (version == VCardVersion.V2_1 || version == VCardVersion.V3_0)) { warnings.add(null,new Warning(0)); } if (getFormattedName() == null && (version == VCardVersion...
Checks this vCard for data consistency problems or deviations from the spec. These problems will not prevent the vCard from being written to a data stream, but may prevent it from being parsed correctly by the consuming application. These problems can largely be avoided by reading the Javadocs of the property classes, ...
@Override public boolean isClosed(){ return getDelegate().isClosed(); }
Returns true if the stream is closed.
@Override public boolean spawnPig(World world,double x,double y,double z){ final EntityPig pig=new EntityPig(world); pig.setPosition(x,y,z); return world.spawnEntityInWorld(pig); }
Spawn a pig at the specified position.
public boolean isBasic(){ return equals(basic()); }
Checks if this filter is a basic filter. A filter is basic, if it has no tag/likes or username-filter.
public ProjectComparisonEntry compareModules(TModule module,String implementationID){ return compareModules(module,implementationID,false); }
Get the comparison for a module in a specific implementation specified by it's ID.
private int handleW(String value,DoubleMetaphoneResult result,int index){ if (contains(value,index,2,"WR")) { result.append('R'); index+=2; } else { if (index == 0 && (isVowel(charAt(value,index + 1)) || contains(value,index,2,"WH"))) { if (isVowel(charAt(value,index + 1))) { result.appen...
Handles 'W' cases
public void createAccrualBasedJournalEntriesAndReversalsForLoan(final Office office,final String currencyCode,final Integer accountTypeToBeDebited,final Integer accountTypeToBeCredited,final Long loanProductId,final Long paymentTypeId,final Long loanId,final String transactionId,final Date transactionDate,final BigDeci...
Convenience method that creates a pair of related Debits and Credits for Accrual Based accounting. The target accounts for debits and credits are switched in case of a reversal
public ObjectName createDistributionLocator(String host,int port,String workingDirectory,String productDirectory) throws MalformedObjectNameException { return createDistributionLocator(host,port,workingDirectory,productDirectory,getRemoteCommand()); }
Creates a new DistributionLocator for this system and registers an MBean for managing it. <p> If the Locator already exists, then this will simply register an MBean for it.
@AfterClass public static void tearDownAfterClass() throws Exception { }
Method tearDownAfterClass.
public JSearchPanel(Visualization vis,String group,String searchGroup,String[] fields,boolean autoIndex,boolean monitorKeystrokes){ m_lock=vis; m_fields=fields; m_autoIndex=autoIndex; m_monitorKeys=monitorKeystrokes; TupleSet search=vis.getGroup(searchGroup); if (search != null) { if (search instanceof ...
Create a new JSearchPanel.
public static _Fields findByThriftId(int fieldId){ switch (fieldId) { case 1: return SESSION_IDS; case 2: return PACKET; default : return null; } }
Find the _Fields constant that matches fieldId, or null if its not found.