code
stringlengths
10
174k
nl
stringlengths
3
129k
public void testBug8792() throws Exception { DatabaseMetaData dbmd=this.conn.getMetaData(); assertTrue(dbmd.supportsResultSetConcurrency(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY)); assertTrue(dbmd.supportsResultSetConcurrency(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_UPDATABLE)); assertTrue(dbm...
Tests fix for BUG#8792 - DBMD.supportsResultSetConcurrency() not returning true for forward-only/read-only result sets (we obviously support this).
static void errorInvalidAttributeValue(String systemID,int lineNr,String elementName,String attributeName,String attributeValue) throws XMLValidationException { throw new XMLValidationException(XMLValidationException.ATTRIBUTE_WITH_INVALID_VALUE,systemID,lineNr,elementName,attributeName,attributeValue,"Invalid value ...
Throws an XMLValidationException to indicate that an attribute has an invalid value.
static private String readFromFile(final File file) throws IOException { if (file.isDirectory()) throw new IllegalArgumentException(); final LineNumberReader r=new LineNumberReader(new FileReader(file)); try { final StringBuilder sb=new StringBuilder(); String s; while ((s=r.readLine()) != null) { ...
Read the contents of a file. <p> Note: This makes default platform assumptions about the encoding of the file.
public static String print(Node node,boolean canonical,boolean normalize){ StringBuffer sb=new StringBuffer(); if (node == null) { return null; } int type=node.getNodeType(); switch (type) { case Node.DOCUMENT_NODE: { if (!canonical) { String Encoding="UTF-8"; sb.append("<?xml version=...
Gets String representation of a given Node
public boolean unlockIt(){ log.info(toString()); setProcessing(false); return true; }
Unlock Document.
private static String javaCharset(String charset){ if (charset == null) { return null; } String mappedCharset=MIME2JAVA.get(charset.toLowerCase(Locale.ENGLISH)); if (mappedCharset == null) { return charset; } return mappedCharset; }
Translate a MIME standard character set name into the Java equivalent.
NodeTextRep substituteInNodeText(FormalParamNode[] formalParams,String[] arguments,boolean[] isBoundedIdRenaming,SemanticNode[] argNodes,ExprNode sn,NodeTextRep nodeTextRep,Decomposition decomp){ NodeTextRep result=nodeTextRep.clone(); int numOfLines=result.nodeText.length; Vector<Insertion>[] inserts=new Vector[...
The following bug fixed by LL on 3 July 2014: Decomposing foo(p) == \A x : p <=> A \/ B THEOREM foo(\/ C') produces the new goal ASSUME NEW x PROVE \/ C' <=> A \/ B --------- Assumes that nodeTextRep is the NodeTextRep for the ExprNode sn (possibly after some substitutions have been mad...
public CompoundExpr_ createCompoundExpr_(){ CompoundExpr_Impl compoundExpr_=new CompoundExpr_Impl(); return compoundExpr_; }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
@AssistedInject public TunnelResource(@Assisted UserTunnel tunnel){ this.tunnel=tunnel; }
Creates a new TunnelResource which exposes the operations and subresources available for the given tunnel.
public void visitConstantExpression(ConstantExpression expression){ final String constantName=expression.getConstantName(); if (controller.isStaticConstructor() || constantName == null) { controller.getOperandStack().pushConstant(expression); } else { controller.getMethodVisitor().visitFieldInsn(GETSTATI...
Generate byte code for constants
public boolean excludeMatches(String formattedStackTrace){ return matches(excludePattern,formattedStackTrace); }
Indicate if this stack trace matches one of the excluded packages
public static void delete(@As(",") String[] ids){ delete(uris(ids)); }
Deletes the specified virtual arrays.
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
boolean isActive(){ return timeStamp != 0; }
Check if the predictor is expecting a move event to end a time measurement.
public void destroy(){ if (!this.closed) { lockCompactor(); try { this.basicClose(); } finally { unlockCompactor(); } } }
Destroys this oplog. First it will call close which will cleanly close all Async threads. The deletion of lock files will be taken care of by the close. Close will also take care of deleting the files if it is overflow only mode
private void buildOptions(Options options){ OptionBuilder.withArgName(OPTION_HELP); OptionBuilder.withLongOpt(OPTION_HELP); OptionBuilder.isRequired(false); OptionBuilder.withDescription("Print help message and exit."); options.addOption(OptionBuilder.create('h')); OptionBuilder.withArgName(OPTION_INPUT_JSO...
Method for building the allowed options.
@Override protected void ensureNumberOfColumns(int numberOfColumns){ }
Does nothing.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-06 12:50:10.517 -0400",hash_original_method="119B60645D483F809E3A96FC8309D1F9",hash_generated_method="E6C38C6C759418E657BA31E557B3EE66") public boolean isFailed(){ PrintService.throwIfNotCalledOnMainThread(); return getInfo().getState() ...
Gets whether this print job is failed. Such a print job is not successfully printed due to an error. This is a final state.
public boolean isWinNT(){ return System.getProperty("os.name").toLowerCase().indexOf("nt") >= 0; }
Check whether this is an Windows NT environment.
public static ArrayList<Category> ParseCategories(JSONObject jsonTotalObject){ ArrayList<Category> categoryArrayList=new ArrayList<>(); try { JSONArray categories=jsonTotalObject.getJSONArray("categories"); Category recent=new Category(); recent.setName("Recent"); recent.setId(0); categoryArrayL...
Parse JSON data in the webSide and return a List of category
public List<Bucket> bucketList(){ return bucketList; }
Returns List of Buckets.
public void receiveSipMsrpSessionInvitation(GenericSipMsrpSession session){ ContactId remote=session.getRemoteContact(); MultimediaMessagingSessionImpl multimediaMessaging=new MultimediaMessagingSessionImpl(session.getSessionID(),mMultimediaMessagingSessionEventBroadcaster,mSipService,this,Direction.INCOMING,remote...
Receive a new SIP session invitation with MRSP media
public Bits xorSet(Bits xs){ Assert.check(currentState != BitsState.UNKNOWN); sizeTo(xs.bits.length); for (int i=0; i < xs.bits.length; i++) { bits[i]=bits[i] ^ xs.bits[i]; } currentState=BitsState.NORMAL; return this; }
this set = this set ^ xs.
public void fireMessageEvent(StunMessageEvent evt){ TransportAddress localAddr=evt.getLocalAddress(); MessageTypeEventHandler<?>[] messageListenersCopy; synchronized (messageListeners) { messageListenersCopy=messageListeners.toArray(new MessageTypeEventHandler<?>[messageListeners.size()]); } char messageTyp...
Dispatch a StunMessageEvent to any registered listeners.
public List<KrigingPoint> interpolatePoints(Variogram variogram,List<KrigingPoint> pnts,int numberOfNearestPoints){ double[][] D=new double[numberOfNearestPoints + 1][1]; List<KrigingPoint> nnPoints=new ArrayList(); List<KrigingPoint> outPnts=new ArrayList(); int progress; int oldProgress=-1; int numPoints=...
Gets the variogram and unknown point list and returns the interpolated values for the unknown points It also calculates the Kriging Variance and sets the KrigingPoint.V
DropLocation dropLocationForPoint(Point p){ DropLocation location=null; Rectangle rect=null; int index=locationToIndex(p); if (index != -1) { rect=getCellBounds(index,index); } switch (dropMode) { case USE_SELECTION: case ON: location=new DropLocation(p,(rect != null && rect.contains(p)) ? index : -1,...
Calculates a drop location in this component, representing where a drop at the given point should insert data.
public final int accumulateAndGet(int x,IntBinaryOperator accumulatorFunction){ int prev, next; do { prev=get(); next=accumulatorFunction.applyAsInt(prev,x); } while (!compareAndSet(prev,next)); return next; }
Atomically updates the current value with the results of applying the given function to the current and given values, returning the updated value. The function should be side-effect-free, since it may be re-applied when attempted updates fail due to contention among threads. The function is applied with the current va...
@Override public void run(){ amIActive=true; String inputHeader1=null; String inputHeader2=null; String outputHeader=null; boolean image1Bool=false; boolean image2Bool=false; double constant1=0; double constant2=0; if (args.length < 3) { showFeedback("Plugin parameters have not been set."); re...
Used to execute this plugin tool.
VPlexConsistencyGroupInfo findConsistencyGroup(String cgName,List<VPlexClusterInfo> clusterInfoList,boolean fetchAtts,boolean retry) throws VPlexApiException { int retryCount=0; VPlexConsistencyGroupInfo cgInfo=null; while (++retryCount <= VPlexApiConstants.FIND_NEW_ARTIFACT_MAX_TRIES) { try { cgInfo=nu...
Finds the consistency group with the passed name.
public ASN1Primitive toASN1Primitive(){ ASN1EncodableVector v=new ASN1EncodableVector(); v.add(keyAttrId); v.add(keyAttr); return new DERSequence(v); }
Produce an object suitable for an ASN1OutputStream.
@Override public void addOOVRules(int sourceWord,List<FeatureFunction> featureFunctions){ final int targetWord=this.joshuaConfiguration.mark_oovs ? Vocabulary.id(Vocabulary.word(sourceWord) + "_OOV") : sourceWord; int[] sourceWords={sourceWord}; int[] targetWords={targetWord}; final String oovAlignment="0-0"; ...
Takes an input word and creates an OOV rule in the current grammar for that word.
public void init(int WindowNo,FormFrame frame){ log.info(""); m_WindowNo=WindowNo; m_frame=frame; try { dynInit(); jbInit(); frame.getContentPane().add(centerPanel,BorderLayout.CENTER); frame.getContentPane().add(southPanel,BorderLayout.SOUTH); } catch ( Exception e) { log.log(Level.SEVE...
Initialize Panel
public boolean unProject(double x,double y,Viewport viewport,Vec3 nearResult,Vec3 farResult){ if (viewport == null) { throw new IllegalArgumentException(Logger.logMessage(Logger.ERROR,"Matrix4","unProject","missingViewport")); } if (nearResult == null || farResult == null) { throw new IllegalArgumentExcep...
Un-projects a screen coordinate point to Cartesian coordinates at the near clip plane and the far clip plane. This method assumes this matrix represents an inverse modelview-projection matrix. The result of this method is undefined if this matrix is not an inverse modelview-projection matrix. <p/> The screen point is u...
public synchronized boolean isRequestConsumable(SIPRequest dialogRequest){ if (dialogRequest.getMethod().equals(Request.ACK)) throw new RuntimeException("Illegal method"); if (!this.isSequnceNumberValidation()) { return true; } return remoteSequenceNumber < dialogRequest.getCSeq().getSeqNumber(); }
Return true if this request can be consumed by the dialog.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:01:50.016 -0500",hash_original_method="AF3A14095123D56D09822378D0F36CC8",hash_generated_method="AAC6E813101FE7A1B2D6DEBB4EB4C029") public final static String formatStatusLine(final StatusLine statline,LineFormatter formatter){ if (fo...
Formats a status line.
public boolean isLocal(){ return true; }
Special checks
protected OMGraphicList constructGraticuleLines(float up,float down,float left,float right,int showWhichLines){ OMGraphicList lines=new OMGraphicList(); int north=(int)Math.ceil(up); if (north > 80) north=80; int south=(int)Math.floor(down); south-=(south % 10); if ((south < 0 && south > -80) || south == ...
Construct the five degree and one degree graticule lines, depending on the showWhichLines setting. Assumes that the coordinates passed in do not cross the dateline, and that the up is not greater than 80 and that the south is not less than -80.
private void rehash(){ int oldCapacity=table.length; Entry oldMap[]=table; int newCapacity=oldCapacity * 2 + 1; Entry newMap[]=new Entry[newCapacity]; modCount++; threshold=(int)(newCapacity * loadFactor); table=newMap; for (int i=oldCapacity; i-- > 0; ) { for (Entry old=oldMap[i]; old != null; ) { ...
Rehashes the contents of this map into a new <tt>IdentityHashMap</tt> instance with a larger capacity. This method is called automatically when the number of keys in this map exceeds its capacity and load factor.
public String globalInfo(){ return m_globalInfo; }
Global info (if it exists) for the wrapped filter
public boolean isFloating(ICalProperty property){ if (containsIdentity(floatingProperties,property)) { return true; } if (propertyTimezones.containsKey(property)) { return false; } return globalFloatingTime; }
Determines if a property value should be formatted in floating time when written to an output stream.
public void stopTimer(){ if (timer != null) { timer.cancel(); timer.purge(); timer=null; } if (timerButton != null) { timerButton.setSelected(false); } }
Called when the timer should be stopped.
public static CCBezierBy action(float t,CCBezierConfig c){ return new CCBezierBy(t,c); }
creates the action with a duration and a bezier configuration
public void dumpToStdout(){ int oldRegCount=interference.size(); for (int i=0; i < oldRegCount; i++) { StringBuilder sb=new StringBuilder(); sb.append("Reg " + i + ":"+ interference.get(i).toString()); System.out.println(sb.toString()); } }
Dumps interference graph to stdout for debugging.
private void applyOnewayHierarchically(Node node,OneWay oneWay,EnumMap<Node,OneWay> tree){ tree.put(node,oneWay); Node[] children=node.getChildren(); if (children != null) { for ( Node child : children) { applyOnewayHierarchically(child,oneWay,tree); } } }
apply oneway hierarchically.
@Override public int calculateBattleValue(boolean ignoreC3,boolean ignorePilot){ double dbv; dbv=men * 1.5 * getDamageDivisor(); int tmmRan=Compute.getTargetMovementModifier(getRunMP(false,true,true),false,false,game).getValue(); final int jumpMP=getJumpMP(false); final int tmmJumped=(jumpMP > 0) ? Compute.ge...
Calculates the battle value of this platoon.
protected int unwrapKey(Object key){ return ((Integer)key).intValue(); }
Unwraps a key
public KeyStroke(KeyCode... keyCodes){ this(); addKeys(keyCodes); }
Create a KeyStroke with Keys.
private static PCalLocation GetLastLocationEnd(){ return new PCalLocation(lastTokLine - 1,lastTokCol - 1 + lastTokString.length()); }
Returns the PCalLocation object corresponding to the position to the right of the last token returned by GetAlgToken or gobbled by a Gobble... method.
public static String nextCode(final Date d,final boolean mainCycle){ final Date date=nextDate(d,mainCycle); return code(date); }
Returns next cycle IMM code
public void run(){ String currLine=null; try { rdr=new BufferedReader(new InputStreamReader(url.openStream())); while ((currLine=rdr.readLine()) != null) { notifyTelegram(currLine.toCharArray()); } } catch ( IOException e) { e.printStackTrace(); } }
load data from specifired URL
public Namespace(final NamespaceConfig nsConf,final Map<String,?> input,final Map<String,?> overrides){ checkArgument(nsConf != null,"nsConf is required"); checkArgument(MapUtils.isNotEmpty(input),"input map cannot be null or empty"); this.nsConf=nsConf; makeAssignments(input,overrides); }
Constructs new namespace. Verifies the input is sane (has entry for the primary unit). Evaluates the assignments and caches the result.
public static String unknownSymbolName(int id){ assert id > 0; return "$" + id; }
Generate the string representation of a symbol with an unknown id.
static Source newSource(VirtualFile f,long fileTime,VirtualFile pathRoot,String relativePath,String shortName,Object owner,boolean isInternal,boolean isRoot,boolean isDebuggable,Set<VirtualFile> includes,Map<VirtualFile,Long> includeTimes,LocalLogger logger){ Source s=new Source(f,pathRoot,relativePath,shortName,owne...
Creates a Source object, given a VirtualFile
public static void storeSpecializedMethod(CompiledMethod cm,int smid){ specializedMethods[smid]=cm.getEntryCodeArray(); }
Associates a particular compiled method with a specialized method id.
@SuppressWarnings("unchecked") public <T extends WebMediumConfig>T update(T config){ config.addCredentials(this); String xml=POST(this.url + "/update-" + config.getType(),config.toXML()); Element root=parse(xml); if (root == null) { return null; } try { config=(T)config.getClass().newInstance(); ...
Update the content.
private static CompiledMethod optCompileWithFallBackInternal(NormalMethod method,CompilationPlan plan){ if (VM.BuildForOptCompiler) { if (method.hasNoOptCompileAnnotation()) return fallback(method); try { return optCompile(method,plan); } catch ( OptimizingCompilerException e) { String...
This real method that performs the opt compilation.
public static String eachMatch(String self,String regex,@ClosureParams(value=FromString.class,options={"List<String>","String[]"}) Closure closure){ return eachMatch(self,Pattern.compile(regex),closure); }
Process each regex group matched substring of the given string. If the closure parameter takes one argument, an array with all match groups is passed to it. If the closure takes as many arguments as there are match groups, then each parameter will be one match group.
public static String toJobReferenceString(JobReference jobRef){ return jobRef.getProjectId() + ":" + jobRef.getJobId(); }
Returns the canonical string format for a JobReference object (the project ID and then job ID, delimited by a single colon) since JobReference.toString() is not customized to return it.
private boolean systemJarInWebinf(String path){ if (path.indexOf("/WEB-INF/") < 0) { return false; } Boolean useMyFaces=(Boolean)ctxt.getServletContext().getAttribute("com.sun.faces.useMyFaces"); if (useMyFaces == null || !useMyFaces) { for ( String jar : systemJsfJars) { if (path.indexOf(jar) ...
Return true if the path refers to a jar file in WEB-INF and is a system jar.
public boolean isEmployee(){ Object oo=get_Value(COLUMNNAME_IsEmployee); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Employee.
public static Bitmap createThumbnailBitmap(Bitmap bitmap,Context context){ int sIconWidth=-1; int sIconHeight=-1; final Resources resources=context.getResources(); sIconWidth=sIconHeight=(int)resources.getDimension(android.R.dimen.app_icon_size); final Paint sPaint=new Paint(); final Rect sBounds=new Rect()...
Returns a Bitmap representing the thumbnail of the specified Bitmap.
public Add(){ super("+",2); }
The addition of 2 parameters.
public static void main(final String[] args){ DOMTestCase.doMain(elementgetattributenodens01.class,args); }
Runs this test from the command line.
public String extremeValuesFactorTipText(){ return "The factor for determining the thresholds for extreme values."; }
Returns the tip text for this property
public static <T>Response<T> error(HttpException error){ return new Response<T>(error); }
To return a failed HttpRespond
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:16.595 -0500",hash_original_method="7291D1B6F4C3ED0E6F576F289818668E",hash_generated_method="DD6AFDA8080022B03F0CD64EB972EE57") private boolean decodeNoValue(int startIndex){...
Check if the next byte is No-Value
public static <T>int binarySearch(T[] array,T object,Comparator<? super T> comparator){ return binarySearch(array,0,array.length,object,comparator); }
Performs a binary search for the specified element in the specified sorted array using the Comparator to compare elements.
public MySqlValueConverters(boolean adaptiveTimePrecision){ this(adaptiveTimePrecision,ZoneOffset.UTC); }
Create a new instance that always uses UTC for the default time zone when converting values without timezone information to values that require timezones. <p>
public static String quote(String s){ StringBuilder buf=new StringBuilder(); for (int i=0; i < s.length(); i++) { buf.append(quote(s.charAt(i))); } return buf.toString(); }
Escapes each character in a string that has an escape sequence or is non-printable ASCII. Leaves non-ASCII characters alone.
public boolean implementsInterface(String name){ checkLevel(HIERARCHY); Iterator<SootClass> interfaceIt=getInterfaces().iterator(); while (interfaceIt.hasNext()) { SootClass SootClass=interfaceIt.next(); if (SootClass.getName().equals(name)) return true; } return false; }
Does this class directly implement the given interface? (see getInterfaceCount())
public static <T>T checkNotNull(T reference){ if (reference == null) { throw new NullPointerException(); } return reference; }
Ensures that an object reference passed as a parameter to the calling method is not null.
public static String toString(double[][] m){ NumberFormat nf=new DecimalFormat(" 0.0000;-0.0000"); return toString(m,nf); }
Copies the given array, using a standard scientific notation number formatter and beginning each line with a tab character. The number format is DecimalFormat(" 0.0000;-0.0000").
public PowerPCTrapOperand flipCode(){ switch (value) { case EQUAL: value=NOT_EQUAL; break; case NOT_EQUAL: value=EQUAL; break; case LESS: value=GREATER_EQUAL; break; case LESS_EQUAL: value=GREATER; break; case GREATER: value=LESS_EQUAL; break; case GREATER_EQUAL: value=LESS; break; case HIGHER: value=LOWER_EQUAL;...
flips the direction of the condition
public static void extractRecords(File input,File tabix,ReferenceRanges<String> regions,OutputStream out) throws IOException { try (TabixLineReader reader=new TabixLineReader(input,tabix,regions)){ String line; while ((line=reader.readLine()) != null) { out.write(line.getBytes()); out.write(String...
extract records in given range to given output
public void put(byte[] key,byte[] value){ synchronized (myDatabase) { myDatabase.put(new ByteArrayWrapper(key),value); } }
Put password in the database
private static Map<String,String> convertHeaders(Header[] headers){ Map<String,String> result=new TreeMap<>(String.CASE_INSENSITIVE_ORDER); for (int i=0; i < headers.length; i++) { result.put(headers[i].getName(),headers[i].getValue()); } return result; }
Converts Headers[] to Map<String, String>.
public BERSet(){ }
create an empty sequence
public Label(String label){ super(label); }
Creates a label property.
public String print(String tab){ return tab + toString(); }
Returns a String-representation of this regular expression with the specified indentation.
public boolean isDefaultAsAttribute(){ return defaultAsAttribute; }
Indicator whether simple properties are rendered as attributes, this setting is false by default thereby simple properties are rendered as elements.
public void learnSymbol(int symbol){ mStartInsertionNode=insertSymbol(mStartInsertionNode,symbol); }
Updates the trie to include the specified symbol. When the symbol is inserted into the trie the node that was inserted at the highest level is tracked. This enables us to track the N most recent symbols inserted into the trie, which hence give us the user context.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public void testUnsupportedCallbackException02(){ myCallback c=new myCallback(); assertNotNull("Callback object is null",c); UnsupportedCallbackException ucE=new UnsupportedCallbackException(c); assertNull("getMessage() must return null.",ucE.getMessage()); assertEquals("Incorrect callback object was returned...
javax.security.auth.callback.UnsupportedCallbackExceptionTest#UnsupportedCallbackException(Callback callback) javax.security.auth.callback.UnsupportedCallbackExceptionTest#getCallback() Assertion: constructs with not null parameter.
private void calculateRootNode(CleanTimeValues cleanTimeValues,Set<String> namespacePrefixes){ cleanTimeValues.rootNode=cleanTimeValues.htmlNode; if (properties.isOmitHtmlEnvelope()) { List bodyChildren=cleanTimeValues.bodyNode.getAllChildren(); cleanTimeValues.rootNode=new TagNode(null); if (bodyChildr...
Assigns root node to internal variable and adds neccessery xmlns attributes if cleaner if namespaces aware. Root node of the result depends on parameter "omitHtmlEnvelope". If it is set, then first child of the body will be root node, or html will be root node otherwise.
private boolean has(int flag){ return (flags & flag) != 0; }
Determines whether the given flag is set
public void replayAnimation(){ if (null != text) { post(this); } }
Replay the animation.
public boolean hasNext(){ return this.hasNext; }
Returns <code>true</code> if the <code>Animator</code> has more elements.
protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException { try { if ((key != null) && (validTypes.contains(key.getAlgorithm().toUpperCase(Locale.ENGLISH))) && (key.getFormat().equalsIgnoreCase("RAW"))) { if (key instanceof com.sun.crypto.provider.PBEKey) { return key; }...
Translates a <code>SecretKey</code> object, whose provider may be unknown or potentially untrusted, into a corresponding <code>SecretKey</code> object of this key factory.
@Override protected void initData(){ }
Initialize the Activity data
public AclEntryImpl(){ princ=null; permList=new Vector<Permission>(); commList=new Vector<String>(); }
Contructs an empty ACL entry.
public TlsRsaPremasterSecretParameterSpec(int clientVersion,int serverVersion,byte[] encodedSecret){ this.clientVersion=checkVersion(clientVersion); this.serverVersion=checkVersion(serverVersion); if (encodedSecret == null || encodedSecret.length != 48) { throw new IllegalArgumentException("Encoded secret is ...
Constructs a new TlsRsaPremasterSecretParameterSpec.
public void onViewReady(Reason reason){ }
Called when the view of the corresponding fragment is created.
private void handleAsynchronousError(RuntimeException ex,AsyncContext ctx){ String message; if (ex instanceof EJBException && ex.getCause() instanceof EntityNotFoundException) { message=ErrorMessages.NOT_FOUND_MSG; } else if (ex instanceof EJBException && ex.getCause() instanceof OptimisticLockException) {...
Error handler for asynchronous work. Exceptions in the executor service threads cannot be handled by the standard JSP error handling mechanism. Instead, we handle all exceptions here.
protected void recordSelected(int key){ m_C_BPartner_ID=getSelectedRowKey(); refresh(); p_detailTaskPane.setCollapsed(false); return; }
A record was selected - take action to sync subordinate tables if any
private void updateMargin(int delta){ leftIndent+=delta; x+=delta; curLine.getStyle().setMargin(Component.LEFT,leftIndent); }
Updates the current margin with the given delta
private static void doCopyFile(File srcFile,File destFile,boolean preserveFileDate) throws IOException { if (destFile.exists() && destFile.isDirectory()) { throw new IOException("Destination '" + destFile + "' exists but is a directory"); } FileInputStream fis=null; FileOutputStream fos=null; FileChannel ...
Internal copy file method.
public static double cbrt(double x){ long inbits=Double.doubleToRawLongBits(x); int exponent=(int)((inbits >> 52) & 0x7ff) - 1023; boolean subnormal=false; if (exponent == -1023) { if (x == 0) { return x; } subnormal=true; x*=1.8014398509481984E16; inbits=Double.doubleToRawLongBits(x);...
Compute the cubic root of a number.
final Entry removeEntryForKey(Object key){ int hash=(key == null) ? 0 : hash(hashingStrategy.hashCode(key)); int i=indexFor(hash,table.length); Entry prev=table[i]; Entry e=prev; while (e != null) { Entry next=e.next; Object k; if (e.hash == hash && ((k=e.key) == key || (key != null && hashingStra...
Removes and returns the entry associated with the specified key in the IntHashMap. Returns null if the IntHashMap contains no mapping for this key.
private void initPseudoCounts(){ Arrays.fill(pseudoM,1.0); Arrays.fill(pseudoN,1.0); pseudoRho=1.0; }
Initialize pseudo counts uniformly.