code
stringlengths
10
174k
nl
stringlengths
3
129k
public static BigDecimal convert(Properties ctx,BigDecimal Amt,int CurFrom_ID,int CurTo_ID,Timestamp ConvDate,int C_ConversionType_ID,int AD_Client_ID,int AD_Org_ID){ if (Amt == null) throw new IllegalArgumentException("Required parameter missing - Amt"); if (CurFrom_ID == CurTo_ID || Amt.compareTo(Env.ZERO) == 0...
Convert an amount
@Override public void flush(){ }
Calling this method has no effect.
public void addCharset(int fromChar,int count){ addCharset(defaultFace,fromChar,count); }
Adds supported characters in the specified range from the default font face.
public String toString(int recursionLevel){ return toString("",recursionLevel); }
Return a textual description of this node for a given recursion level.
public void put(Buffer buffer){ activeAssembler=getAssembler(buffer.getTimestamp()); assemblers[activeAssembler].put(buffer); }
Add the buffer (which contains a fragment) to the right assembler.
public boolean isIntermedietDeliveryNotification(){ return isIntermedietDeliveryNotification(esmClass); }
Message Type.
@Deprecated public Experiment(InputStream in) throws IOException, XMLException { super(in); }
Reads an experiment configuration from the given file.
private void parse(byte[] program) throws ScriptException { chunks=new ArrayList<ScriptChunk>(5); ByteArrayInputStream bis=new ByteArrayInputStream(program); int initialSize=bis.available(); while (bis.available() > 0) { int startLocationInProgram=initialSize - bis.available(); int opcode=bis.read(); ...
<p>To run a script, first we parse it which breaks it up into chunks representing pushes of data or logical opcodes. Then we can run the parsed chunks.</p> <p>The reason for this split, instead of just interpreting directly, is to make it easier to reach into a programs structure and pull out bits of data without havin...
public final boolean changeWeightOfStrategy(final PlanStrategy strategy,final double newWeight,final Id<Population> populationId){ int idx=this.strategies.get(populationId).indexOf(strategy); if (idx != -1) { double oldWeight=this.weights.get(populationId).set(idx,Double.valueOf(newWeight)).doubleValue(); t...
changes the weight of the specified strategy
ForStatement(AST ast){ super(ast); }
Creates a new AST node for a for statement owned by the given AST. By default, there are no initializers, no condition expression, no updaters, and the body is an empty block.
public ModelStore(ModelStoreConfig config){ presentationModels=new HashMap<String,P>(config.getPmCapacity()); modelsPerType=new HashMap<String,List<P>>(config.getTypeCapacity()); attributesPerId=new HashMap<String,A>(config.getAttributeCapacity()); attributesPerQualifier=new HashMap<String,List<A>>(config.getQu...
Constructs a model store using the supplied configuration to specify default capacities.
private DiffIt(){ }
no instantiation
public void resumeScroll(){ if (mStopped) { mHandler.removeCallbacks(mScrollRunnable); mHandler.postDelayed(mScrollRunnable,mScrollPeriod); } }
Resume Scroll
public void showMigrationCling(){ mLauncher.hideWorkspaceSearchAndHotseat(); ViewGroup root=(ViewGroup)mLauncher.findViewById(R.id.launcher); View inflated=mInflater.inflate(R.layout.migration_cling,root); inflated.findViewById(R.id.cling_dismiss_migration_copy_apps).setOnClickListener(this); inflated.findVie...
Shows the migration cling. This flow is mutually exclusive with showFirstRunCling, and only runs if this Launcher package was not preinstalled and there exists a db to migrate from.
public static Vector3D transformDirectionless(Vector3D vector,RealMatrix m){ double x, y, z; x=m.getEntry(0,0) * vector.getX() + m.getEntry(1,0) * vector.getY() + m.getEntry(2,0) * vector.getZ(); y=m.getEntry(0,1) * vector.getX() + m.getEntry(1,1) * vector.getY() + m.getEntry(2,1) * vector.getZ(); z=m.getEntry(...
Transform vector by this matrix.
protected void readVehicles(String vehicleFile){ log.info(" Read vehicles..."); try { BufferedReader readsLines=new BufferedReader(new FileReader(vehicleFile)); readsLines.readLine(); readsLines.readLine(); String newLine=readsLines.readLine(); while (newLine != null) { String[] newType=n...
Reads all the vehicle types from the file specified.
public static int putLong(ByteBuffer buf,int offset,long val){ if (littleEndian) { val=Long.reverseBytes(val); } if (buf.isDirect()) { theUnsafe.putLong(((DirectBuffer)buf).address() + offset,val); } else { theUnsafe.putLong(buf.array(),BYTE_ARRAY_BASE_OFFSET + buf.arrayOffset() + offset,val); } ...
Put a long value out to the specified BB position in big-endian format.
public static void hideToast(){ if (mTN == null) { return; } try { Method method=mTN.getClass().getDeclaredMethod("hide",new Class<?>[0]); method.invoke(mTN,new Object[]{}); mTN=null; } catch ( NoSuchMethodException e) { e.printStackTrace(); } catch ( IllegalArgumentException e) { e...
Hide toast, only used after showToast(context, msg), hide the toast of having shown.
public boolean showDialog(){ setVisible(true); return continueQueue; }
Shows the dialog and returns whether the work on the queue should be continued.
public Vector3 add(Vector3 vector){ return this.add(vector.x,vector.y,vector.z); }
Adds the given vector to this vector
@Override public Object clone(){ return null; }
Overrides Cloneable.
protected AcceptWorker(){ super(igfsCtx.kernalContext().gridName(),"igfs-accept-worker",IgfsServer.this.log); }
Creates accept worker.
@Override public void run(){ amIActive=true; if (args.length < 2) { showFeedback("Plugin parameters have not been set properly."); return; } String inputHeader=args[0]; String outputHeader=args[1]; if ((inputHeader == null) || (outputHeader == null)) { showFeedback("One or more of the input para...
Used to execute this plugin tool.
public BasicTree(){ }
Create an empty tree.
public boolean isFillRows(){ return fillRows; }
Indicates whether the layout manager should try to fill up the available space in the row
private static void unregisterAllSerializers(){ DistributedTestUtils.unregisterAllDataSerializersFromAllVms(); }
Unregisters all of the <code>DataSerializer</code>s and <code>Instantiators</code> in all of the VMs in the distributed system.
public MyFunctionExecutionException(Throwable cause){ super(cause); }
Creates new exception given Throwable as a cause and source of error message.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:52.551 -0400",hash_original_method="4BA394E13A782A88CA2C4709DA19FD56",hash_generated_method="0F91443D3028D068758F69EFC3E34AE0") public Tailer(File file,TailerListener listener,long delayMillis,boolean end,boolean reOpen,int bufSize)...
Creates a Tailer for the given file, with a specified buffer size.
@Override protected EClass eStaticClass(){ return N4JSPackage.Literals.ABSTRACT_ANNOTATION_LIST; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static double[] normalise(double[] initProbs){ for (int i=0; i < initProbs.length; i++) { if (initProbs[i] < 0) { initProbs[i]=0.0; } } double sum=0.0; for ( double prob : initProbs) { sum+=prob; } double[] result=new double[initProbs.length]; if (sum > 0.001) { for (int i=0;...
Normalises the double array (ensuring that the sum is equal to 1.0).
public void shutdown(){ httpConnection.close(); }
since 3.1
private void returnData(Object ret){ if (myHost != null) { myHost.returnData(ret); } }
Used to communicate a return object from a plugin tool to the main Whitebox user-interface.
public E peek(){ if (isEmpty()) { return null; } return elements[0]; }
Gets but does not remove the head of the queue.
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { String path=""; String school=(String)request.getSession().getAttribute("school"); if (school == null || "".equals(school)) { response.sendRedirect("../index.jsp"); return; } int userid=0;...
The doGet method of the servlet. <br> This method is called when a form has its tag value method equals to get.
public static CtMethod make(int modifiers,CtClass returnType,String mname,CtClass[] parameters,CtClass[] exceptions,String body,CtClass declaring) throws CannotCompileException { try { CtMethod cm=new CtMethod(returnType,mname,parameters,declaring); cm.setModifiers(modifiers); cm.setExceptionTypes(excepti...
Creates a method. <code>modifiers</code> can contain <code>Modifier.STATIC</code>.
private int dimension(Geometry geom){ if (outputDimension != OraGeom.NULL_DIMENSION) return outputDimension; int d=Double.isNaN(geom.getCoordinate().z) ? 2 : 3; return d; }
Return dimension of output coordinates (either 2,3 or 4), respecting the explicit output dimension (if any).
private static void registerComponent(final Class<? extends WorkspaceComponent> component,final Class<? extends GuiComponent<?>> gui){ wrappers.put(component,gui); }
Registers a gui wrapper class association with a component class.
public static void main(String[] args) throws Exception { if (args.length == 0) { args=new String[2]; Scanner sc=new Scanner(System.in); System.out.print("NCOL from file:"); args[0]=sc.nextLine(); System.out.print("GML to file:"); args[1]=sc.nextLine(); sc.close(); } Scanner sc=new Sca...
In: File args[0] Out: File args[1]
private void initialize(){ this.setName(NAME); this.setOrder(EXTENSION_ORDER); }
Initialize the extension.
private String createDigestResponse(byte[] challenge) throws SaslException { char[] response; StringBuffer digestResponse=new StringBuffer(512); int realmSize; m_dc=new DigestChallenge(challenge); m_digestURI=m_protocol + "/" + m_serverName; if ((m_dc.getQop() & DigestChallenge.QOP_AUTH) == DigestChallenge....
Creates the intial response to be sent to the server.
static void put(final AnnotationWriter[] panns,final int off,final ByteVector out){ int size=1 + 2 * (panns.length - off); for (int i=off; i < panns.length; ++i) { size+=panns[i] == null ? 0 : panns[i].getSize(); } out.putInt(size).putByte(panns.length - off); for (int i=off; i < panns.length; ++i) { ...
Puts the given annotation lists into the given byte vector.
public static IXMLParser createDefaultXMLParser(IXMLBuilder builder) throws ClassNotFoundException, InstantiationException, IllegalAccessException { String className=XMLParserFactory.DEFAULT_CLASS; try { className=System.getProperty(XMLParserFactory.CLASS_KEY,XMLParserFactory.DEFAULT_CLASS); } catch ( Acces...
Creates a default parser.
public static void testWithoutFrame() throws Exception { System.out.println("Run without owner Frame"); doTest(false); }
Test WINDOW_CLOSED event received by a dialog that don't have a owner window.
public static long locationAtIndex(GeoTimeSerie gts,int idx){ if (null == gts.locations || idx >= gts.values) { return GeoTimeSerie.NO_LOCATION; } else { return gts.locations[idx]; } }
Return the location in a GeoTimeSerie at a given index
public static _Fields findByName(String name){ return byName.get(name); }
Find the _Fields constant that matches name, or null if its not found.
private void clearNotification(){ Log.d(LOG_TAG,"clearNotification " + mNotificationSessionId + " - "+ mNotificationRoomId+ " - "+ mNotificationEventId); NotificationManager nm=(NotificationManager)EventStreamService.this.getSystemService(Context.NOTIFICATION_SERVICE); nm.cancelAll(); mNotificationSessionId=nul...
Clear any displayed notification.
public void dispose(){ Container cp=getContentPane(); for (int i=0; i < cp.getComponentCount(); i++) { cp.getComponent(i).removeMouseListener(tipListener); } ft.removeListeners(); super.dispose(); }
Disposes of this window.
public PrintColorUIResource(int rgb,Color printColor){ super(rgb); this.printColor=printColor; }
Construct an instance for the given RGB value and alternate color to use during printing.
public KNeighborhoodFilter(Set<V> rootNodes,int radiusK,EdgeType edgeType){ this.rootNodes=rootNodes; this.radiusK=radiusK; this.edgeType=edgeType; }
Constructs a new instance of the filter.
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.
protected void selectVerticalAutoTickUnit(Graphics2D g2,Rectangle2D drawArea,Rectangle2D dataArea,RectangleEdge edge){ double tickLabelWidth=estimateMaximumTickLabelWidth(g2,getTickUnit()); double n=getRange().getLength() * tickLabelWidth / dataArea.getHeight(); setTickUnit((NumberTickUnit)getStandardTickUnits()....
Selects a tick unit when the axis is displayed vertically.
public void backup(int amount){ inBuf+=amount; if ((bufpos-=amount) < 0) bufpos+=bufsize; }
Backup a number of characters.
public CProjectContainer(final IDatabase database,final INaviProject project,final INaviAddressSpace addressSpace){ m_database=Preconditions.checkNotNull(database,"IE01788: database argument can not be null"); m_project=Preconditions.checkNotNull(project,"IE01789: project argument can not be null"); m_addressSpac...
Creates a new project container object.
private final void addPawnMoves(ArrayList<Move> moveList,int sq0,int sq1){ if (sq1 >= 56) { moveList.add(getMoveObj(sq0,sq1,Piece.WQUEEN)); moveList.add(getMoveObj(sq0,sq1,Piece.WKNIGHT)); moveList.add(getMoveObj(sq0,sq1,Piece.WROOK)); moveList.add(getMoveObj(sq0,sq1,Piece.WBISHOP)); } else if (s...
Generate all possible pawn moves from (x0,y0) to (x1,y1), taking pawn promotions into account.
protected void updateStaticAccounts(){ setStaticAccounts(computeStaticAccounts()); }
Updates the staticAccounts.
void calculatePositionOffset(int size){ if (size % 2 == 0) drawingOffset=size * barWidth / 2 + (size - 1) * (style.setSpacing / 2); else drawingOffset=size * barWidth / 2 + ((size - 1) / 2) * style.setSpacing; }
Having calculated previously the barWidth gives the offset to know where to start drawing the first bar of each group.
private void moveToLicenses(){ Intent intent=new Intent(this,LocalWebActivity.class); intent.putExtra(LocalWebActivity.EXTRA_HTML_URI,"html/licenses.html"); startActivity(intent); }
go to the licenses section
public synchronized boolean isEmpty(){ return count == 0; }
Returns <tt>true</tt> if this map contains no key-value mappings.
public VelocityEditorActionContributor(){ createActions(); }
Defines the menu actions and their action handlers.
public String ignoreCaseForNamesTipText(){ return "Ignore case when matching attribute names and nomina values."; }
Returns the tip text for this property
public ContractLite findByContractId(Integer id){ try { EntityManager entityManager=EntityManagerHelper.getEntityManager(); entityManager.getTransaction().begin(); ContractLite instance=entityManager.find(ContractLite.class,id); entityManager.getTransaction().commit(); return instance; } catch ...
Method findByContractId.
public static NV[] concat(final NV[] a,final NV[] b){ if (a == null && b == null) return a; if (a == null) return b; if (b == null) return a; final NV[] c=new NV[a.length + b.length]; System.arraycopy(a,0,c,0,a.length); System.arraycopy(b,0,c,a.length,b.length); return c; }
Combines the two arrays, appending the contents of the 2nd array to the contents of the first array.
public void validateVarEntryId(SnmpOid rowOid,long var,Object data) throws SnmpStatusException { node.validateVarId(var,data); }
check that the given "var" identifies a columnar object.
protected static void calculateSelectivityCoeffs(List<DoubleObjPair<DAFile>> daFiles,NumberVector query,double epsilon){ final int dimensions=query.getDimensionality(); double[] lowerVals=new double[dimensions]; double[] upperVals=new double[dimensions]; VectorApproximation queryApprox=calculatePartialApproxima...
Calculate selectivity coefficients.
public byte[] readBytes(int howmany,boolean allowless) throws EOFException, FormatException { byte foo[]=new byte[howmany]; int gotsofar=0; int err=0; try { RandomAccessFile inputFile=checkInputFile(); while (gotsofar < howmany) { err=inputFile.read(foo,gotsofar,howmany - gotsofar); if (err ...
Read from the file.
public boolean isSetHeader(){ return this.header != null; }
Returns true if field header is set (has been assigned a value) and false otherwise
public boolean isEmpty(){ return wordsInUse == 0; }
Returns true if this <code>BitSet</code> contains no bits that are set to <code>true</code>.
public static boolean isInRange(float min,float max,float a){ return (min <= a) && (a <= max); }
Returns false if any value is NaN.
public void replaceTemplate(ElemTemplate v,int i) throws TransformerException { if (null == m_templates) throw new ArrayIndexOutOfBoundsException(); replaceChild(v,(ElemTemplateElement)m_templates.elementAt(i)); m_templates.setElementAt(v,i); v.setStylesheet(this); }
Replace an "xsl:template" property. This is a hook for CompilingStylesheetHandler, to allow us to access a template, compile it, instantiate it, and replace the original with the compiled instance. ADDED 9/5/2000 to support compilation experiment
@Override public CompilerPhase newExecution(IR ir){ return this; }
Return this instance of this phase. This phase contains no per-compilation instance fields.
public static byte[] toBytes(Object value){ try { ByteArrayOutputStream bos=new ByteArrayOutputStream(); Output output=new Output(bos); kryo.get().writeClassAndObject(output,value); output.flush(); bos.flush(); return bos.toByteArray(); } catch ( Throwable t) { LOG.error("Unable to ser...
Serialize a profile measurement's value. The value produced by a Profile definition can be any numeric data type. The data type depends on how the profile is defined by the user. The user should be able to choose the data type that is most suitable for their use case.
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
private ArrayDBIDs computeM_current(DBIDs m,DBIDs m_best,DBIDs m_bad,Random random){ ArrayModifiableDBIDs m_list=DBIDUtil.newArray(m); m_list.removeDBIDs(m_best); DBIDArrayMIter it=m_list.iter(); ArrayModifiableDBIDs m_current=DBIDUtil.newArray(); for (DBIDIter iter=m_best.iter(); iter.valid(); iter.advance()...
Computes the set of medoids in current iteration.
private Node<E> nextNode(Node<E> p){ for (; ; ) { Node<E> s=p.next; if (s == p) return head.next; if (s == null || s.item != null) return s; p=s; } }
Returns the next live successor of p, or null if no such. Unlike other traversal methods, iterators need to handle both: - dequeued nodes (p.next == p) - (possibly multiple) interior removed nodes (p.item == null)
public Escaper toEscaper(){ return new CharArrayDecorator(toArray()); }
Convert this builder into a char escaper which is just a decorator around the underlying array of replacement char[]s.
public static BigDecimal[] allocate(final BigDecimal amountInRupees,final long[] weights){ if (amountInRupees == null) return null; final BigDecimal[] resultInRupees=new BigDecimal[weights.length]; final long amountInPaise=roundAndConvertToPaise(amountInRupees); final long[] resultsInPaise=allocate(amountInPa...
This variant of the allocate method allows the original amount to be input as a rupee amount i.e. as a BigDecimal, and receive the output splits as BigDecimal amounts too. If the input amount is more than 2 decimal places e.g. Rs. 150.632, it gets rounded to 2 decimal places (using "half-up" rounding) and it is the rou...
private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writePaint(this.labelPaint,stream); SerialUtilities.writeStroke(this.dividerStroke,stream); SerialUtilities.writePaint(this.dividerPaint,stream); }
Provides serialization support.
@Override public void run(){ amIActive=true; String streamsHeader=null; String pointerHeader=null; String outputHeader=null; WhiteboxRaster output; int[] dX=new int[]{1,1,1,0,-1,-1,-1,0}; int[] dY=new int[]{-1,0,1,1,1,0,-1,-1}; final double LnOf2=0.693147180559945; int row, col, x, y; float progress...
Used to execute this plugin tool.
public void selectParameters(List<Parameter> params){ }
return a list of parameters that are required
@Override public Object call() throws Exception { log.info("Starting to configure scheduler"); if (drUtil.isStandby()) { log.info("Current site is standby, disable BackupScheduler"); return null; } if (this.scheduledTask != null) { cancelScheduledTask(); } try { this.cfg.reload(); } catch...
All scheduling adjustment should be done by scheduling this to scheduler thread pool, so this is synchronized with scheduled executions.
protected void applyPatch(State current,State patch){ if (patch.taskInfo != null) { ServiceUtils.logInfo(this,"stage update: %s to %s",current.taskInfo.stage,patch.taskInfo.stage); current.taskInfo=patch.taskInfo; } if (patch.dataStoreCount != null) { current.dataStoreCount=patch.dataStoreCount; } ...
Applies patch to current document state.
public void flush(){ _isFsync=true; }
Request an fsync flush at the next batch. The fsync will only occur if there are also pending fsyncs.
static URI toUri(UnixPath up){ byte[] path=up.toAbsolutePath().asByteArray(); StringBuilder sb=new StringBuilder("file:///"); assert path[0] == '/'; for (int i=1; i < path.length; i++) { char c=(char)(path[i] & 0xff); if (match(c,L_PATH,H_PATH)) { sb.append(c); } else { sb.append('%'); ...
Converts Path to URI
public void normalise(){ double total=matrix.values().stream().mapToDouble(null).sum(); for ( Entry<Assignment,double[]> e : matrix.entrySet()) { double[] old=e.getValue(); e.setValue(new double[]{old[0] / total,old[1]}); } }
Normalises the factor, assuming no conditional variables in the factor.
void registerTrustedCertificatesGlobally(){ try { String javaTrustStoreFile=System.getProperty("java.home") + "/lib/security/cacerts"; KeyStore trustStore=loadKeystore(new FileInputStream(javaTrustStoreFile)); Enumeration<String> aliases=ks.aliases(); while (aliases.hasMoreElements()) { String a...
register trusted certificates in order for Oracle Java to support StartSSL and Let's encrypt for https connections such as the updater.
public PLShakeData(){ this(0); }
init methods
public Object clone(){ LinkedList clone; try { clone=(LinkedList)super.clone(); } catch ( CloneNotSupportedException e) { throw new InternalError(); } clone.header=new Entry(null,null,null); clone.header.next=clone.header.previous=clone.header; clone.size=0; clone.modCount=0; for (Entry e=he...
Returns a shallow copy of this <tt>LinkedList</tt>. (The elements themselves are not cloned.)
public static int indexOfLastSeparator(String filename){ if (filename == null) return -1; int lastUnixPos=filename.lastIndexOf(UNIX_SEPARATOR); int lastWindowsPos=filename.lastIndexOf(WINDOWS_SEPARATOR); return Math.max(lastUnixPos,lastWindowsPos); }
Returns the index of the last directory separator character. <p> This method will handle a file in either Unix or Windows format. The position of the last forward or backslash is returned. <p> The output will be the same irrespective of the machine that the code is running on.
public FuncExtFunction(java.lang.String namespace,java.lang.String extensionName,Object methodKey){ m_namespace=namespace; m_extensionName=extensionName; m_methodKey=methodKey; }
Create a new FuncExtFunction based on the qualified name of the extension, and a unique method key.
private static IpcServerEndpoint createEndpoint(IgfsIpcEndpointConfiguration endpointCfg,boolean mgmt) throws IgniteCheckedException { A.notNull(endpointCfg,"endpointCfg"); IgfsIpcEndpointType typ=endpointCfg.getType(); if (typ == null) throw new IgniteCheckedException("Failed to create server endpoint (type is...
Create server IPC endpoint.
public String process(String document) throws DocumentCreationTimeMissingException { return process(document,null,getFormatter()); }
Processes document with HeidelTime
@Override public String toString(){ return _fromNode + " ---> " + _toNode+ getTypeString(); }
Returns the string representation of the edge.
public void sendEmptyDataChunk() throws NetworkException { msrpMgr.sendEmptyChunk(); }
Send an empty data chunk
public ByteTreeItem add(ImportItem originator,Iterator<Byte> it){ ByteTreeItem node=add(it,0,3,null); node.originator=originator; return node; }
A storage primer specific to IPv4 traffic. This assumes 4 byte sequences indexed 0 - 3, where on index 3 the setupCallback will trigger
@Override public String toString(){ return method.toString(); }
toString outputs a text representation of the method call.
public GoogleBaseAttribute(String name,GoogleBaseAttributeType type,boolean privateAccess,String textValue){ this(new GoogleBaseAttributeId(name,type),textValue); setPrivate(privateAccess); }
Creates a new Extension attribute with a name, type and string content.
public boolean didTouchFocusSelect(){ return mInputView.didTouchFocusSelect(); }
Returns true, only while processing a touch gesture, if the initial touch down event caused focus to move to the text view and as a result its selection changed. Only valid while processing the touch gesture of interest, in an editable text view.
boolean isContextualSearchUrl(String url){ return url.equals(getSearchUrl()); }
Returns whether the given URL is the current Contextual Search URL.
public SelectItemEscapeITCase(String name){ super(name); }
Construct a new instance of this test case.
@EventHandler(ignoreCancelled=true) public void onVehicleExit(VehicleExitEvent event){ if (event.getActor() instanceof Player && !canInteract((Player)event.getActor())) { event.setCancelled(true); } }
Prevents a player that can't interact from exiting vehicles.