code
stringlengths
10
174k
nl
stringlengths
3
129k
public boolean has(String key){ return this.map.containsKey(key); }
Determine if the JSONObject contains a specific key.
public boolean isDisplayField(int aDFieldID){ if (!isUseASP()) return true; if (m_fieldAccess == null) { m_fieldAccess=new ArrayList<Integer>(11000); String sqlvalidate="SELECT AD_Field_ID " + " FROM AD_Field " + " WHERE ( AD_Field_ID IN ( "+ " SELECT f.AD_Field_ID "+ " FROM...
Define is a field is displayed based on ASP rules
public SpinnerNumberModel(double value,double minimum,double maximum,double stepSize){ this(new Double(value),new Double(minimum),new Double(maximum),new Double(stepSize)); }
Constructs a <code>SpinnerNumberModel</code> with the specified <code>value</code>, <code>minimum</code>/<code>maximum</code> bounds, and <code>stepSize</code>.
public int startPc(int nth){ ExceptionTableEntry e=(ExceptionTableEntry)entries.get(nth); return e.startPc; }
Returns <code>startPc</code> of the <i>n</i>-th entry.
public void startElement(String ns,String localName,String name,Attributes atts) throws org.xml.sax.SAXException { Element elem; if ((null == ns) || (ns.length() == 0)) elem=m_doc.createElementNS(null,name); else elem=m_doc.createElementNS(ns,name); append(elem); try { int nAtts=atts.getLength(); i...
Receive notification of the beginning of an element. <p>The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, bef...
public void run(){ int value=0; Integer pid; runDemo=true; log.info("ELM DEMO thread started"); while (runDemo) { try { handleTelegram(RSP_ID.MODEL.toString().toCharArray()); setStatus(STAT.ECU_DETECT); handleTelegram("SEARCHING...".toCharArray()); handleTelegram("7EA074100000000"....
run threaded loop to simulate incoming telegrams
public Source<Long> upTo(final long endExclusive){ return between(startInclusive,endExclusive - 1); }
Generates Longs within the interval specified with an inclusive lower bound and exclusive upper bound. The Source is weighted so it is likely to generate the upper and lower limits of the domain one or more times.
public static final void writeListXml(List val,OutputStream out) throws XmlPullParserException, java.io.IOException { XmlSerializer serializer=Xml.newSerializer(); serializer.setOutput(out,"utf-8"); serializer.startDocument(null,true); serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output...
Flatten a List into an output stream as XML. The list can later be read back with readListXml().
public ConnectorState currentState(int... partitions){ ConnectorState currentState=couchbaseReader.currentState(); if (partitions.length == 0) { return currentState; } ConnectorState state=new ConnectorState(); for ( int partition : partitions) { state.put(currentState.get((short)partition)); } r...
Initialize connector state for given partitions with current vbucketUUID and sequence number.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:57:16.008 -0500",hash_original_method="28936E7BC66C2ACF8A84332D0E4F56D6",hash_generated_method="A43046EEA3EDBAE0E71246E123FF2A01") public boolean isPeriodic(){ return period != 0; }
Returns true if this is a periodic (not a one-shot) action.
protected static double variance(double[] s,double[] sS,double[] sumOfWeights){ double var=0; for (int i=0; i < s.length; i++) { if (sumOfWeights[i] > 0) { var+=singleVariance(s[i],sS[i],sumOfWeights[i]); } } return var; }
Computes variance for subsets.
private boolean isUserSignedIn(RequestAndResponse requestAndResponse){ return isInSingleUserMode() || requestAndResponse.request.getSession().getAttribute(sessionUserIdAttribute) != null; }
Returns true if the user is signed in.
public <CTX>HtmlSanitizer.Policy build(HtmlStreamEventReceiver out,@Nullable HtmlChangeListener<? super CTX> listener,@Nullable CTX context){ return toFactory().apply(out,listener,context); }
Produces a policy based on the allow and disallow calls previously made.
@Override public boolean handleVoiceAction(Intent intent){ return false; }
Handles a voice action. Override if the implementation wishes to handle voice actions and return true if it has been or will be handled.
public final LC minWidth(String width){ setWidth(LayoutUtil.derive(getWidth(),ConstraintParser.parseUnitValue(width,true),null,null)); return this; }
The minimum width for the container. The value will override any value that is set on the container itself. <p> For a more thorough explanation of what this constraint does see the white paper or Cheat Sheet at www.migcontainers.com.
public ApiClient addDefaultHeader(String key,String value){ defaultHeaderMap.put(key,value); return this; }
Add a default header.
private void initProgressBar(){ mMax=100; mProgress=0; mSecondaryProgress=0; mIndeterminate=false; mOnlyIndeterminate=false; mDuration=4000; mBehavior=AlphaAnimation.RESTART; mMinWidth=24; mMaxWidth=48; mMinHeight=24; mMaxHeight=48; }
<p> Initialize the progress bar's default values: </p> <ul> <li>progress = 0</li> <li>max = 100</li> <li>animation duration = 4000 ms</li> <li>indeterminate = false</li> <li>behavior = repeat</li> </ul>
private Comparable<? super K> comparable(Object key) throws ClassCastException { if (key == null) throw new NullPointerException(); if (comparator != null) return new ComparableUsingComparator<K>((K)key,comparator); else return (Comparable<? super K>)key; }
If using comparator, return a ComparableUsingComparator, else cast key as Comparable, which may cause ClassCastException, which is propagated back to caller.
String encode(){ StringBuilder sbuf; sbuf=new StringBuilder(); sbuf.append(getHost()); sbuf.append('\n'); sbuf.append(getUser()); sbuf.append('\n'); sbuf.append(getPassword()); sbuf.append('\n'); sbuf.append(getPort()); sbuf.append('\n'); sbuf.append(true); return sbuf.toString(); }
Encode the login profile as a string.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:02:32.340 -0500",hash_original_method="08275C5AA7086D8C8C86CDE1903B0FA3",hash_generated_method="46EAB98AB1F752B052993E5E77B9B081") public Map<String,List<String>> toMultimap(){ Map<String,List<String>> result=new TreeMap<String,List<...
Returns an immutable map containing each field to its list of values. The status line is mapped to null.
final boolean isUnmatchedRequest(){ return !isData && item == null; }
Returns true if this is an unmatched request node.
public double computeLocalFromPreviousObservations(int val1,int val2) throws Exception { double logTerm=((double)jointCount[val1][val2]) / ((double)jCount[val2] * (double)iCount[val1]); logTerm*=(double)observations; double localMI=Math.log(logTerm) / log_2; return localMI; }
Computes local mutual information (or pointwise mutual information) for the given (single) specific values, using pdfs built up from observations previously sent in via the addObservations method.
public static List<String> readLines(Path self,String charset) throws IOException { return IOGroovyMethods.readLines(newReader(self,charset)); }
Reads the file into a list of Strings, with one item for each line.
private void checkToken(String token){ for (int i=0; i < token.length(); i++) { char ch=token.charAt(i); if (!TOKEN.get(ch)) { throw new IllegalArgumentException("Invalid token character '" + ch + "' in token \""+ token+ "\""); } } }
Checks the given token string for illegal characters, as defined in RFC 2616, section 2.2.
public void testAddOneDayOverDstForwardAdds24HoursAt0000(){ Calendar calendar=new GregorianCalendar(AMERICA_SAO_PAULO); calendar.set(2011,9,15,0,0); double hoursSinceEpoch=hoursSinceEpoch(calendar); calendar.add(Calendar.DATE,1); assertEquals(24.0,hoursSinceEpoch(calendar) - hoursSinceEpoch); assertCalendar...
At their daylight savings time switch, Sao Paulo changes from "00:00 GMT-3" to "01:00 GMT-2". When adding time across this boundary, drop an hour to keep the hour+minute constant unless that prevents the date field from being incremented. http://code.google.com/p/android/issues/detail?id=17502
public ByteRange(final long start,final long end,final long total){ this.start=start; this.end=end; length=end - start + 1; this.total=total; }
Construct a byte range.
public static String quoteIdentifier(String s){ int length=s.length(); StringBuilder buff=new StringBuilder(length + 2); buff.append('\"'); for (int i=0; i < length; i++) { char c=s.charAt(i); if (c == '"') { buff.append(c); } buff.append(c); } return buff.append('\"').toString(); }
Enclose a string with double quotes. A double quote inside the string is escaped using a double quote.
private DateTimePrinter requirePrinter(){ DateTimePrinter printer=iPrinter; if (printer == null) { throw new UnsupportedOperationException("Printing not supported"); } return printer; }
Checks whether printing is supported.
public static void createImpl(){ impl=new InterestListEndpointDUnitTest(); }
subclass support
@Override public void buildEvaluator(Instances data) throws Exception { getCapabilities().testWithFail(data); m_trainInstances=data; }
Initializes a OneRAttribute attribute evaluator. Discretizes all attributes that are numeric.
public static Vector3f cartesianToSpherical(Vector3f cartCoords,Vector3f store){ if (cartCoords.x == 0) { cartCoords.x=FastMath.FLT_EPSILON; } store.x=FastMath.sqrt((cartCoords.x * cartCoords.x) + (cartCoords.y * cartCoords.y) + (cartCoords.z * cartCoords.z)); store.y=FastMath.atan(cartCoords.z / cartCoords...
Converts a point from Cartesian coordinates (using positive Y as up) to Spherical and stores the results in the store var. (Radius, Azimuth, Polar)
public void reset(){ for ( final Counter counter : counters.values()) { counter.reset(); } }
Resets all counts to zero.
private List<String> splitArgs(String arguments){ List<String> retval=new ArrayList<String>(); arguments=arguments.trim(); boolean isWindows=System.getProperty("os.name").toLowerCase().startsWith("win"); boolean isMacOrUnix=!isWindows; int i=0; while (i < arguments.length()) { char ch=arguments.charAt(i...
This is annoying: We must duplicate the operating system's behavior with regard to splitting arguments.
public ResultVO validateWithRSASignCheck(BaseParam param,Logger logger) throws Exception { String clientId=SpringSecurityUtils.getCurrentClientId(); if (!signHelper.signCheck(getPublicKeyByClientId(clientId),param)) { return resultHelper.infoResp(logger,ErrorType.SYS0004,ErrorType.SYS0004.description()); } e...
Validate sign.
public void registerInput(String varName,JavaPairRDD<MatrixIndexes,MatrixBlock> rdd,long rlen,long clen,int brlen,int bclen,long nnz) throws DMLRuntimeException { if (rlen == -1 || clen == -1) { throw new DMLRuntimeException("The metadata is required in registerInput for binary format"); } MatrixCharacteristi...
Register binary blocked RDD with given dimensions, given block sizes and given nnz (preferred). <p> Marks the variable in the DML script as input variable. Note that this expects a "varName = read(...)" statement in the DML script which through non-MLContext invocation would have been created by reading a HDFS file.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case SGraphPackage.TRANSITION__TRIGGER: if (resolve) return getTrigger(); return basicGetTrigger(); case SGraphPackage.TRANSITION__EFFECT: if (resolve) return getEffect(); return basicGetEffect(); case SGraphPac...
<!-- begin-user-doc --> <!-- end-user-doc -->
public double weightedAreaUnderROC(){ return m_delegate.weightedAreaUnderROC(); }
Calculates the weighted (by class size) AUC.
static public void assertEquals(String message,Object expected,Object actual){ if (expected == null && actual == null) { return; } if (expected != null && expected.equals(actual)) { return; } failNotEquals(message,expected,actual); }
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
public AffineTransformation rotate(double sinTheta,double cosTheta){ compose(rotationInstance(sinTheta,cosTheta)); return this; }
Updates the value of this transformation to that of a rotation around the origin composed with the current value, with the sin and cos of the rotation angle specified directly.
public static boolean match(String patternText,ParseTreeNode specimen){ return match(patternText,specimen,makeBindings()); }
Match a quasiliteral pattern against a specimen.
public static <T,K,A,D>Flux<Tuple2<K,D>> grouped(Flux<T> flux,Function<? super T,? extends K> classifier){ return Flux.fromIterable(null); }
Classify a Flux by the supplied classifying function.
public void testMultipleTerms() throws Exception { query=new PhraseQuery(2,"field","one","three","five"); ScoreDoc[] hits=searcher.search(query,1000).scoreDocs; assertEquals("two total moves",1,hits.length); QueryUtils.check(random(),query,searcher); query=new PhraseQuery(5,"field","five","three","one"); hi...
slop is the total number of positional moves allowed to line up a phrase
protected void closingCancel(){ }
Handle a closing event under a CANCEL condition
public boolean isForce(){ return force; }
Gets the value of the force property.
private void hideOfflineMessage(){ if (webview != null) { webview.setVisibility(View.VISIBLE); } TextView offlineModeTv=(TextView)findViewById(R.id.offline_mode_message); if (offlineModeTv != null) { offlineModeTv.setVisibility(View.GONE); } }
This function hides the offline mode message
private static boolean isLocalUdpPortFree(int port){ boolean res=false; try { DatagramConnection conn=NetworkRessourceManager.createDatagramConnection(); conn.open(port); conn.close(); res=true; } catch ( IOException e) { res=false; } return res; }
Test if the given local UDP port is really free (not used by other applications)
boolean addSvfRestriction(OwlClass r){ return svfRestrictions.add(r); }
Add a someValuesFrom restriction on this class
private void addTable(MetaClass metaClass,MetaProperty childMeta){ MetaClass meta=childMeta.getRange().asClass(); if (!attrViewPermitted(metaClass,childMeta.getName()) || !entityOpPermitted(meta,EntityOp.READ)) { return; } if (isNew && childMeta.getType().equals(MetaProperty.Type.ASSOCIATION)) { return;...
Creates a table for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current one
protected String encodeBody(){ StringBuffer encoding=new StringBuffer(); if (uri != null) { encoding.append(LESS_THAN).append(uri.encode()).append(GREATER_THAN); } else if (string != null) { encoding.append(string); } if (!parameters.isEmpty()) { encoding.append(SEMICOLON).append(parameters.enc...
Return value encoding in canonical form.
public boolean isEmpty(){ return extOrdering.isEmpty(); }
Return true if there are no extension present in this generator.
protected String processPostRequest(HttpServletRequest request){ com.pearson.statsagg.webui.CreateNotificationGroup createNotificationGroup=new com.pearson.statsagg.webui.CreateNotificationGroup(); JsonObject suspensionJsonObject=Helper.getJsonObjectFromRequestBody(request); String result=createNotificationGroup....
Returns a string with success message if the notification group was successfully created, or an error message if the request fails to create the notification group.
public boolean isStateActive(State state){ switch (state) { case main_region_A: return stateVector[0] == State.main_region_A; case main_region_B: return stateVector[0] == State.main_region_B; default : return false; } }
Returns true if the given state is currently active otherwise false.
public java.sql.CallableStatement prepareCall(String sql,int resultSetType,int resultSetConcurrency) throws SQLException { checkClosed(); try { return CallableStatementWrapper.getInstance(this,this.pooledConnection,this.mc.prepareCall(sql,resultSetType,resultSetConcurrency)); } catch ( SQLException sqlExcep...
Passes call to method on physical connection instance. Notifies listeners of any caught exceptions before re-throwing to client.
public void put(String key,File file,String contentType) throws FileNotFoundException { if (key != null && file != null) { fileParams.put(key,new FileWrapper(file,contentType)); } }
Adds a file to the request.
public static void limpar(TextArea... no){ for ( TextArea campo : no) { campo.setText(""); } }
Limpar textos dos TextArea informado
private ArrayList readCredentials(String passwordFileName) throws IOException { final Properties pws=new Properties(); final ArrayList result=new ArrayList(); final File f=new File(passwordFileName); if (!f.exists()) return result; FileInputStream fin=new FileInputStream(passwordFileName); try { pws.l...
Parses the password file to read the credentials. Returns an ArrayList of arrays of 2 string: {<subject>, <password>}. If the password file does not exists, return an empty list. (File not found = empty file).
public void printHelp(){ HelpFormatter helpFormatter=new HelpFormatter(); helpFormatter.setSyntaxPrefix(Messages.SYNTAX_PREFIX); String newLine=helpFormatter.getNewLine(); String header=newLine + Messages.TAILOR_DESC + newLine+ newLine+ Messages.TAILOR_ARGS_INFO+ newLine+ newLine+ Messages.OPTIONS_PREFIX; hel...
Print usage message with flag descriptions to STDOUT.
public static List<Element> createDivTree(){ List<Element> divs=new ArrayList<Element>(); divs.add(createDiv(divs.size())); createDivTreeImpl(divs.get(0),0,divs); return divs; }
Creates a binary tree of divs with 4 levels. The ids of the divs are ("0", "1", ...), in that order for a pre-order traversal.
public void fireDataChangeEvent(int index,int type){ if (listeners == null || listeners.size() == 0) { return; } boolean isEdt=Display.getInstance().isEdt(); if (isEdt && listeners.size() == 1) { DataChangedListener a=(DataChangedListener)listeners.get(0); a.dataChanged(type,index); return; } ...
Fires the event safely on the EDT without risk of concurrency errors
DateTimePrintContext(TemporalAccessor temporal,DateTimeFormatter formatter){ super(); this.temporal=adjust(temporal,formatter); this.formatter=formatter; }
Creates a new instance of the context.
public String randomNegativeWhole(Object olength){ return "-" + randomPositiveWhole(olength); }
Get a random, negative whole number
public static IntsRef toIntsRef(BytesRef input,IntsRefBuilder scratch){ scratch.clear(); for (int i=0; i < input.length; i++) { scratch.append(input.bytes[i + input.offset] & 0xFF); } return scratch.get(); }
Just takes unsigned byte values from the BytesRef and converts into an IntsRef.
@Deprecated static public boolean isXMLID(String name){ int ln=name.length(); for (int i=0; i < ln; i++) { char c=name.charAt(i); if (i == 0 && (c == '-' || c == '.' || Character.isDigit(c))) { return false; } if (!Character.isLetterOrDigit(c) && c != '_' && c != '-' && c != '.') { if (c...
Used internally by the XML DOM wrapper to check if the subvariable name is just an element name, or a more complex XPath expression.
public void bulkLoad(DBIDs ids){ if (ids.size() == 0) { return; } assert (root == null) : "Tree already initialized."; DBIDIter it=ids.iter(); DBID first=DBIDUtil.deref(it); ModifiableDoubleDBIDList candidates=DBIDUtil.newDistanceDBIDList(ids.size() - 1); for (it.advance(); it.valid(); it.advance()) {...
Bulk-load the index.
private boolean startWorkflow(int AD_Workflow_ID){ log.fine(AD_Workflow_ID + " - " + m_pi); boolean started=false; if (DB.isRemoteProcess()) { log.info("trying to running on the server"); Server server=CConnection.get().getServer(); try { if (server != null) { log.info("running on the se...
Start Workflow.
public void putSharedPreference(String preferenceName,boolean val){ SharedPreferences pref=mContext.getSharedPreferences(preferenceName,0); SharedPreferences.Editor editor=pref.edit(); editor.clear(); editor.putBoolean(preferenceName,val); editor.apply(); }
Methods to SharedPreferences data
public static String remove(String seq,char toRemove){ StringBuilder sb=new StringBuilder(); for (int i=0; i < seq.length(); i++) { final char ch=seq.charAt(i); if (ch != toRemove) { sb.append(ch); } } return sb.toString(); }
Removes a character from a String.
@Override protected void initViews(Bundle savedInstanceState){ }
Initialize the view in the layout
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:02.912 -0500",hash_original_method="2FDA3671927B417EA64F28FFDD680773",hash_generated_method="4C5598F3753C2A0079DD4D0DD691D05A") public void removeComment(){ comment=null; }
remove comment field
public void disconnectNode(short nodeId){ synchronized (connections) { Short n=Short.valueOf(nodeId); MessageWindow mw=messageWindows.get(n); if (mw != null) { mw.lock.lock(); mw.disconnected=true; try { mw.full.signalAll(); messageWindows.remove(n); } finally { ...
Remove the connection from the connection registry and clean up any remaining shrapnel
public Disjunction(){ }
Ctor - for use to create an expression tree, without child expression. <p> Use add methods to add child expressions to acts upon.
public void openPopFile(){ try { this.editing=true; controller.openPopulationFile(); this.controller.getVisualizer().getPrimaryShapeRenderLayer().updatePixelCoordinates(true); updateMask(); this.controller.paintLayers(); } finally { this.editing=false; } }
Opens population file and updates table / shape files.
@SuppressWarnings("unchecked") private <T>T lookDependenciesAmongDependants(final DependencyQuery<T> query){ for (int i=dependants.size() - 1; i >= 0; i--) { final Object dependant=dependants.get(i); if (query.isMatchingType(dependant.getClass())) { dependants.remove(dependant); query.add((T)depen...
Checks it the requested dependency is one of the cached dependent instances.
public void mutableAdd(Vec x_t){ mutableAdd(1.0,x_t); }
Alters this point to contain the given input vector as well
public JUnitTestParsedChromosomeFactory(ChromosomeFactory<TestChromosome> defaultFactory){ this.defaultFactory=defaultFactory; if (userTests.isEmpty()) userTests.addAll(filter(readTestCases())); LoggingUtils.getEvoLogger().info("* Found " + userTests.size() + " relevant tests"); }
Attempt to read the test case
@Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); }
When creating, retrieve this instance's number from its arguments.
public void addEdgeConnector(){ numEdgeConnectors++; String name=""; boolean duplicate=true; while (duplicate) { name="EC" + numEdgeConnectors; if (finder.findPositionablePointByName(name) == null) { duplicate=false; } if (duplicate) { numEdgeConnectors++; } } PositionablePoi...
Add an Edge Connector point.
private static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException { int[] leftTopBlack=image.getTopLeftOnBit(); int[] rightBottomBlack=image.getBottomRightOnBit(); if (leftTopBlack == null || rightBottomBlack == null) { throw NotFoundException.getNotFoundInstance(); } int moduleSize=modul...
This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. This is a specialized method that works exceptionally fast in this special case.
public T caseNewTarget(NewTarget object){ return null; }
Returns the result of interpreting the object as an instance of '<em>New Target</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
void write(ByteCodeWriter out) throws IOException { out.write(ConstantPool.CP_METHOD_REF); out.writeShort(_classIndex); out.writeShort(_nameAndTypeIndex); }
Writes the contents of the pool entry.
public synchronized void start() throws IllegalStateException, IOException { configure(); if (!mStreaming) { super.start(); } }
Starts the stream.
public ComplexFIRFilter(float[] coefficients,float gain){ mIFilter=new RealFIRFilter(coefficients,gain); mQFilter=new RealFIRFilter(coefficients,gain); }
Complex FIR Filter for processing complex sample pairs. Wraps two real FIR filters for processing each of the inphase and quadrature samples.
public void onResume(){ if (mInitializationComplete) { mActivityDelegate.onResumeWithNative(); } else { mOnResumePending=true; } }
Called when an activity gets an onResume call and is done with java only tasks.
public SheetEvent(JSheet source,JOptionPane optionPane,int option,@Nullable Object value,@Nullable Object inputValue){ super(source); this.pane=optionPane; this.option=option; this.value=value; this.inputValue=inputValue; }
Creates a new instance.
public boolean isTimeIncluded(long timeStamp){ if (timeStamp <= 0) { throw new IllegalArgumentException("timeStamp must be greater 0"); } if (baseCalendar != null) { if (baseCalendar.isTimeIncluded(timeStamp) == false) { return false; } } return true; }
<p> Check if date/time represented by timeStamp is included. If included return true. The implementation of BaseCalendar simply calls the base calendars isTimeIncluded() method if base calendar is set. </p>
public ArmInstruction(ArmInstructionSet.InstructionFormat instructionFormat,String name,String displayFormat,String action,FlowType flowType,boolean isConditional,SimulationCode simulationCode){ super(name,displayFormat,null,null,action,flowType,isConditional,DelaySlotType.NONE,simulationCode); this.instructionForm...
Creates a new FrInstruction
protected synchronized void removeProjectionListener(ProjectionListener l){ projectionSupport.remove(l); }
Remove a ProjectionListener from this menu and its components.
public InlineQueryResultCachedVideoBuilder replyMarkup(InlineReplyMarkup replyMarkup){ this.reply_markup=replyMarkup; return this; }
*Optional Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
public static long generate(String value){ int len=value.length(); long crc=0; for (int i=0; i < len; i++) crc=next(crc,value.charAt(i)); return crc; }
Calculates CRC from a string.
public void testWeightedTerm() throws Exception { Map<String,Float> weights=new LinkedHashMap<>(); weights.put("field0",5f); weights.put("field1",10f); BooleanQuery.Builder expected=new BooleanQuery.Builder(); Query field0=new TermQuery(new Term("field0","foo")); field0=new BoostQuery(field0,5f); expected...
test a term with field weights
public boolean isMinYSet(int scale){ return mMinY[scale] != MathHelper.NULL_VALUE; }
Returns if the minimum Y value was set.
ActiveStack(){ myStack=new Stack<String>(); myPersistentStack=new Stack<String>(); }
Creates enabled window stack.
public boolean isPseudoInstanceOf(String pseudoClass){ if (pseudoClass.equals("first-child")) { Node n=getPreviousSibling(); while (n != null && n.getNodeType() != ELEMENT_NODE) { n=n.getPreviousSibling(); } return n == null; } return false; }
Tells whether this element is an instance of the given pseudo class.
public Member(String id,Address address,Map<String,String> metadata){ checkArgument(id != null); checkArgument(address != null); this.id=id; this.address=address; this.metadata=metadata != null ? new HashMap<>(metadata) : Collections.emptyMap(); }
Create instance of cluster member with given parameters.
public static boolean isAnyVariable(String key){ if (StringUtils.isBlank(key)) { return false; } if (key.charAt(0) == identifierChar) { return true; } if (key.indexOf("#{") == 0 && key.indexOf("}") == key.length() - 1) { return true; } return false; }
Is this formatted as a variable
public LdapConfigVO(){ super(); this.map=new HashMap(); }
Contructor por defecto
@Override public void changeJavaVersion(Application application,String javaVersion) throws CheckException, ServiceException { logger.info("Starting changing to java version " + javaVersion + ", the application "+ application.getName()); try { } catch ( Exception e) { throw new ServiceException(application +...
Change the version of the jvm
private String buildMetroProintPlacementStatusString(){ StringBuffer placementStatusBuf=new StringBuffer(); if (placementStatus != null) { placementStatusBuf.append(String.format("%nPrimary Cluster")); placementStatusBuf.append(placementStatus.toString(dbClient)); } if (secondaryPlacementStatus != null)...
Builds the PlacementStatus string for MetroPoint. Includes the primary and secondary PlacementStatus objects.
protected static void registerJdbcType(int typeCode,String typeName,JdbcTypeCategoryEnum category){ Integer typeId=new Integer(typeCode); _typeNameToTypeCode.put(typeName.toUpperCase(),typeId); _typeCodeToTypeName.put(typeId,typeName.toUpperCase()); Set<Integer> typesInCategory=_typesPerCategory.get(category); ...
Registers a jdbc type.
private Collator createFromLocale(String localeID){ return Collator.getInstance(new ULocale(localeID)); }
Create a locale from localeID. Then return the appropriate collator for the locale.