code
stringlengths
10
174k
nl
stringlengths
3
129k
public static void writeAll(String filename,Object[] o) throws Exception { writeAll(new FileOutputStream(filename),o); }
serializes the given objects to the specified file.
public static void registerMetadata(MetadataRegistry registry){ if (registry.isRegistered(KEY)) { return; } ElementCreator builder=registry.build(KEY); builder.addAttribute(TYPE).setRequired(true); }
Registers the metadata for this element.
public void reconfigureZoom(){ if (ricon == null) return; final int iconWidth=ricon.get().getIconWidth(); final int iconHeight=ricon.get().getIconHeight(); final Zoom zoom=zoomComboBox.getSelectedItem(); int height=0; if (zoom == Zoom.FIT_TO_WINDOW) { if (iconWidth > 0 || iconHeight > 0) { final...
Reconfigures the map image zoom.
public void addPostProcessing(DataMatrixTransform dataMatrixTransform){ this.postProcessing.add(dataMatrixTransform); }
Add a postProcessing step for latter use
public void testProhibitedClause() throws Exception { Query required=new TermQuery(new Term("field","this")); Query prohibited=new TermQuery(new Term("field","3")); BooleanQuery.Builder bq=new BooleanQuery.Builder(); bq.add(new AssertNeedsScores(required,true),BooleanClause.Occur.MUST); bq.add(new AssertNeeds...
prohibited clauses in booleanquery don't need scoring
public SimpleDigitalOut(){ }
Constructs a new <tt>SimpleDigitalOut</tt> instance. It's state will be invalid.
NormalSsaInsn(final Insn insn,final SsaBasicBlock block){ super(insn.getResult(),block); this.insn=insn; }
Creates an instance.
public RegisterOperand makeTempFloat(){ return new RegisterOperand(getFloat(),TypeReference.Float); }
Make a temporary to hold a float (allocating a new register).
public ExecWSHScriptCommand(String playlist,File[] files){ this.playlist=playlist; this.files=files; }
Constructs a new ExecOSAScriptCommand for the specified file.
public kbd addElement(String element){ addElementToRegistry(element); return (this); }
Adds an Element to the element.
public XObject operate(XObject left,XObject right) throws javax.xml.transform.TransformerException { return left.equals(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE; }
Apply the operation to two operands, and return the result.
public KeyStoreLoadException(String message,Throwable causeThrowable,KeyStoreType keyStoreType){ super(message,causeThrowable); this.keyStoreType=keyStoreType; }
Creates a new KeyStoreLoadException with the specified message and cause throwable.
private int hash(long[] h,long objectToHash){ long obj=(objectToHash < Integer.MAX_VALUE) ? objectToHash : objectToHash - bigPrime; long h0=h[0]; long h1=(h[1] < (Long.MAX_VALUE / 2)) ? h[1] : h[1] - bigPrime; long ret=(obj * h0) % bigPrime; ret=(ret < (Long.MAX_VALUE / 2)) ? ret : ret - bigPrime; return (i...
Determines which bit of the bit set should be either set, for add operations, or checked, for query operations.
public String globalInfo(){ return "Reads a source that is in svm light format.\n\n" + "For more information about svm light see:\n\n" + "http://svmlight.joachims.org/"; }
Returns a string describing this Loader.
public void testDigitsInRussianCharset() throws IOException { RussianAnalyzer ra=new RussianAnalyzer(); assertAnalyzesTo(ra,"text 1000",new String[]{"text","1000"}); ra.close(); }
Check that RussianAnalyzer doesnt discard any numbers
@Override public int hashCode(){ return this.hashCode; }
Returns the hash code of this Reservation-Token.
public void release(){ super.release(); init(); }
Releases any resources we may have (or inherit)
private static void checkNotNull(Object v){ if (v == null) throw new NullPointerException(); }
Throws NullPointerException if argument is null.
public void supportTlsIntolerantServer(SSLSocket socket){ socket.setEnabledProtocols(new String[]{"SSLv3"}); }
Attempt a secure connection with basic functionality to maximize compatibility. Currently this uses SSL 3.0.
public boolean remoteEquals(RemoteRef ref){ if (ref instanceof ActivatableRef) return id.equals(((ActivatableRef)ref).id); return false; }
default implementation of equals for remote objects
@Override public View create(Element elem){ return new PasswordView(elem); }
Creates a view (PasswordView) for an element.
public void testWrite4() throws Exception { try { new CipherOutputStream(new BufferedOutputStream((OutputStream)null),new NullCipher()).write(new byte[]{0},1,Integer.MAX_VALUE); } catch ( IllegalArgumentException e) { } }
write(byte[] b, int off, int len)
@Override public N peek(){ return stack[(stackTop - 1) & mask]; }
peek at the top of the stack
public synchronized String addUser(final JSONObject requestJSONObject) throws ServiceException { final Transaction transaction=userRepository.beginTransaction(); try { final String userEmail=requestJSONObject.optString(User.USER_EMAIL).trim().toLowerCase(); final String userName=requestJSONObject.optString(...
Adds a user with the specified request json object.
public void testBug71923() throws Exception { final String tableDDL="(id INT AUTO_INCREMENT PRIMARY KEY, ch CHAR(1) UNIQUE KEY, ct INT, dt VARCHAR(100))"; final String defaultQuery="Insert into testBug71923 (ch, ct) values ('A', 1), ('B', 2)"; final String[] testQueriesPositiveMatches=new String[]{"INSERT INTO te...
Tests fix for BUG#71923 - Incorrect generated keys if ON DUPLICATE KEY UPDATE not exact
public void notifyTabsExperimentChanged(AbstractExperimenterTab source,Experiment exp){ m_Experiment=exp; for ( AbstractExperimenterTab tab : m_Tabs) { if ((source != null) && (tab == source)) continue; tab.setExperiment(exp); } }
Notifies all the tabs that the experiment has changed.
public NullArgumentException(String argName){ super((argName == null ? "Argument" : argName) + " must not be null."); }
<p>Instantiates with the given argument name.</p>
public DoubleArrayList quantileElements(DoubleArrayList phis){ this.sort(); return cern.jet.stat.Descriptive.quantiles(this.buffer,phis); }
Computes the specified quantile elements over the values previously added.
private int removeFilteredInstances(CamelCaseFilter filter,GroupTree filteredTree,List<TreePath> expandedPaths,TreePath path){ int hits=0; Iterator<? extends GroupTree> g=filteredTree.getSubGroups().iterator(); while (g.hasNext()) { GroupTree child=g.next(); boolean matches=filter.matches(child.getName())...
Recursively deletes nodes from the filteredTree when neither the name of the node nor the name of one of its children or parents matches the filter. Stores paths to nodes that match the filter (not containing the node itself) in expandedPaths.
public boolean isCachedInMemory(String typeName) throws AtlasException { return super.has(typeName); }
Checks whether the specified type is cached in memory and does *not access the type store. Used for testing.
public static String cdmaCheckAndProcessPlusCode(String dialStr){ if (!TextUtils.isEmpty(dialStr)) { if (isReallyDialable(dialStr.charAt(0)) && isNonSeparator(dialStr)) { String currIso=SystemProperties.get(PROPERTY_OPERATOR_ISO_COUNTRY,""); String defaultIso=SystemProperties.get(PROPERTY_ICC_OPERATOR...
This function checks if there is a plus sign (+) in the passed-in dialing number. If there is, it processes the plus sign based on the default telephone numbering plan of the system when the phone is activated and the current telephone numbering plan of the system that the phone is camped on. Currently, we only support...
public boolean isAdminActive(ComponentName who){ if (mService != null) { try { return mService.isAdminActive(who,UserHandle.myUserId()); } catch ( RemoteException e) { Log.w(TAG,"Failed talking with device policy service",e); } } return false; }
Return true if the given administrator component is currently active (enabled) in the system.
public Object clone(){ try { return super.clone(); } catch ( CloneNotSupportedException e) { throw new InternalError(); } }
Returns a copy of this position.
public String toString(){ StringBuffer sb=new StringBuffer("PPInstance_Log["); sb.append(m_Log_ID); if (m_P_Date != null) sb.append(",Date=").append(m_P_Date); if (m_P_ID != 0) sb.append(",ID=").append(m_P_ID); if (m_P_Number != null) sb.append(",Number=").append(m_P_Number); if (m_P_Msg != null) sb...
String Representation
private boolean isPageActive(){ boolean isActive=false; if (mPageReference == null || mPageReference.get() == null) { return isActive; } return mPageReference.get().isActive(); }
Check whether the page is active.
public static HostAddress parse(DerInputStream data,byte explicitTag,boolean optional) throws Asn1Exception, IOException { if ((optional) && (((byte)data.peekByte() & (byte)0x1F) != explicitTag)) { return null; } DerValue der=data.getDerValue(); if (explicitTag != (der.getTag() & (byte)0x1F)) { throw ne...
Parses (unmarshal) a host address from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
public GetEventsParams withSinceSecond(long sinceSecond){ this.sinceSecond=sinceSecond; return this; }
Adds since time filter to this parameters.
private EncryptedData(DerValue encoding) throws Asn1Exception, IOException { DerValue der=null; if (encoding.getTag() != DerValue.tag_Sequence) { throw new Asn1Exception(Krb5.ASN1_BAD_ID); } der=encoding.getData().getDerValue(); if ((der.getTag() & (byte)0x1F) == (byte)0x00) { eType=(der.getData().get...
Constructs an instance of EncryptedData type.
public boolean unlockIt(){ log.info(toString()); setProcessing(false); return true; }
Unlock Document.
public static String fetchCgName(String clusterCgName){ String cgName=null; if (clusterCgName != null && !clusterCgName.isEmpty()) { String[] tmp=clusterCgName.split(SPLITTER); cgName=tmp[1]; } return cgName; }
Parses out the consistency group name from the combined cluster/cg name.
protected boolean hasHistory(){ return true; }
Has History
private void sendPendingIntent(PendingIntent pi){ try { pi.send(); } catch ( Exception e) { Log.d(TAG,"Error sending media controls pending intent",e); } }
Attempts to send the pending intent
@POST @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/deactivate") @CheckPermission(roles={Role.SYSTEM_ADMIN,Role.RESTRICTED_SYSTEM_ADMIN}) public Response deleteObjectVirtualPool(@PathParam("id") URI id){ return deleteVirtualPool(VirtualPool.Type.object,id); }
Deactivate Object Store VirtualPool, this will move the Cos to a "marked-for-deletion" state, and no more resource may be created using it. The VirtualPool will be deleted when all references to this VirtualPool of type ObjectShare are deleted
public void testExplodeLimit(){ String[] testStrings={"a:b","a:b:c","a:b:c:d","a:::b:c",":::::","a",""}; for ( String test : testStrings) { String[] resultExplode=StringUtils.explode(test,':',3); String[] resultSplit=test.split(":",3); assertEquals("Different result lengths with test string \"" + test ...
Tests the method explode(String, char, int), which should always return the same as String.split(String, int) does.
@Suspendable public static void removeContextScheduler(){ Context context=Vertx.currentContext(); if (context != null) { context.remove(FIBER_SCHEDULER_CONTEXT_KEY); } }
Remove the scheduler for the current context
public static Object callStaticMethod(Class staticClass,String methodName,Object[] values) throws PageException { if (values == null) values=new Object[0]; MethodParameterPair mp; try { mp=getMethodParameterPairIgnoreCase(staticClass,methodName,values); } catch ( NoSuchMethodException e) { throw Cas...
call of a static method of a Class
@SuppressWarnings("unchecked") protected synchronized V removeInternal(Object key,boolean countRemove){ if (key == null) { if (Debug.verboseOn()) Debug.logVerbose("In UtilCache tried to remove with null key, using NullObject" + this.name,module); } Object nulledKey=fromKey(key); CacheLine<V> oldCacheLin...
This is used for internal remove calls because we only want to count external calls
public static LocalDateTime fromCalendarFields(Calendar calendar){ if (calendar == null) { throw new IllegalArgumentException("The calendar must not be null"); } return new LocalDateTime(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH) + 1,calendar.get(Calendar.DAY_OF_MONTH),calendar.get(Calendar.HOUR...
Constructs a LocalDateTime from a <code>java.util.Calendar</code> using exactly the same field values. <p> Each field is queried from the Calendar and assigned to the LocalDateTime. This is useful if you have been using the Calendar as a local date, ignoring the zone. <p> One advantage of this method is that this metho...
protected void parsePositions(String prefix,Properties props){ int index=1; prefix=PropUtils.getScopedPropertyPrefix(prefix); String entry=props.getProperty(prefix + Integer.toString(index)); while (entry != null) { addPositionChoice(index,entry,prefix,props); entry=props.getProperty(prefix + Integer.to...
This method reads Properties to add choices to this class as options for what values are valid in this position.
public static boolean contains(final Type type){ Set<Type> generatedValues=threadLocal.get(); return generatedValues.contains(type); }
Check if this type was added by this thread already.
public WorksheetEntry(BaseEntry sourceEntry){ super(sourceEntry); getCategories().add(CATEGORY); }
Constructs a new entry by doing a shallow copy from another BaseEntry instance.
public final double KBRelativeInformation() throws Exception { return m_delegate.KBRelativeInformation(); }
Return the Kononenko & Bratko Relative Information score.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case UmplePackage.SMALLER_OP___SMALLER_OP_1: return getSmallerOp_1(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
private static void fillBasinReq(DTSweepContext tcx,AdvancingFrontNode node){ if (isShallow(tcx,node)) { return; } fill(tcx,node); if (node.prev == tcx.basin.leftNode && node.next == tcx.basin.rightNode) { return; } else if (node.prev == tcx.basin.leftNode) { Orientation o=orient2d(node.point,n...
Recursive algorithm to fill a Basin with triangles
public static TermsEnumTermsQueryBuilder termsEnumTermsQuery(String name,byte[] values,int cacheKey){ return new TermsEnumTermsQueryBuilder(name,values,cacheKey); }
A terms enum terms query for the provided field name.
public VOParameter(VOParameterDefinition paramDef){ super(); if (paramDef == null) { throw new IllegalArgumentException("VOParameterDefinition must not be null"); } parameterDefinition=paramDef; }
Constructs a parameter setting based on the given parameter definition of a technical service.
public synchronized void removePropertyChangeListener(PropertyChangeListener listener){ if (changeSupport == null) { return; } changeSupport.removePropertyChangeListener(listener); }
Removes a <code>PropertyChangeListener</code> from the listener list. This removes a <code>PropertyChangeListener</code> that was registered for all properties.
private void updateProgress(int progress){ if (myHost != null) { myHost.updateProgress(progress); } else { System.out.println("Progress: " + progress + "%"); } }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public BulkUserImportException(String msg,BulkUserImportExceptionBean bean){ super(msg,bean); this.bean=bean; }
Constructs a new exception with the specified detail message and bean for JAX-WS exception serialization.
public static SecretKeys keys(String keysStr) throws InvalidKeyException { String[] keysArr=keysStr.split(":"); if (keysArr.length != 2) { throw new IllegalArgumentException("Cannot parse aesKey:hmacKey"); } else { byte[] confidentialityKey=Base64.decode(keysArr[0],BASE64_FLAGS); if (confidentialityK...
An aes key derived from a base64 encoded key. This does not generate the key. It's not random or a PBE key.
public mxCellState(mxGraphView view,Object cell,Map<String,Object> style){ setView(view); setCell(cell); setStyle(style); }
Constructs a new object that represents the current state of the given cell in the specified view.
@Override public String format(Date date,String mask){ DateTime dt=(date instanceof DateTime) ? (DateTime)date : new DateTimeImpl(date.getTime(),false); return format(dt,mask,null); }
formats a date to a cfml date format
public static void initiateClientItemEvent(ItemStack itemStack,int event){ try { if (NetworkManager_initiateClientItemEvent == null) NetworkManager_initiateClientItemEvent=Class.forName(getPackage() + ".core.network.NetworkManager").getMethod("initiateClientItemEvent",ItemStack.class,Integer.TYPE); if (in...
Immediately send an event for the specified Item to the clients in range. The item should implement INetworkItemEventListener to receive the event. This method doesn't do anything if executed on the server.
public DataChangeNotification clone(){ DataChangeNotification result=new DataChangeNotification(); if (MonitoredItems != null) { result.MonitoredItems=new MonitoredItemNotification[MonitoredItems.length]; for (int i=0; i < MonitoredItems.length; i++) result.MonitoredItems[i]=MonitoredItems[i].clone(); ...
Deep clone
public ParsedURI resolve(String relURISpec){ ParsedURI relURI=new ParsedURI(relURISpec); return this.resolve(relURI); }
Resolves a relative URI using this URI as the base URI.
public static final short secondaryOrder(int order){ return (short)CollationElementIteratorICU.secondaryOrder(order); }
Obtains the secondary order of the specified collation element, i.e. the 16th to 23th bits, inclusive. This value is unsigned.
public static void traceThrowable(Throwable e){ PrintWriter writer=DriverManager.getLogWriter(); if (writer != null) { e.printStackTrace(writer); } }
Write the exception to the driver manager log writer if configured.
public static IProject findProject(String projectName){ IWorkspaceRoot workspaceRoot=ResourcesPlugin.getWorkspace().getRoot(); IProject project=workspaceRoot.getProject(projectName); if (project == null || !project.exists()) { return null; } return project; }
Returns an IProject by the given name, or null if no such project can be found.
public TDoubleIntIterator(TDoubleIntHashMap map){ super(map); _map=map; }
Creates an iterator over the specified map
public XMPPException(String message,XMPPError error){ super(message); this.error=error; }
Creates a new XMPPException with a description of the exception and the XMPPException that was the root cause of the exception.
private boolean deodexApk(ApkLegacy apk){ boolean copyStatus=false; copyStatus=apk.copyNeededFiles(tempFolder); if (!copyStatus) { this.logPan.addLog(R.getString(S.LOG_WARNING) + "[" + apk.origApk.getName()+ "]"+ R.getString("log.copy.to.tmp.failed")); return false; } else { boolean deodexStatus=fa...
will make a serie of actions to deodex the parameter File apk will return true only if all tasks are successful all the failed tasks will be sent to the logger
@Override public void initialize(ResourceManager nerRm){ if (ViewNames.NER_ONTONOTES.equals(getViewName())) nerRm=new NerOntonotesConfigurator().getConfig(nonDefaultRm); else nerRm=new NerBaseConfigurator().getConfig(nonDefaultRm); ParametersForLbjCode.currentParameters.forceNewSentenceOnLineBreaks=false; Pa...
Superclass calls this method either on instantiation or at first call to getView(). Logging has been disabled because non-static logger is not initialized at the time this is called if non-lazy initialization is specified.
public void close() throws IOException { dataStore.close(); }
Closes the ValueStore, releasing any file references, etc. Once closed, the ValueStore can no longer be used.
void renderNormal(){ glEnable(GL_DEPTH_TEST); glUseProgram(this.normalProgram); glUniformMatrix4fv(viewMatrixUniform,false,viewMatrix.get(matrixBuffer)); glUniformMatrix4fv(projMatrixUniform,false,projMatrix.get(matrixBuffer)); glUniformMatrix3fv(normalMatrixUniform,false,normalMatrix.get(matrixBuffer)); gl...
Render the normals into a texture.
private LirsEntry stackBottom(){ LirsEntry bottom=header.previousInStack; return (bottom == header) ? null : bottom; }
Returns the entry at the bottom of the stack.
@Override protected void drawGridBandsVertical(Graphics2D g2,Rectangle2D drawArea,Rectangle2D plotArea,boolean firstGridBandIsDark,List ticks){ double xx=plotArea.getX(); double yy1, yy2; double outlineStrokeWidth; Stroke outlineStroke=getPlot().getOutlineStroke(); if (outlineStroke != null && outlineStroke i...
Draws the grid bands for the axis when it is at the top or bottom of the plot.
public static void logCurrent(String msg){ EGLDisplay display; EGLContext context; EGLSurface surface; display=EGL14.eglGetCurrentDisplay(); context=EGL14.eglGetCurrentContext(); surface=EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW); Log.i(TAG,"Current EGL (" + msg + "): display="+ display+ ", context="+ con...
Writes the current display, context, and surface to the log.
public static synchronized Server create() throws Exception { return new LocalTestServer(); }
Makes sure that a "hollow" TestServer (either local or remote, depending on the nature of the test), exists and it's ready to be started.
private InputStream writeTriG(Model statements) throws RDFHandlerException { StringWriter writer=new StringWriter(); RDFWriter trigWriter=new TriGWriter(writer); trigWriter.startRDF(); for ( Statement nextStatement : statements) { trigWriter.handleStatement(nextStatement); } trigWriter.endRDF(); retu...
Helper method to write the given model to TriG and return an InputStream containing the results.
public static void applyTypeface(TextView textView){ if (sTypeface != null) { textView.setTypeface(sTypeface); } }
Applies the default icon typeface to a textview.
public String encrypt(String plainText) throws Exception { cipher.init(Cipher.ENCRYPT_MODE,key,spec); byte[] encrypted=cipher.doFinal(plainText.getBytes("UTF-8")); String encryptedText=new String(Base64.encode(encrypted,Base64.DEFAULT),"UTF-8"); return encryptedText; }
Encripta un texto
@SuppressWarnings("rawtypes") protected void postProcessPasoFormData(AccionMultientidadForm accionMultientidadForm,HttpServletRequest request,HttpServletResponse response) throws Exception { if (ConfiguracionAccionMultientidadConstants.PASO_SELECCION_ENTIDADES.equals(accionMultientidadForm.getPaso()) || Configuracion...
Carga los datos necesarios para el siguiente forward
public SequencesWriter(SequenceDataSource source,File outputDir,long sizeLimit,Collection<String> namesToExclude,PrereadType type,boolean compressed,Integer trimQualityThreshold){ mDataSource=source; mOutputDir=outputDir; mPrereadType=type; mSdfId=new SdfId(); if (mDataSource == null) { throw new NullPoin...
Creates a writer for processing sequences from provided data source.
public T allocate(){ int top=_top.get(); if (top > 0 && _top.compareAndSet(top,top - 1)) return _freeStack.getAndSet(top - 1,null); else return null; }
Try to get an object from the free list. Returns null if the free list is empty.
public static byte[] decode(byte[] source,int off,int len) throws Base64DecoderException { return decode(source,off,len,DECODABET); }
Decodes Base64 content in byte array format and returns the decoded byte array.
public CandlePeriod(ZonedDateTime startOfPeriod){ this(startOfPeriod,startOfPeriod); }
Constructs a new second, based on the date/time.
public BadStringOperationException(String message){ this.op=message; }
Constructs a <CODE>BadStringOperationException</CODE> with the specified detail message.
public DTLZ7(int numberOfVariables,int numberOfObjectives){ super(numberOfVariables,numberOfObjectives); }
Constructs a DTLZ7 test problem with the specified number of variables and objectives.
public CompiereColor(String type){ if (type == null) throw new java.lang.IllegalArgumentException(EXCEPTION_TEXT); if (type.equals(TYPE_FLAT) || type.equals(TYPE_GRADIENT) || type.equals(TYPE_TEXTURE)|| type.equals(TYPE_LINES)) { m_type=type; } else throw new java.lang.IllegalArgumentException("Invalid T...
Create Default Background Colors of Type
protected void init(FoamApiKeys foamApiKeys){ this.foamApiKeys=foamApiKeys; services.put(ServiceType.PAGERDUTY,new PagerDuty(context)); services.put(ServiceType.HOCKEYAPP,new HockeyApp(context)); services.put(ServiceType.PAPERTRAIL,new PaperTrail(context)); services.put(ServiceType.LOGENTRIES,new LogEntries(c...
Add all services to <code>services</code> map, with an associated ServiceType enum.
public static void verifyOptionalAuthInfoForResource(Optional<AuthInfo> authInfo,EppResource resource) throws EppException { if (authInfo.isPresent()) { verifyAuthInfoForResource(authInfo.get(),resource); } }
Check that the given AuthInfo is either missing or else is valid for the given resource.
@HLEUnimplemented @HLEFunction(nid=0x36331294,version=150) public int sceKernelSysEventDispatch(int eventTypeMask,int eventId,String eventName,int param,TPointer32 resultAddr,int breakNonzero,int breakHandler){ return 0; }
Dispatch a SysEvent event.
public void windowLostFocus(WindowEvent e){ }
Invoked when the Window is no longer the focused Window, which means that keyboard events will no longer be delivered to the Window or any of its subcomponents.
private BinaryReaderExImpl reader(@Nullable BinaryReaderHandles rCtx,@Nullable ClassLoader ldr,boolean forUnmarshal){ if (ldr == null) ldr=ctx.configuration().getClassLoader(); return new BinaryReaderExImpl(ctx,BinaryHeapInputStream.create(arr,start),ldr,rCtx,forUnmarshal); }
Create new reader for this object.
public EnchantmentType(String enumName,String stringID,int numericID,Predicate<EnchantmentType> isConflicting){ super(enumName); this.stringID=stringID; this.numericID=(short)numericID; this.isConflicting=isConflicting; }
Construct new EnchantmentType.
public void registerComponents(ComponentFactory[] components){ for ( ComponentFactory component : components) { if (!hasComponent(component)) { addComponent(component.createOptions(this)); } } }
This will register the list of components if not already there...
public static <T>HashSet<T> newHashSet(int size){ return new HashSet<T>(size); }
new HashSet and initialCapacity
public void testTicket1363a(){ final JoinGroupNode jgn1a=new JoinGroupNode(); final JoinGroupNode jgn1b=new JoinGroupNode(); jgn1a.addChild(stmtPatternWithVar("y1")); jgn1b.addChild(stmtPatternWithVar("y1")); final JoinGroupNode jgn2a=new JoinGroupNode(); final JoinGroupNode jgn2b=new JoinGroupNode(); jgn...
A UNION node usually has precedence over subqueries.
public boolean isRTPMarkerSet(){ return (flags & FLAG_RTP_MARKER) != 0; }
Check if the RTP marker is set
protected IoBuffer encodeNotifyOrInvoke(Notify invoke,RTMP rtmp){ IoBuffer out=IoBuffer.allocate(1024); out.setAutoExpand(true); encodeNotifyOrInvoke(out,invoke,rtmp); return out; }
Encode notification event.