code
stringlengths
10
174k
nl
stringlengths
3
129k
public static LoggingException createLoggingException(final ErrorKeys errorId,final Exception e){ return new LoggingException(errorId.toString(),e); }
Creates a LoggingException object.
@SuppressWarnings("unchecked") public void writeSQLXML(SQLXML x) throws SQLException { attribs.add(x); }
Writes an SQL <code>XML</code> value to the stream.
public void readValues(){ readValues(false); }
Read values from settings
public boolean parse(final BashPsiBuilder builder){ log.assertTrue(builder.getTokenType() == EXPR_CONDITIONAL); final PsiBuilder.Marker command=builder.mark(); boolean result=parseConditionalExpression(builder); command.done(CONDITIONAL_COMMAND); return result; }
Parses the next tokens as a conditional command.
public static StringBuilder readFile(String filePath){ File file=new File(filePath); StringBuilder fileContent=new StringBuilder(""); if (file == null || !file.isFile()) { return null; } BufferedReader reader=null; try { reader=new BufferedReader(new FileReader(file)); String line=null; whil...
read file
public boolean isProcessing(){ Object oo=get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Process Now.
public static String format(final Iterable<? extends NameValuePair> parameters,final Charset charset){ final StringBuilder result=new StringBuilder(); for ( final NameValuePair parameter : parameters) { final String encodedName=encodeFormFields(parameter.getName(),charset); final String encodedValue=encode...
Returns a String that is suitable for use as an <code>application/x-www-form-urlencoded</code> list of parameters in an HTTP PUT or HTTP POST.
@RequestMapping(value="/posts/{postId:\\d+}/replies",method=RequestMethod.POST,produces=MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<ReplyDTO> createReply(@Valid @RequestBody ReplyDTO replyDTO,@PathVariable Long postId) throws URISyntaxException { log.debug("REST request to save Reply : {}",replyDTO...
POST /replys -> Create a new reply.
public Integer decode(ByteBuffer buffer){ byte b=buffer.get(); int result=b & 0x7F; if ((b & 0x80) != 0) { b=buffer.get(); result|=(b & 0x7F) << 7; if ((b & 0x80) != 0) { b=buffer.get(); result|=(b & 0x7F) << 14; if ((b & 0x80) != 0) { b=buffer.get(); result|=(b & 0x7...
Decode the integer from the byte buffer. The input byte buffer should be readable, and it read from its current position.
private void writeQName(javax.xml.namespace.QName qname,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI=qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String prefix=xmlWriter.getPrefix(namespaceURI); if (prefix == null) {...
method to handle Qnames
@Override public void init(int WindowNo,FormFrame frame){ log.info("VCRP.init"); m_WindowNo=WindowNo; m_frame=frame; try { fillPicks(); jbInit(); frame.getContentPane().add(northPanel,BorderLayout.NORTH); frame.getContentPane().add(centerPanel,BorderLayout.CENTER); frame.getContentPane().add...
Initialize Panel
public static AnnotationDesc walk(EsperEPL2GrammarParser.AnnotationEnumContext ctx,EngineImportService engineImportService) throws ASTWalkException { String name=ASTUtil.unescapeClassIdent(ctx.classIdentifier()); List<Pair<String,Object>> values=new ArrayList<Pair<String,Object>>(); if (ctx.elementValueEnum() != ...
Walk an annotation root name or child node (nested annotations).
@Override public void actionPerformed(ActionEvent e){ if (dataProvider != null) { String openUriDialogAsString=(Boolean.valueOf(dataProvider.isShowUriDialog())).toString(); controller.getModel().setUserPreference(BitcoinModel.OPEN_URI_SHOW_DIALOG,openUriDialogAsString); } controller.getModel().setUserPref...
return to the transactions view
public static void selectRevealInDefaultViews(Object element){ for ( String viewId : DEFAULT_VIEW_IDS) { selectReveal(element,viewId); } }
Select the given element in the default view (Project Explorer, Navigator).
public final boolean isRegular(){ if (m_AttributeMetaInfo == null) { return true; } return m_AttributeMetaInfo.m_IsRegular; }
Returns whether the attribute values are equally spaced.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-02-24 15:47:29.002 -0500",hash_original_method="EE0D2036A98AFA5E0CE17A68BC067450",hash_generated_method="C37F99D5AD6A2CE17E7DCCD941CE8EA5") @DSSafe(DSCat.SAFE_OTHERS) public static String sha256Hex(String data){ return Hex.encodeHexString(sha...
Calculates the SHA-256 digest and returns the value as a hex string. <p> Throws a <code>RuntimeException</code> on JRE versions prior to 1.4.0. </p>
public int hashCode(){ return object.hashCode(); }
hashcode implementation for use as key in Map
public void removeCache(String uri,int maxWidth,int maxHeight,ImageView.ScaleType scaleType){ mImageLoader.removeCache(uri,maxWidth,maxHeight,scaleType); }
remove the specified uri image cache.
public void detachFromMovingGrabPoint(OffsetGrabPoint gp){ gp.removeGrabPoint(gpo); }
Detach from a Moving OffsetGrabPoint. The EditableOMGraphic version doesn't do anything, each subclass should remove whatever GrabPoint it would have attached to an OffsetGrabPoint.
public static void eachByte(InputStream is,int bufferLen,@ClosureParams(value=FromString.class,options="byte[],Integer") Closure closure) throws IOException { byte[] buffer=new byte[bufferLen]; int bytesRead; try { while ((bytesRead=is.read(buffer,0,bufferLen)) > 0) { closure.call(buffer,bytesRead); ...
Traverse through each the specified stream reading bytes into a buffer and calling the 2 parameter closure with this buffer and the number of bytes.
final public SyntaxTreeNode Lambda() throws ParseException { SyntaxTreeNode tn; Token t; bpa("Lambda"); t=jj_consume_token(LAMBDA); addHeir(new SyntaxTreeNode(mn,t)); expecting="Identifier"; tn=Identifier(); addHeir(tn); expecting="`,' or `:'"; label_48: while (true) { switch ((jj_ntk == -1) ? jj_...
Lambda expression added by LL on 27 March 2007 * L.Lambda ::= <LAMBDA> (IdentDecl | SomeFixDecl) (<COMMA> (IdentDecl | SomeFixDecl))* <COLON> Expression ...
public void addCustomFetchFilter(FetchFilter filter){ validateParameterNonNull(filter,"filter"); this.customFetchFilters.add(filter); }
Adds a custom fetch filter that would be used during the spidering. <p/> This method should be used to customize the Spider from any other extension of ZAP. The filters added will be loaded whenever starting any scan.
public void putAny(byte[] s){ putAny(s,s.length); }
Put an <CODE>ANY</CODE> value. In fact, this method does not encode anything. It simply copies the specified bytes into the encoding.
private DataSet simulateDataHelper(int sampleSize,boolean latentDataSaved){ int numMeasured=0; int[] map=new int[nodes.length]; List<Node> variables=new LinkedList<>(); for (int j=0; j < nodes.length; j++) { if (!latentDataSaved && nodes[j].getNodeType() != NodeType.MEASURED) { continue; } int...
Simulates a sample with the given sample size.
public long convertUTMToGeodetic(long Zone,String Hemisphere,double Easting,double Northing){ long Error_Code=UTM_NO_ERROR; double Origin_Latitude=0; double False_Easting=500000; double False_Northing=0; double Scale=0.9996; if ((Zone < 1) || (Zone > 60)) Error_Code|=UTM_ZONE_ERROR; if (!Hemisphere.equa...
The function Convert_UTM_To_Geodetic converts UTM projection (zone, hemisphere, easting and northing) coordinates to geodetic(latitude and longitude) coordinates, according to the current ellipsoid parameters. If any errors occur, the error code(s) are returned by the function, otherwise UTM_NO_ERROR is returned.
public LogEntry(final String id,final String timestamp,final String itemid,final String source,final String event,final String param1,final String param2,final String param3,final String param4){ this.id=id; this.timestamp=timestamp; this.itemid=itemid; this.source=source; this.event=event; this.param1=para...
Creates a new LogEntry.
public boolean isOverflow(){ return overflow; }
Returns the overflow strategy
public static InputStream openStream(String path) throws FileNotFoundException, IOException { return openStream(new FileInputStream(path)); }
Return an input stream with BOM consumed...
public TextArea(String text,int rows,int columns){ this(text,defaultMaxSize,rows,columns,ANY); }
Creates an area with the given text, rows and columns
public static String toString(URL url) throws IOException { return toString(url,Charset.defaultCharset()); }
Gets the contents at the given URL.
@Override protected void configureCurrentHandlerHook(int dialogType){ super.configureCurrentHandlerHook(dialogType); if (m_CurrentHandler != null) { if (getSelectedFile() != null) ((FileBasedEvaluationStatisticsExporter)m_CurrentHandler).setFile(getSelectedFile()); } }
configures the current converter.
public boolean isDistinct(){ return distinct; }
This method was generated by MyBatis Generator. This method corresponds to the database table notification
public static double normalize(double value){ return value / (1.0 + value); }
<p> normalize </p>
protected void processJoinFetch(String joinFetch,ForeignReferenceMapping mapping){ if (joinFetch == null) { mapping.setJoinFetch(ForeignReferenceMapping.NONE); } else if (joinFetch.equals(JoinFetchType.INNER.name())) { mapping.setJoinFetch(ForeignReferenceMapping.INNER_JOIN); } else { mapping.setJ...
INTERNAL: Return the mapping join fetch type.
protected void addStateConfigurationIdxPropertyDescriptor(Object object){ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_StateSwitch_stateConfigurationIdx_feature"),getString("_UI_PropertyDescriptor_descr...
This adds a property descriptor for the State Configuration Idx feature. <!-- begin-user-doc --> <!-- end-user-doc -->
public void prune() throws Exception { if (!m_isLeaf) { for (int i=0; i < m_sons.length; i++) son(i).prune(); if (Utils.smOrEq(errorsForLeaf(),errorsForTree())) { m_sons=null; m_isLeaf=true; m_localModel=new NoSplit(localModel().distribution()); } } }
Prunes a tree.
public static void isUpdate(Context context,UpdateListener listener){ init(context); try { if (aidlService != null) { aidlService.updateApk(); } else { cacheEventList.add(new AIDLCacheEvent(EventType.UPDATE_APK)); } } catch ( RemoteException e) { EventManager.onError(context,e.getMe...
Dose update the application or not , the method is kept to use in the future install app need this permission - <android.permission.INSTALL_PACKAGES/>
private static int parseInt(String value,int beginIndex,int endIndex) throws NumberFormatException { if (beginIndex < 0 || endIndex > value.length() || beginIndex > endIndex) { throw new NumberFormatException(value); } int i=beginIndex; int result=0; int digit; if (i < endIndex) { digit=Character.di...
Parse an integer located between 2 given offsets in a string
@Override public void onClose() throws IOException { write(new byte[1024 + 512 - (int)(getBytesWritten() % 512L)]); }
Writes the end of archive marker.
protected void parseAdaptationSetChild(XmlPullParser xpp) throws XmlPullParserException, IOException { }
Parses children of AdaptationSet elements not specifically parsed elsewhere.
public String errorString(String err,Object arg1,Object arg2,Object arg3){ String key=null; if (err.startsWith("warn.")) key="javac.err." + err.substring(5); else key="javac.err." + err; return Main.getText(key,arg1 != null ? arg1.toString() : null,arg2 != null ? arg2.toString() : null,arg3 != null ? arg3.to...
Error String
public void header(String key,String... header){ headers.put(key,Arrays.asList(header)); }
Set option header.
public int hashCode(){ return parent.hashEntry(getKey(),getValue()); }
Gets the hashcode of the entry using temporary hard references. <p> This implementation uses <code>hashEntry</code> on the main map.
public String toString(int ident){ String spaces=WbXmlLiterals.identString(ident); StringBuilder sb=new StringBuilder(spaces); sb.append(this.getClass().getSimpleName()); sb.append(": "); sb.append(System.getProperty("line.separator")); ident++; for ( WbXmlAttribute pi : prePi) { sb.append("PI: "); ...
String representation with identation.
public Object runSafely(Catbert.FastStack stack) throws Exception { Object val=stack.pop(); String name=getString(stack); PseudoMenu ui=(stack.getUIMgrSafe() == null) ? null : stack.getUIMgrSafe().getCurrUI(); if (ui != null) ui.refreshByValue(name,val); return null; }
Searches all visible UI elements in the current menu finding any that have a variable with the specified name matching the specified value. For any elements it finds, it will re-evaluate and redraws its UI elements, and its children
@Override public void ack(Object msgId){ RunningJobMessageId messageId=(RunningJobMessageId)msgId; JobConstants.ResourceType type=messageId.type; LOG.info("Ack on messageId: " + messageId.toString()); switch (type) { case JOB_CONFIGURATION: case JOB_COMPLETE_INFO: try { readWriteLock.readLock().lock(); ...
add to processedJob
private void dfs(int u,int[] parent,List<Integer> searchOrder,boolean[] isVisited){ searchOrder.add(u); isVisited[u]=true; for ( Edge e : neighbors.get(u)) { if (!isVisited[e.v]) { parent[e.v]=u; dfs(e.v,parent,searchOrder,isVisited); } } }
Recursive method for DFS search
public void addCapabilitiesListener(Set<ContactId> contacts,CapabilitiesListener listener) throws RcsServiceNotAvailableException, RcsGenericException { if (mApi == null) { throw new RcsServiceNotAvailableException(); } if (contacts == null || contacts.isEmpty()) { throw new RcsIllegalArgumentException("c...
Registers a capabilities listener on a list of contacts
void _m22(float m22){ this.m22=m22; }
Set the value of the matrix element at column 2 and row 2
public static <T>void fill(List<? super T> list,T object){ ListIterator<? super T> it=list.listIterator(); while (it.hasNext()) { it.next(); it.set(object); } }
Fills the specified list with the specified element.
public String alignmentString(){ if (f2eAlignment == null) f2eAlignment=alignmentGrid().toString(); return f2eAlignment; }
Pull out word-to-word source-&gt;target alignments.
public boolean openWr(){ read=false; try { out=new FileOutputStream(file); buffOut=new BufferedOutputStream(out); return true; } catch ( IOException e) { return false; } }
Open file for writing
public AllocatableValue spillSlot(){ return splitParent().spillSlot; }
Gets the canonical spill slot for this interval.
public IOException(Throwable cause){ super(cause == null ? null : cause.toString(),cause); }
Constructs a new instance of this class with its detail cause filled in.
public static List<TriggerDto> transformToDto(List<Trigger> triggers){ List<TriggerDto> result=new ArrayList<TriggerDto>(); for ( Trigger trigger : triggers) { result.add(transformToDto(trigger)); } return result; }
Converts list of trigger entity objects to list of triggerDto objects.
public boolean isSelected(){ return false; }
Always returns <code>false</code> because root group isn't selectable.
public boolean isProcessed(){ Object oo=get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Processed.
public void compose(StylesheetRoot sroot) throws TransformerException { if (null == m_selectPattern && sroot.getOptimizer()) { XPath newSelect=rewriteChildToExpression(this); if (null != newSelect) m_selectPattern=newSelect; } StylesheetRoot.ComposeState cstate=sroot.getComposeState(); java.util.Vec...
This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition.
private boolean installReply(String alias,InputStream in) throws Exception { if (alias == null) { alias=keyAlias; } Pair<Key,char[]> objs=recoverKey(alias,storePass,keyPass); PrivateKey privKey=(PrivateKey)objs.fst; if (keyPass == null) { keyPass=objs.snd; } Certificate userCert=keyStore.getCertif...
Processes a certificate reply from a certificate authority. <p>Builds a certificate chain on top of the certificate reply, using trusted certificates from the keystore. The chain is complete after a self-signed certificate has been encountered. The self-signed certificate is considered a root certificate authority, and...
public boolean isNewFlag(){ return newFlag; }
Gets the value of the newFlag property.
public static URI createUriFromServerSet(Set<InetSocketAddress> serverInetSet,String path) throws URISyntaxException { return createUriFromServerSet(serverInetSet,path,"http"); }
Returns the URI of a random server.
public static <T>List<T> synchronizedList(List<T> list){ if (list == null) { throw new NullPointerException(); } if (list instanceof RandomAccess) { return new SynchronizedRandomAccessList<T>(list); } return new SynchronizedList<T>(list); }
Returns a wrapper on the specified List which synchronizes all access to the List.
public boolean removePrefix(final String prefix){ boolean changed; if (txt.startsWith(prefix)) { txt=txt.substring(prefix.length()); changed=true; } else { changed=false; } return changed; }
Removes a prefix, if present. If the prefix was found at the beginning of the object name, it is removed. Otherwise txt remains unchanged.
public int add(long bucket,int k){ sizes=bigArrays.grow(sizes,bucket + 1); assert k != 0; for (int i=(k & mask); ; i=(i + 1) & mask) { final int v=get(bucket,i); if (v == 0) { set(bucket,i,k); return sizes.increment(bucket,1); } else if (v == k) { return -1; } } }
Add <code>k</code> to the hash table associated with <code>bucket</code>. Return <tt>-1</tt> if the value was already in the set or the new set size if it was added.
public boolean add(final double[] a){ int i=d, l=a.length; long bits[]=this.bits; boolean alreadySet=true; while (i-- != 0) alreadySet&=set(bits,hash(a,l,i)); if (!alreadySet) size++; return !alreadySet; }
Adds a double array to the filter.
private void zzDoEOF(){ if (!zzEOFDone) { zzEOFDone=true; } }
Contains user EOF-code, which will be executed exactly once, when the end of file is reached
private void passingPlay(Team offense,Team defense){ int yardsGain=0; boolean gotTD=false; boolean gotFumble=false; double WR1pref=Math.pow(offense.getWR(0).ratOvr,1) * Math.random(); double WR2pref=Math.pow(offense.getWR(1).ratOvr,1) * Math.random(); double WR3pref=Math.pow(offense.getWR(2).ratOvr,1) * Mat...
Passing play.
public static List<UsageLicense> createUsageLicenses(DataService mgr,List<PlatformUser> users,Subscription subscription) throws NonUniqueBusinessKeyException { List<UsageLicense> licenses=new ArrayList<UsageLicense>(); for ( PlatformUser user : users) { licenses.add(createUsageLicense(mgr,user,subscription)); ...
Create a usage license for each of the given user and the given subscription
public void testCookiesAreNotLogged() throws IOException, URISyntaxException { server.enqueue(new MockResponse().addHeader("Set-Cookie: password=secret; Domain=fake.domain")); server.play(); ByteArrayOutputStream out=new ByteArrayOutputStream(); Logger logger=Logger.getLogger("org.apache.http"); StreamHandler...
Test that we don't log potentially sensitive cookie values. http://b/3095990
@Override public void onReceivedHttpAuthRequest(WebView view,HttpAuthHandler handler,String host,String realm){ AuthenticationToken token=this.getAuthenticationToken(host,realm); if (token != null) { handler.proceed(token.getUserName(),token.getPassword()); return; } PluginManager pluginManager=this.par...
On received http auth request. The method reacts on all registered authentication tokens. There is one and only one authentication token for any host + realm combination
@Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.camera); getIntentData(); CameraManager.init(getApplication()); viewfinderView=(ViewfinderView)findViewById(R.id.viewfinder_view); hasSurface=false; inactivityTimer=new InactivityTimer(th...
Called when the activity is first created.
private void processJournal() throws IOException { deleteIfExists(journalFileTmp); for (Iterator<Entry> i=lruEntries.values().iterator(); i.hasNext(); ) { Entry entry=i.next(); if (entry.currentEditor == null) { for (int t=0; t < valueCount; t++) { size+=entry.lengths[t]; } } else {...
Computes the initial size and collects garbage as a part of opening the cache. Dirty entries are assumed to be inconsistent and will be deleted.
public JAXPDOMTestDocumentBuilderFactory(DocumentBuilderFactory baseFactory,DocumentBuilderSetting[] settings) throws DOMTestIncompatibleException { super(settings); if (baseFactory == null) { factory=DocumentBuilderFactory.newInstance(); } else { factory=baseFactory; } if (settings != null) { fo...
Creates a JAXP implementation of DOMTestDocumentBuilderFactory.
public VisorIgfs(String name,IgfsMode mode,VisorIgfsMetrics metrics,boolean secondaryFsConfigured){ this.name=name; this.mode=mode; this.metrics=metrics; this.secondaryFsConfigured=secondaryFsConfigured; }
Create data transfer object.
protected void process(DBIDRef id,ArrayDBIDs ids,DBIDArrayIter it,int n,WritableDBIDDataStore pi,WritableDoubleDataStore lambda,WritableDoubleDataStore m){ slinkstep3(id,it,n,pi,lambda,m); slinkstep4(id,it,n,pi,lambda); }
SLINK main loop.
public String invertSelectionTipText(){ return "Determines whether action is to select or delete." + " If set to true, only the specified attributes will be kept;" + " If set to false, specified attributes will be deleted."; }
Returns the tip text for this property
protected String doIt() throws Exception { int To_C_Order_ID=getRecord_ID(); log.info("From C_Order_ID=" + p_C_Order_ID + " to "+ To_C_Order_ID); if (To_C_Order_ID == 0) throw new IllegalArgumentException("Target C_Order_ID == 0"); if (p_C_Order_ID == 0) throw new IllegalArgumentException("Source C_Order_ID...
Perform process.
private void swapRowsAndColumns(double[][] A,int i,int j){ int n=A[0].length; double[] tr; double ts; tr=A[i]; A[i]=A[j]; A[j]=tr; for (int k=0; k < n; k++) { ts=A[k][i]; A[k][i]=A[k][j]; A[k][j]=ts; } }
Swap the rows / columns of a symmetric n x n matrix, which is represented as a double[][].
public void testEnglishInput() throws Exception { ArabicAnalyzer a=new ArabicAnalyzer(); assertAnalyzesTo(a,"English text.",new String[]{"english","text"}); a.close(); }
Non-arabic text gets treated in a similar way as SimpleAnalyzer.
public void update(){ }
Update the model; currently used to remove unused data when in "fixed width" mode.
public void init(){ connection.addConnectionListener(this); connection.addPacketListener(listener,filter); }
Initializes the listeners to detect received room invitations and to detect when the connection gets closed. As soon as a room invitation is received the invitations listeners will be fired. When the connection gets closed the monitor will remove his listeners on the connection.
public void print(int i) throws IOException { if (_startLine) printIndent(); _os.print(i); _lastCr=false; }
Prints an integer.
public boolean isVideoCallsEnabled(){ return videoCallsEnabled; }
Getting If Video Calls Enabled
public LinkedStructSet(StructTypeImpl structType){ if (structType == null) { throw new IllegalArgumentException(LocalizedStrings.SortedStructSet_STRUCTTYPE_MUST_NOT_BE_NULL.toLocalizedString()); } this.structType=structType; }
Creates a new instance of StructSet
public void testReplicatedOversize() throws Exception { cacheMode=REPLICATED; check(); }
Ensure that exception is thrown in case REPLICATED cache is oversized.
protected void paint(SynthContext context,Graphics g){ }
Paints the specified component. This implementation does nothing.
public String toString(){ String result; boolean comma_flag; result="{"; comma_flag=false; for (int t=0; t < terminal.number(); t++) { if (_elements.get(t)) { if (comma_flag) result+=", "; else comma_flag=true; result+=terminal.find(t).name(); } } result+="}"; return res...
Convert to string.
public static _Fields findByThriftId(int fieldId){ switch (fieldId) { case 1: return HEADER; case 2: return COUNT; default : return null; } }
Find the _Fields constant that matches fieldId, or null if its not found.
public static boolean hasInfiniteProgressPanel(final Shell shell){ return getInfiniteProgressPanelFor(shell) != null; }
Check if a shell has an associated progress panel
@Override @CanIgnoreReturnValue public int read() throws IOException { int b=in.read(); if (b != -1) { hasher.putByte((byte)b); } return b; }
Reads the next byte of data from the underlying input stream and updates the hasher with the byte read.
public VirtualArrayRestRep create(VirtualArrayCreateParam input){ return client.post(VirtualArrayRestRep.class,input,baseUrl); }
Creates a virtual array. <p> API Call: <tt>POST /vdc/varrays</tt>
public String toString(){ return group; }
Prints a stringified version of the group.
public TerminalGUI(TerminalExample example){ super(example.getName() + " Output"); this.example=example; layoutComponents(); setupActions(); setVisible(true); runExample(); }
Constructs and displays a new terminal GUI. The example starts running immediately after the GUI is displayed.
public DefaultConfigurationFactory(ClassLoader classLoader){ super(); AbstractFactoryRegistry.register(classLoader,this); }
Register configuration name mappings.
public AugmentedWebFunctions augmented(){ return augmentedFunctions; }
Augmented functionality that runs inside this AugmentedWebElement.
protected void processConverts(List<ConvertMetadata> converts,DatabaseMapping mapping,MetadataClass referenceClass,boolean isForMapKey){ if (converts != null) { for ( ConvertMetadata convert : converts) { convert.process(mapping,referenceClass,getClassAccessor(),isForMapKey); } } }
INTERNAL: Process the JPA defined convert(s)
public ImException(String message){ super(message); }
Creates a new ImException with the specified detail message.
public static boolean processDefinedGlobalArrayNames(Project project,Processor<String> processor){ return PerlStubIndex.getInstance().processAllKeys(PerlVariablesStubIndex.KEY_ARRAY,project,processor); }
Processes all global arrays names with specific processor
String popImportURL(){ return (String)m_importStack.pop(); }
Pop an import href from the stylesheet stack.
private double minIgnoreNaN(double a,double b){ if (Double.isNaN(a)) { return b; } if (Double.isNaN(b)) { return a; } return Math.min(a,b); }
A function to find the minimum of two values, but ignoring any Double.NaN values.