code
stringlengths
10
174k
nl
stringlengths
3
129k
public void createContainer(){ hierarchicalContainer=new HierarchicalContainer(); hierarchicalContainer.addContainerProperty(SPUIDefinitions.ACTION_HIS_TBL_ACTIVE_HIDDEN,String.class,null); hierarchicalContainer.addContainerProperty(SPUIDefinitions.ACTION_HIS_TBL_FORCED,Action.class,null); hierarchicalContainer...
Create a empty HierarchicalContainer.
@Override public boolean eIsSet(int featureID){ switch (featureID) { case UmplePackage.PROGRAM___ANONYMOUS_PROGRAM_11: return anonymous_program_1_1 != null && !anonymous_program_1_1.isEmpty(); } return super.eIsSet(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public ParameterTypeProcessLocation(String key,String description,boolean allowEntries,boolean allowDirectories,boolean allowAbsoluteEntries,boolean optional){ super(key,description,allowEntries,allowDirectories,allowAbsoluteEntries,optional); }
Creates a new parameter type for files with the given extension. If the extension is null no file filters will be used.
@Override public String globalInfo(){ return "A Deep Back-Propagation Neural Network. " + "For more information see:\n" + getTechnicalInformation().toString(); }
Description to display in the GUI.
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; int row, col, x, y; double z; float progress=0; int a; int filterSizeX=3; int filterSizeY=3; double n; double sum; double sumOfTheSquares; double average; double stdDev; int dX[]; int dY[]; ...
Used to execute this plugin tool.
public final E firstElement(){ return get(0); }
Returns the first element of the vector.
public void createTables(TableCreationMode mode){ ArrayList<Type<?>> sorted=sortTypes(); try (Connection connection=getConnection();Statement statement=connection.createStatement()){ connection.setAutoCommit(false); if (mode == TableCreationMode.DROP_CREATE) { executeDropStatements(statement); } ...
Create the tables over the connection.
@Override protected void writeToXML(IAnalyzedInterval analyzedInterval,AnalyzedIntervalType jaxbAnalyzedInterval,Marshaller marshaller) throws AdeException { File outFile=getIntervalV2FullXMLFile(analyzedInterval,m_outputInGZipFormat); if (m_verbose) { System.out.println("saving Ade V2 full xml in " + outFile.g...
Output the content to a XML file. This method intended for override by subclass to customize the XML output format.
public boolean isAscending(){ return m_asc; }
Indicates if the axis values should be presented in ascending order along the axis.
public void add(Component componentToAdd,String id,double percentX,double percentY,double percentWidth,double percentHeight){ add(componentToAdd); mosaicPaneListeners.componentAdded(componentToAdd,id,percentX,percentY,percentWidth,percentHeight); }
Called to add an object to be laid out, to the layout engine.
private void preconditionTest(){ final long token=req.token(); getQuorum().assertQuorum(token); assertHAReady(token); final QuorumService<HAGlue> quorumService=getQuorum().getClient(); if (!quorumService.isFollower(token)) throw new QuorumException(); final long localCommitCounter=getRootBlockView().getCo...
Check various conditions that need to be true. <p> Note: We do this once before we take the barrier lock and once after. We need to do this before we take the barrier lock to avoid a distributed deadlock when a service is attempting to do runWithBarrierLock() to join concurrent with the GATHER of a 2-phase commit. We d...
public void init(int WindowNo,FormFrame frame){ log.info(""); m_WindowNo=WindowNo; m_frame=frame; try { jbInit(); dynInit(); frame.getContentPane().add(mainPanel,BorderLayout.CENTER); frame.getContentPane().add(confirmPanel,BorderLayout.SOUTH); } catch ( Exception e) { log.log(Level.SEVE...
Initialize Panel
public static void main(final String[] args){ DOMTestCase.doMain(hc_documentcreateattribute.class,args); }
Runs this test from the command line.
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; int row, col, x, y; float progress=0; double slope; double z, z2; int i; int[] dX=new int[]{1,1,1,0,-1,-1,-1,0}; int[] dY=new int[]{-1,0,1,1,1,0,-1,-1}; double dist; double gridRes; double diagGridR...
Used to execute this plugin tool.
public ResultPoint[] detect() throws NotFoundException { int height=image.getHeight(); int width=image.getWidth(); int halfHeight=height / 2; int halfWidth=width / 2; int deltaY=Math.max(1,height / (MAX_MODULES * 8)); int deltaX=Math.max(1,width / (MAX_MODULES * 8)); int top=0; int bottom=height; int ...
<p>Detects a rectangular region of black and white -- mostly black -- with a region of mostly white, in an image.</p>
public void addResourceBundle(ResourceBundle bundle){ bundles.add(bundle); }
This method extends this resource bundle with the properties set by the given bundle. If those properties are already contained, they will be ignored.
public MonitorVersionException(){ super(); }
Create a MonitorVersionException
public static <E extends Comparable<E>>SingleLinkedNode<E> pairWiseSwap(SingleLinkedNode<E> node){ if (node == null || node.next == null) return node; SingleLinkedNode<E> nextNode=node.next, nextOfNextNode=nextNode.next; nextNode.next=node; node.next=pairWiseSwap(nextOfNextNode); return nextNode; }
Recursively swaps adjacent nodes of a linked list. <p/> Example: Input: 11->22->33->44->55 Output: 22->11->44->33->55
@Override public boolean handleMessage(Message msg){ if (msg.what == 1) { adapter.setBills(bills); adapter.notifyDataSetChanged(); } else { Toast.makeText(BillListActivity.this,errMsg,Toast.LENGTH_SHORT).show(); } return true; }
Callback interface you can use when instantiating a Handler to avoid having to implement your own subclass of Handler. handleMessage() defines the operations to perform when the Handler receives a new Message to process.
public static Coordinate[] removeRepeatedPoints(Coordinate[] coord){ if (!hasRepeatedPoints(coord)) return coord; CoordinateList coordList=new CoordinateList(coord,false); return coordList.toCoordinateArray(); }
If the coordinate array argument has repeated points, constructs a new array containing no repeated points. Otherwise, returns the argument.
public static Vector<String> findPackages(){ Vector<String> result; Enumeration<String> packages; initCache(); result=new Vector<String>(); packages=m_ClassCache.packages(); while (packages.hasMoreElements()) { result.add(packages.nextElement()); } Collections.sort(result,new StringCompare()); ret...
Lists all packages it can find in the classpath.
private DualPivotQuicksort(){ }
Prevents instantiation.
public boolean isDefaultNamespace(String namespaceURI){ return false; }
DOM Level 3: This method checks if the specified <code>namespaceURI</code> is the default namespace or not.
public void checkIndex(ShardPath targetPath) throws IOException { BytesStreamOutput os=new BytesStreamOutput(); PrintStream out=new PrintStream(os,false,Charsets.UTF_8.name()); try (Directory directory=new SimpleFSDirectory(targetPath.resolveIndex());final CheckIndex checkIndex=new CheckIndex(directory)){ che...
Runs check-index on the target shard and throws an exception if it failed
protected int rearrangePoints(int[] indices,final int startidx,final int endidx,final int splitDim,final double splitVal){ int tmp, left=startidx - 1; for (int i=startidx; i <= endidx; i++) { if (m_EuclideanDistance.valueIsSmallerEqual(m_Instances.instance(indices[i]),splitDim,splitVal)) { left++; t...
Re-arranges the indices array so that in the portion of the array belonging to the node to be split, the points <= to the splitVal are on the left of the portion and those > the splitVal are on the right.
@Override public Result decode(BinaryBitmap image) throws NotFoundException, ChecksumException, FormatException { return decode(image,null); }
Locates and decodes a MaxiCode in an image.
public JSONObject putOnce(String key,Object value) throws JSONException { if (key != null && value != null) { if (this.opt(key) != null) { throw new JSONException("Duplicate key \"" + key + "\""); } this.put(key,value); } return this; }
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null, and only if there is not already a member with that name.
protected void appendDetail(StringBuffer buffer,String fieldName,Collection coll){ buffer.append(coll); }
<p>Append to the <code>toString</code> a <code>Collection</code>.</p>
public DeleteIndexRequest(String... indices){ this.indices=indices; }
Constructs a new delete index request for the specified indices.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:17.042 -0500",hash_original_method="D43EB4B47E694B53E14D637B6CBB15DA",hash_generated_method="7FE5675D2A5F80229B9CC32689C8E510") public void appendExtRecord(byte[] extRecord){ try { if (extRecord.length != EXT_RECORD_LENGTH_BYT...
See TS 51.011 10.5.10
public Joint createJoint(JointDef def){ assert (isLocked() == false); if (isLocked()) { return null; } Joint j=Joint.create(this,def); j.m_prev=null; j.m_next=m_jointList; if (m_jointList != null) { m_jointList.m_prev=j; } m_jointList=j; ++m_jointCount; j.m_edgeA.joint=j; j.m_edgeA.other...
create a joint to constrain bodies together. No reference to the definition is retained. This may cause the connected bodies to cease colliding.
private int handleC(String value,DoubleMetaphoneResult result,int index){ if (conditionC0(value,index)) { result.append('K'); index+=2; } else if (index == 0 && contains(value,index,6,"CAESAR")) { result.append('S'); index+=2; } else if (contains(value,index,2,"CH")) { index=handleCH(val...
Handles 'C' cases
void error(int errorId,int resourceId){ mEventHandler.error(errorId,mConnection.mContext.getText(resourceId).toString()); }
Helper: calls error() on eventhandler with appropriate message This should not be called before the mConnection is set.
public static void checkHitsQuery(Query query,ScoreDoc[] hits1,ScoreDoc[] hits2,int[] results){ checkDocIds("hits1",results,hits1); checkDocIds("hits2",results,hits2); checkEqual(query,hits1,hits2); }
Tests that two queries have an expected order of documents, and that the two queries have the same score values.
protected static void link(final ReilBlock parent,final ReilBlock child){ parent.m_children.add(child); child.m_parents.add(parent); }
Links two REIL blocks.
public static <K,V>SynchronizedSortedBagMultimap<K,V> of(MutableSortedBagMultimap<K,V> multimap,Object lock){ if (multimap == null) { throw new IllegalArgumentException("cannot create a SynchronizedSortedBagMultimap for null"); } return new SynchronizedSortedBagMultimap<>(multimap,lock); }
This method will take a Multimap and wrap it directly in a SynchronizedSortedBagMultimap. Additionally, a developer specifies which lock to use with the collection.
public static String readStringFromReader(Reader reader) throws IOException { return readAllCharsFromReader(reader).toString(); }
Reads all chars from given reader until an EOF is read, and returns them as a String. Closes reader afterwards.
public String number() throws ParseException { int startIdx=ptr; try { if (!isDigit(lookAhead(0))) { throw new ParseException(buffer + ": Unexpected token at " + lookAhead(0),ptr); } consume(1); while (true) { char next=lookAhead(0); if (isDigit(next)) { consume(1); }...
Get and consume the next number.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:27.373 -0500",hash_original_method="59D4C7A828654550E9A00289F418A41B",hash_generated_method="A1ADB842CDB3D89617B61CB662BF8B7B") public Entry(String tag,long millis){ if (tag == null) throw new NullPointerException("tag == null")...
Create a new empty Entry with no contents.
public void attrAdded(Attr node,String newv){ if (!changing && baseVal != null) { baseVal.invalidate(); } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
Called when an Attr node has been added.
public void resizeFrame(JComponent f,int newX,int newY,int newWidth,int newHeight){ setBoundsForFrame(ghostPanel,newX,newY,newWidth,newHeight); }
resizeFrame() -
public void test_putLjava_lang_ObjectLjava_lang_Object(){ hm.put("KEY","VALUE"); assertEquals("Failed to install key/value pair","VALUE",hm.get("KEY")); HashMap m=new HashMap(); m.put(new Short((short)0),"short"); m.put(null,"test"); m.put(new Integer(0),"int"); assertEquals("Failed adding to bucket conta...
java.util.HashMap#put(java.lang.Object, java.lang.Object)
@Override public BigdataSailRepositoryConnection cxn(){ if (closed) throw Exceptions.alreadyClosed(); tx.readWrite(); return tx.cxn(); }
Return the unisolated SAIL connection. Automatically opens the Tinkerpop3 Transaction if not already open.
public static String toString(Integer arg){ return toString("%d",arg); }
Convert integer to string
private double readInheritFontSizeAttribute(IXMLElement elem,String attributeName,String defaultValue) throws IOException { String value=null; if (elem.hasAttribute(attributeName,SVG_NAMESPACE)) { value=elem.getAttribute(attributeName,SVG_NAMESPACE,null); } else if (elem.hasAttribute(attributeName)) { ...
Reads a font size attribute that is inherited. As specified by http://www.w3.org/TR/SVGMobile12/text.html#FontPropertiesUsedBySVG http://www.w3.org/TR/2006/CR-xsl11-20060220/#font-getChildCount
boolean isInitializing(){ return this.state == INITIALIZING; }
Returns true if this grantor is still initializing and not yet ready for lock requests.
public static void logNormalize(double[] a){ double logTotal=logSum(a); if (logTotal == Double.NEGATIVE_INFINITY) { double v=-Math.log(a.length); for (int i=0; i < a.length; i++) { a[i]=v; } return; } shift(a,-logTotal); }
Makes the values in this array sum to 1.0. Does it in place. If the total is 0.0, sets a to the uniform distribution.
public Word(Word w,Sentence s){ this.idx=w.idx; this.Form=w.Form; this.Lemma=w.Lemma; this.POS=w.POS; this.Feats=w.Feats; this.Deprel=w.Deprel; this.head=w.head; this.headID=w.headID; this.children=w.children; this.corefid=w.corefid; if (s == null) { this.mySentence=w.mySentence; } else { ...
Used to replace an old word with a new (updates dependencies). Used to make a predicate from a word during predicate identification.
@Override public boolean containsKey(Object key){ int hash=hash(key); return segmentFor(hash).containsKey(key,hash); }
Tests if the specified object is a key in this table.
public Interval(long startInstant,long endInstant){ super(startInstant,endInstant,null); }
Constructs an interval from a start and end instant with the ISO default chronology in the default time zone.
public boolean isTimeout(){ return timeout; }
Gets the timeout value for this ForgotPasswordWSBean.
public void updatePolygon(Mesh poly){ if (getNumberOfChildren() < 3) { return; } FloatBuffer vertexBuffer=tessellator.tessellate(getPointList(),null); FloatBuffer normalBuffer=BufferUtils.createFloatBuffer(vertexBuffer.capacity()); MathUtil.computePolygonNormal(vertexBuffer,normalBuffer,true); poly.getM...
Update the polygon from the points
static int testTanh(){ int failures=0; double[][] testCases={{0.0625,0.06241874674751251449014289119421133},{0.1250,0.12435300177159620805464727580589271},{0.1875,0.18533319990813951753211997502482787},{0.2500,0.24491866240370912927780113149101697},{0.3125,0.30270972933210848724239738970991712},{0.3750,0.3583573983...
Test accuracy of {Math, StrictMath}.tanh. The specified accuracy is 2.5 ulps. The defintion of tanh(x) is (e^x - e^(-x))/(e^x + e^(-x)) The series expansion of tanh(x) = x - x^3/3 + 2x^5/15 - 17x^7/315 + ... Therefore, 1. For large values of x tanh(x) ~= signum(x) 2. For small values of x, tanh(x) ~= x. Additionally, ...
public static BigdataGraph create(final BlueprintsValueFactory vf) throws Exception { return create(vf,new Properties()); }
Create a new local in-memory bigdata instance with the supplied value factory.
public static void writeToXmlImpl(List<Block> toSerialize,@Nullable OutputStream os,@Nullable Writer writer) throws BlocklySerializerException { try { XmlSerializer serializer=mParserFactory.newSerializer(); if (os != null) { serializer.setOutput(os,null); } else { serializer.setOutput(writer...
Serializes all Blocks in the given list and writes them to the either the output stream or writer, whichever is not null.
public void onSuccess(){ if (_firstSuccessTime <= 0) { _firstSuccessTime=CurrentTime.currentTime(); } _dynamicRecoverTimeout.set(1000L); _firstFailTime=0; }
Called when the server has a successful response
public SVGPaintManager(String prop,Value v){ super(prop,v); }
Creates a new SVGPaintManager.
public void runTest() throws Throwable { Document doc; NodeList elementList; Node employeeNode; NodeList childList; Node oldChild=null; Node newChild=null; Node child; String childName; Node childNode; java.util.List actual=new java.util.ArrayList(); java.util.List expected=new java.util.ArrayList...
Runs the test case.
public void runTest(){ try { Template template1=RuntimeSingleton.getTemplate(getFileName(null,"path1",TMPL_FILE_EXT)); Template template2=RuntimeSingleton.getTemplate(getFileName(null,"path2",TMPL_FILE_EXT)); FileOutputStream fos1=new FileOutputStream(getFileName(RESULTS_DIR,"path1",RESULT_FILE_EXT)); ...
Runs the test.
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:03.935 -0500",hash_original_method="747AFE004560A767DF481C3AA8002660",hash_generated_method="9625D3D3689DEE9B299B2E695D5C9E6A") private ComprehensionTlv searchForTag(Comprehe...
Search for a COMPREHENSION-TLV object with the given tag from a list
public Result(double gSquare,double pValue,int df,boolean isIndep){ this.gSquare=gSquare; this.pValue=pValue; this.df=df; this.isIndep=isIndep; }
Constructs a new g square result using the given parameters.
private static char[] zzUnpackCMap(String packed){ char[] map=new char[0x10000]; int i=0; int j=0; while (i < 174) { int count=packed.charAt(i++); char value=packed.charAt(i++); do map[j++]=value; while (--count > 0); } return map; }
Unpacks the compressed character translation table.
public boolean hasStickyHeader(View itemView,int orientation,int position){ int offset, margin; mDimensionCalculator.initMargins(mTempRect1,itemView); if (orientation == LinearLayout.VERTICAL) { offset=itemView.getTop(); margin=mTempRect1.top; } else { offset=itemView.getLeft(); margin=mTempRec...
Determines if a view should have a sticky header. The view has a sticky header if: 1. It is the first element in the recycler view 2. It has a valid ID associated to its position
public DistributedLogClientBuilder streamStatsReceiver(StatsReceiver streamStatsReceiver){ DistributedLogClientBuilder newBuilder=newBuilder(this); newBuilder._streamStatsReceiver=streamStatsReceiver; return newBuilder; }
Stream Stats Receiver to expose per stream stats.
public void connect() throws IOException { connect(null,null); }
Initiate drone connection procedure.
public SOM(DistanceMetric dm,int somHeight,int somWeight,VectorCollectionFactory<VecPaired<Vec,Integer>> vcFactory){ this(DEFAULT_MAX_ITERS,DEFAULT_KF,DEFAULT_LEARNING_RATE,DEFAULT_LEARNING_DECAY,DEFAULT_NEIGHBOR_DECAY,dm,somHeight,somWeight,vcFactory); }
Creates a new SOM using the given parameters
public String toString(int maxKeysToPrint,boolean multiline){ PriorityQueue<E> pq=clone(); StringBuilder sb=new StringBuilder(multiline ? "" : "["); int numKeysPrinted=0; NumberFormat f=NumberFormat.getInstance(); f.setMaximumFractionDigits(5); while (numKeysPrinted < maxKeysToPrint && pq.hasNext()) { d...
Returns a representation of the queue in decreasing priority order, displaying at most maxKeysToPrint elements and optionally printing one element per line.
private static final void logErrors(final List<CompilerError> errors,final String label,boolean warn,final Log log){ log.info("-------------------------------------------------------------"); log.warn("CHECKER FRAMEWORK " + label.toUpperCase() + ": "); log.info("---------------------------------------------------...
Print a header with the given label and print all errors similar to the style maven itself uses
public void generateLootChest(World world,Random random,BlockPos pos,int min,int max,IBlockState state,ResourceLocation lootTable){ world.setBlockState(pos,state,3); TileEntityChest chest=(TileEntityChest)world.getTileEntity(pos); if (chest != null) chest.setLootTable(lootTable,random.nextLong()); }
Generates a loot chest at a location
public DCDs(){ this(10000,false); }
Creates a new DCDL2 SVM object
protected static boolean isIntendedException(Exception e,Class<?> clazz){ final String message=e.getMessage(); return (!TextUtils.isEmpty(message) && message.startsWith(clazz.getName())); }
Checks if the exception is one of the intended server side exception that has been thrown over the AIDL layer.
public boolean hasConditions(){ return ifModifiedSince != null || ifNoneMatch != null; }
Returns true if the request contains conditions that save the server from sending a response that the client has locally. When the caller adds conditions, this cache won't participate in the request.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public static char toCharValue(Object o) throws PageException { if (o instanceof Character) return ((Character)o).charValue(); else if (o instanceof Boolean) return (char)((((Boolean)o).booleanValue()) ? 1 : 0); else if (o instanceof Double) return (char)(((Double)o).doubleValue()); else if (o instance...
cast a Object to a char value (primitive value type)
public static PeriodType yearDayTime(){ PeriodType type=cYDTime; if (type == null) { type=new PeriodType("YearDayTime",new DurationFieldType[]{DurationFieldType.years(),DurationFieldType.days(),DurationFieldType.hours(),DurationFieldType.minutes(),DurationFieldType.seconds(),DurationFieldType.millis()},new int[...
Gets a type that defines all standard fields except months and weeks. <ul> <li>years <li>days <li>hours <li>minutes <li>seconds <li>milliseconds </ul>
private static img createWorkflowImage(String name,int activeNode,String js_command,boolean pressed){ StringBuffer imgName=new StringBuffer(name); imgName.append("WF"); imgName.append(".gif"); img img=new img(MobileEnv.getImageDirectory(imgName.toString()),name); if (!(imgName.toString()).startsWith("Spacer")...
Create Image with name, id of button_name and set M_Command onClick
public static boolean isFluid(World world,int x,int y,int z){ return getFluid(world,x,y,z,false) != null; }
Whether or not a certain block is considered a fluid.
public boolean isActiveInTransaction(CompositeTransaction tx){ boolean ret=false; if (currentContext != null && tx != null) ret=currentContext.isInTransaction(tx); return ret; }
Tests if the session is active (enlisted) in the given transaction.
public static <V extends Vec>void meanVector(Vec mean,List<V> dataSet){ if (dataSet.isEmpty()) throw new ArithmeticException("Can not compute the mean of zero data points"); else if (dataSet.get(0).length() != mean.length()) throw new ArithmeticException("Vector dimensions do not agree"); for ( Vec x : data...
Computes the mean of the given data set.
@Override public final void write(byte[] source,int offset,int len){ this.size+=len; }
override OutputStream's write()
@Override public void onDragEnd(DragEndEvent event){ log("onDragEnd: " + event,RED); }
Log the drag end event.
protected boolean beforeSave(boolean newRecord){ MPayment payment=new MPayment(getCtx(),getC_Payment_ID(),get_TrxName()); if ((newRecord || is_ValueChanged("C_Invoice_ID")) && (payment.getC_Charge_ID() != 0 || payment.getC_Invoice_ID() != 0 || payment.getC_Order_ID() != 0)) { log.saveError("PaymentIsAllocated",...
Before Save
public static int moveCodePointOffset(char source[],int start,int limit,int offset16,int shift32){ int size=source.length; int count; char ch; int result=offset16 + start; if (start < 0 || limit < start) { throw new StringIndexOutOfBoundsException(start); } if (limit > size) { throw new StringInde...
Shifts offset16 by the argument number of codepoints within a subarray.
public void technicalServiceChanged(ValueChangeEvent event){ Long newServiceKey=(Long)event.getNewValue(); techServiceBean.setSelectedTechnicalServiceKeyWithExceptionAndRefresh(newServiceKey.longValue()); supplierIdToAdd=null; suppliersForTechnicalService=null; }
Called by the value changed listener of the technical service selectionOneMenu.
protected Object readResp() throws Exception { InputStream is=huc.getInputStream(); Value mpo=packer.read(is); return unMsg(mpo); }
Receives an RPC response and converts to an object
public Object convert(final String value,final Class<?> clazz){ Converter converter=this.lookup(clazz); if (converter == null) { converter=this.lookup(String.class); } return converter.convert(clazz,value); }
Convert the specified value to an object of the specified class (if possible). Otherwise, return a String representation of the value.
@DSComment("Package priviledge") @DSBan(DSCat.DEFAULT_MODIFIER) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:25.397 -0500",hash_original_method="0360B175C51ABE1598A686E1C95592B6",hash_generated_method="90506082E3D0459E2C81EA8FB00BD16F") void remove(ThreadLocal<?> key){ clean...
Removes entry for the given ThreadLocal.
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:01:36.047 -0500",hash_original_method="53A11CFB931BDAEE1F32CE61EF0BEDA2",hash_generated_method="42AD5E13A84C0A5943C2A2C723DC64B6") public UnsupportedDigestAlgorithmException(String message){ super(message);...
Creates a new UnsupportedAuthAlgoritmException with the specified message.
public static int interleave(int x,int y,int z){ if (((x | y | z) & 0xFFFFFC00) != 0) throw new IllegalArgumentException("Overflow"); return part1by2(x) | (part1by2(y) << 1) | (part1by2(z) << 2); }
Interleaves the bits of the three specified integer values (Morton code).
public Type3Message(byte[] material) throws IOException { parse(material); }
Creates a Type-3 message using the given raw Type-3 material.
public static String formatDecimalNumber(double number,String pattern,Locale locale){ com.ibm.icu.text.NumberFormat nf=com.ibm.icu.text.NumberFormat.getNumberInstance(locale); String nbParsing=""; ((com.ibm.icu.text.DecimalFormat)nf).applyPattern(pattern); ((com.ibm.icu.text.DecimalFormat)nf).toPattern(); nbP...
Format a decimal number to the pattern given
public cudaStream_t(){ }
Creates a new, uninitialized cudaStream_t
public static void main(String... args) throws Exception { String targetDir=args.length == 0 ? "." : args[0]; Class.forName("org.h2.Driver"); Connection conn=DriverManager.getConnection("jdbc:h2:mem:","sa",""); InputStream in=Newsfeed.class.getResourceAsStream("newsfeed.sql"); ResultSet rs=RunScript.execute(c...
This method is called when executing this sample application from the command line.
public static String convertMoRefToString(ManagedObjectReference ref){ if (ref == null) { return null; } return ref.getType() + DELIMITER + ref.getValue(); }
Serializes a MoRef into a String.
@ApiOperation(value="Delete user",notes="Delete a user from the system. Roles allowed: system/admin") @ApiResponses({@ApiResponse(code=204,message="Deleted"),@ApiResponse(code=404,message="Not Found"),@ApiResponse(code=409,message="Impossible to remove user"),@ApiResponse(code=500,message="Internal Server Error")}) @DE...
Removes user with given identifier.
@Override public Object primDie(final IScope scope) throws GamaRuntimeException { GAMA.closeExperiment(getSpecies()); GAMA.getGui().closeSimulationViews(true,false); return null; }
Method primDie()
public Request createRequest(javax2.sip.address.URI requestURI,String method,CallIdHeader callId,CSeqHeader cSeq,FromHeader from,ToHeader to,List via,MaxForwardsHeader maxForwards,ContentTypeHeader contentType,byte[] content) throws ParseException { if (requestURI == null || method == null || callId == null || cSeq =...
Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message with a body in the form of a byte array and body content type.
private FakeCrashLibrary(){ throw new AssertionError("No instances."); }
Not a real crash reporting library!
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case GamlPackage.SDECLARATION__NAME: return getName(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case ExpressionsPackage.CONDITIONAL_EXPRESSION__CONDITION: return getCondition(); case ExpressionsPackage.CONDITIONAL_EXPRESSION__TRUE_CASE: return getTrueCase(); case ExpressionsPackage.CONDITIONAL_EXPRESSION__FALS...
<!-- begin-user-doc --> <!-- end-user-doc -->