code
stringlengths
10
174k
nl
stringlengths
3
129k
public ExampleFileFilter(String[] filters,String description){ this.filters=new Hashtable<String,ExampleFileFilter>(filters.length); for ( String filter : filters) { addExtension(filter); } setDescription(description); }
Creates a file filter from the given string array and description. Example: new ExampleFileFilter(String {"gif", "jpg"}, "Gif and JPG Images"); Note that the "." before the extension is not needed and will be ignored.
public LatLng toLatLng(){ return new LatLng(latitude,longitude); }
Used internally to convert from this to a Google Maps Services model.
public void proceed(){ }
Proceed with the SSL certificate.
public int updateTriggerGroupStateFromOtherState(Connection conn,GroupMatcher<TriggerKey> matcher,String newState,String oldState) throws SQLException { PreparedStatement ps=null; try { ps=conn.prepareStatement(rtp(UPDATE_TRIGGER_GROUP_STATE_FROM_STATE)); ps.setString(1,newState); ps.setString(2,toSqlLi...
<p> Update all of the triggers of the given group to the given new state, if they are in the given old state. </p>
public void performSearch(){ new SearchDialog(textPane,new SearchableJTextComponent(textPane)).setVisible(true); }
Opens a search dialog for the currently displayed log.
public static char[] toCharArray(final InputStream is) throws IOException { return IOUtils.toCharArray(is,Charset.defaultCharset()); }
Get the contents of an <code>InputStream</code> as a character array using the default character encoding of the platform. <p> This method buffers the input internally, so there is no need to use a <code>BufferedInputStream</code>.
public Bounds addXValue(final double x){ final double small=x - FUDGE_FACTOR; if (minX == null || minX > small) { minX=new Double(small); } final double large=x + FUDGE_FACTOR; if (maxX == null || maxX < large) { maxX=new Double(large); } return this; }
Add a specific X value.
public synchronized void addPanListener(PanListener listener){ mPanListeners.add(listener); }
Adds a new pan listener.
@Deprecated public static <N,E>ImmutableNetwork<N,E> copyOf(ImmutableNetwork<N,E> graph){ return checkNotNull(graph); }
Simply returns its argument.
public static boolean createFile(@NonNull File file) throws IOException { return FileUtil.makeFile(file); }
Create a file.
public void bind(String name,Remote obj) throws RemoteException, AlreadyBoundException, AccessException { checkAccess("Registry.bind"); synchronized (bindings) { Remote curr=bindings.get(name); if (curr != null) throw new AlreadyBoundException(name); bindings.put(name,obj); } }
Binds the name to the specified remote object.
public static Logger createConsoleLogger(){ LoggerContext ctx=(LoggerContext)LogManager.getContext(true); Configuration cfg=ctx.getConfiguration(); PatternLayout layout=PatternLayout.createLayout("[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n",null,null,Charset.defaultCharset(),false,false,null,null); final Appender con...
Creates console appender with some reasonable default logging settings.
public static _Fields findByName(String name){ return byName.get(name); }
Find the _Fields constant that matches name, or null if its not found.
@Override public int compareTo(final Score o){ if (elapsedNanos < o.elapsedNanos) return -1; if (elapsedNanos > o.elapsedNanos) return 1; return 0; }
Order by increasing elapsed time (slowest queries are last).
protected boolean mustApplyTexture(Geometry geometry){ String semantic=this.getTexCoordSemantic(geometry); return geometry.colladaGeometry.getTexCoordAccessor(semantic) != null && this.getTexture(geometry) != null; }
Indicates whether or not a texture must be applied to a geometry.
private String[] tokenize(String value,boolean keepComments) throws Exception { char[] arrays=value.toCharArray(); boolean hasQuotation=false; boolean hasSingleLineComments=false; boolean hasMultiLineComments=false; int start=0; ArrayList<String> tokenList=new ArrayList<String>(); int len=arrays.length; ...
tokenize sql with given spliter.
@Override public boolean replace(K key,V oldValue,V newValue){ throw new UnsupportedOperationException(ERROR_MSG); }
Guaranteed to throw an exception and leave the map unmodified.
@Override public int size(){ return m_Root.size(); }
Returns the number of elements in this collection.
private void writeAttribute(java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (namespace.equals("")) { xmlWriter.writeAttribute(attName,attValue); } else { registerPrefix(xmlWriter,namesp...
Util method to write an attribute without the ns prefix
private XMLSupport(){ }
This class does not need to be instanciated.
public boolean isReadyToRun(){ return (getSize() > 0 && getCurrentAutomationItem() == getItemsBySequenceList().get(0)); }
Used to determine if automation is at the start of its sequence.
public static boolean validSystemNameConfig(String systemName,char type,SerialTrafficController tc){ if (!validSystemNameFormat(systemName,type)) { return false; } SerialNode node=(SerialNode)getNodeFromSystemName(systemName,tc); if (node == null) { return false; } int bit=getBitFromSystemName(syste...
Public static method to validate C/MRI system name for configuration returns 'true' if system name has a valid meaning in current configuration, else returns 'false'
@Override public boolean equals(Object other){ return sameClassAs(other) && equalsTo(getClass().cast(other)); }
Returns true if <code>o</code> is equal to this.
public void add(Vector3 point){ controlPoints.add(point); }
Adds a new control point
public boolean allValuesAreSame(){ if (m_values.isEmpty()) { return false; } final int first=m_values.values().iterator().next(); for ( final int value : m_values.values()) { if (first != value) { return false; } } return true; }
If empty, will return false.
public void test_putLjava_lang_ObjectLjava_lang_Object(){ Hashtable h=hashtableClone(ht100); Integer key=new Integer(100); h.put("Value 100",key); assertTrue("Key/Value not inserted",h.size() == 1 && (h.contains(key))); h=hashtableClone(htfull); h.put("Value 100",key); assertTrue("Key/Value not inserted i...
java.util.Hashtable#put(java.lang.Object, java.lang.Object)
public void runTest() throws Throwable { Document doc; Node rootNode; boolean state; String nullString=null; doc=(Document)load("staff",false); rootNode=doc.getDocumentElement(); state=rootNode.isSupported("Core",nullString); assertTrue("Core",state); }
Runs the test case.
public void removeExceptionsAttribute(){ AttributeInfo.remove(attribute,ExceptionsAttribute.tag); }
Removes an Exception attribute.
public boolean isUseEncryption(){ return this.useEncryption; }
Get Method for useEncryption
@Override public void visitTypeInsn(int opcode,String type){ switch (opcode) { case CHECKCAST: case INSTANCEOF: mv.visitInsn(DUP); mv.visitLdcInsn(type); mv.visitMethodInsn(INVOKESTATIC,VM_FQ,BYTECODE_NAME[opcode],LG_V); break; case NEW: mv.visitLdcInsn(type); mv.visitMethodInsn(INVOKESTATIC,VM_FQ,BYTECODE_NAME[o...
CHECKCAST, INSTANCEOF, NEW, ANEWARRAY
protected FunctionBlockImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Deprecated public MediaFile(File f){ this(f.toPath(),null); }
Instantiates a new media file.
public int hashCode(){ return Float.floatToIntBits(value); }
Returns a hash code for this FloatConstant object.
public mat4 add(mat4 matA,mat4 matB){ float[] a=matA.m; float[] b=matB.m; for (int i=0; i < 16; ++i) { this.m[i]=a[i] + b[i]; } return this; }
\fn add add \brief Replaces current matrix with matA + matB \param matA [mat4] \param matB [mat4]
@DSComment("Sip phone call") @DSSpec(DSCat.PHONE_CALL) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:36:28.827 -0500",hash_original_method="5739155C46DD20825CE1C589327CD281",hash_generated_method="FD6A0C45A3EF0F6AAB79922CBDEFCDCE") public boolean isInCall(){ synchronized (this) { ...
Checks if the call is established.
public String lowerCaseTokensTipText(){ return "If set then all the word tokens are converted to lower case " + "before being added to the dictionary."; }
Returns the tip text for this property.
public boolean confirm(String message){ return false; }
Displays a confirm dialog box.
public void execute(){ if (this.knowledge == null) { knowledge=(IKnowledge)getParams().get("knowledge",new Knowledge2()); } Parameters searchParams=getParams(); Parameters params=searchParams; Graph graph; if (params.getBoolean("rfciUsed",false)) { System.out.println("WARNING: there is no RFCI optio...
Executes the algorithm, producing (at least) a result workbench. Must be implemented in the extending class.
public PackedQuadCell nextCell(boolean descend){ final int level=getLevel(); final int shift=getShiftForLevel(level); if ((!descend && isEnd(level,shift)) || isEnd(maxLevels,getShiftForLevel(maxLevels))) { return null; } long newTerm; final boolean isLeaf=(term & 0x1L) == 0x1L; if ((descend && !isLeaf...
Get the next cell in the tree without using recursion. descend parameter requests traversal to the child nodes, setting this to false will step to the next sibling. Note: This complies with lexicographical ordering, once you've moved to the next sibling there is no backtracking.
public static MethodType methodType(Class<?> rtype,Class<?>[] ptypes){ return makeImpl(rtype,ptypes,false); }
Finds or creates an instance of the given method type.
public static void main(String[] args){ Concentration conc=new Concentration(1.0,1.0,1.0,500); System.out.println(conc.sampleAlpha(50)); }
For debugging.
private void addSequence(ObjectSequence sequence){ if (!pool.containsKey(sequence.getGeneratedClass())) pool.put(sequence.getGeneratedClass(),new HashSet<TestCase>()); pool.get(sequence.getGeneratedClass()).add(sequence.getSequence()); logger.info("Added new sequence for " + sequence.getGeneratedClass()); log...
Helper method to add sequences
private Path convertPath(Path path,URI newUri){ assert newUri != null; if (path != null) { URI pathUri=path.toUri(); try { return new Path(new URI(pathUri.getScheme() != null ? newUri.getScheme() : null,pathUri.getAuthority() != null ? newUri.getAuthority() : null,pathUri.getPath(),null,null)); } ...
Convert path using the given new URI.
public <T extends Event>void waitFor(Class<T> eventClass) throws InterruptedException { waitFor(null); }
This causes the currently executing thread to wait until the specified event is dispatched.
public R result(){ return null; }
By default, does nothing (returns <code>null</code>)
public CompactHashSet(Collection<E> c){ this(c.size()); addAll(c); }
Constructs a new set containing the elements in the specified collection.
protected static boolean isDiagnosticsEnabled(){ return LogFactory.isDiagnosticsEnabled(); }
Workaround for bug in Java1.2; in theory this method is not needed. See LogFactory.isDiagnosticsEnabled.
public Evaluator(){ super(); }
Constructs the command line utility for evaluating an algorithm using many parameterizations.
protected static String applyLimitClause(final String query,int limit,final int queryResultSetLimit){ Matcher matcher=SELECT_EXPR_PATTERN.matcher(query); if (matcher.matches()) { Matcher limit_matcher=SELECT_WITH_LIMIT_EXPR_PATTERN.matcher(query); boolean queryAlreadyHasLimitClause=limit_matcher.matches(); ...
Matches the input query with query with limit pattern. If limit is found in input query this function ignores. Else it will append a default limit .. 1000 If input limit is 0 then also it will append default limit of 1000
public int compareMajorMinorTo(Version other){ int retVal; if (major == other.major) retVal=minor - other.minor; else retVal=major - other.major; return retVal; }
Compares major.minor only.
public ImmutableMap<Service,Long> startupTimes(){ return state.startupTimes(); }
Returns the service load times. This value will only return startup times for services that have finished starting.
private static void showMenuItem(int depth){ if (hasActionBar) { instrumentation.waitForIdleSync(); View moreButton=getMoreOptionView(); if (moreButton != null) { try { SOLO.clickOnView(moreButton); } catch ( Throwable e) { if (depth < 5 && e.getMessage().indexOf("Click c...
Gets more menu items operation is different for different Android OS. When get overflow button view on action, it usually be able to click. But in some situation, will meet an error when click it. So catch it and try again. In most situation, the second click will be pass.
public Key createRandomKeyFromPrefix(){ Key key=Key.createRandomKey(); copyBits(this,key,depth); return key; }
Generates a random Key that has falls under this prefix
public ClassLoader createJar(File jar) throws IOException, ObjectStoreConfigException { File target=createTempDir(getClass().getSimpleName()); compile(target); JarPacker packer=new JarPacker(target); packer.packageJar(jar); FileUtil.deleteDir(target); return new URLClassLoader(new URL[]{jar.toURI().toURL()}...
Build concepts and behaviours, compile them and save them to this jar file
public Map<String,String> convertDataToStrings(Map<String,Object> data){ Map<String,String> results=new HashMap<>(); if (data != null) { for ( String key : data.keySet()) { Object object=data.get(key); if (object instanceof WebAuthenticationDetails) { WebAuthenticationDetails authenticati...
Internal conversion. This method will allow to save additional data. By default, it will save the object as string
@SuppressWarnings("unused") @Test public void testParentEntryDeep(){ Statechart sc=_createStatechart("sc"); { InterfaceScope s_scope=_createInterfaceScope("Interface",sc); VariableDefinition v1=_createVariableDefinition("v1",TYPE_INTEGER,s_scope); Region r=_createRegion("r",sc); { State s1=_createSt...
The transition sequence must contain all exit actions for parent states that will be left by a transition.
private void doReleaseShared(){ for (; ; ) { Node h=head; if (h != null && h != tail) { int ws=h.waitStatus; if (ws == Node.SIGNAL) { if (!compareAndSetWaitStatus(h,Node.SIGNAL,0)) continue; unparkSuccessor(h); } else if (ws == 0 && !compareAndSetWaitStatus(h,0...
Release action for shared mode -- signals successor and ensures propagation. (Note: For exclusive mode, release just amounts to calling unparkSuccessor of head if it needs signal.)
@Override public void onEditUser(User user){ Intent intent=new Intent(Intent.ACTION_EDIT,Uri.EMPTY,getApplicationContext(),CreateUserActivity.class); intent.putExtra(CreateUserActivity.KEY_USER_ID,user.getId()); startActivityForResult(intent,0); }
On edit a user, finish this activity and load edit user activity
public synchronized void writeTo(OutputStream out,CompressionLevel compressionLevel) throws IOException { if (compressPos == -1) { super.writeTo(out); bytesWritten=buf.length; } else { count=pos; out.write(buf,0,compressPos); bytesWritten=deflate(out,compressionLevel); } }
send buffer to the given stream. If markComp was called, bytes after that mark will be compressed.
public static boolean isVoidType(Type type){ return type instanceof VoidType; }
Is the type a void type
public void runTest() throws Throwable { Document doc; NodeList nameList; doc=(Document)load("hc_staff",false); nameList=doc.getElementsByTagName("strong"); assertSize("documentGetElementsByTagNameLengthAssert",5,nameList); }
Runs the test case.
protected AnimatablePercentageValue(AnimationTarget target){ super(target); }
Creates a new, uninitialized AnimatablePercentageValue.
public WorkflowAnnotations(){ this.annotationsDrawOrder=new LinkedList<>(); this.annotationsEventOrder=new LinkedList<>(); this.lock=new Object(); }
Creates an empty workflow annotations container.
public int search(Vector<TreeNode> vct,String target){ if (vct == null) { return -1; } for (int i=0; i < vct.size(); i++) { if (target.equals(vct.elementAt(i).value)) { return i; } } return -1; }
Helper function to search for the given target string in a given vector in which the elements' value may hopefully is equal to the target. If such elements are found the first index is returned, otherwise -1
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:01:34.791 -0500",hash_original_method="039A6CD61F0359B07E2C6E71E77BA3EE",hash_generated_method="B0E5F09CC052C2167859B5F72C3B00F9") public boolean isUnused(){ return (numEntries < 1) && waitingThreads.isEmpty(); }
Indicates whether this pool is unused. A pool is unused if there is neither an entry nor a waiting thread. All entries count, not only the free but also the allocated ones.
public void removeStatus(final TargetUpdateStatus status){ this.status.remove(status); }
Remoces Target update status.
public void reportNewThrownException(Integer position,Throwable t){ exceptions.put(position,t); }
<p> reportNewThrownException </p>
@NonNull final <Output>ChronosOperationResult<Output> runSync(@NonNull final ChronosOperation<Output> operation,final boolean broadcastResult){ final ChronosOperationResult<Output> result=createEmptyResult(operation,broadcastResult); silentRun(operation,result); mEventBus.post(result); return result; }
Runs operation in the same thread.
public void clearTestProviderEnabled(String provider){ try { mService.clearTestProviderEnabled(provider); } catch ( RemoteException e) { Log.e(TAG,"RemoteException",e); } }
Removes any mock enabled value associated with the given provider.
public static String[] xorBursts(String[] beginBursts,String[] endBursts,String fn,String fnEnc){ String[] xoredBursts=new String[10]; xoredBursts[8]=fn; xoredBursts[9]=fnEnc; StringBuilder oneXoredBurst; int cant=0; for (int j=0; j < 4; j++) { if (isABurst(beginBursts[j]) && isABurst(endBursts[j])) { ...
XOR two array (ind 0 with ind 0, ind 1 with ind 1, ...)
private void validateQuietZone(BitArray row,int startPattern) throws NotFoundException { int quietCount=this.narrowLineWidth * 10; for (int i=startPattern - 1; quietCount > 0 && i >= 0; i--) { if (row.get(i)) { break; } quietCount--; } if (quietCount != 0) { throw NotFoundException.getNotF...
The start & end patterns must be pre/post fixed by a quiet zone. This zone must be at least 10 times the width of a narrow line. Scan back until we either get to the start of the barcode or match the necessary number of quiet zone pixels. Note: Its assumed the row is reversed when using this method to find quiet zone ...
public static <K extends Comparable<? super K>,V>ImmutableSortedMap<K,V> of(K k1,V v1){ return of(Ordering.natural(),k1,v1); }
Returns an immutable map containing a single entry.
public int loadActivities(){ long start=System.currentTimeMillis(); int MAX_ACTIVITIES_IN_LIST=MSysConfig.getIntValue("MAX_ACTIVITIES_IN_LIST",200,Env.getAD_Client_ID(Env.getCtx())); model=new ListModelTable(); ArrayList<MWFActivity> list=new ArrayList<MWFActivity>(); String sql="SELECT * FROM AD_WF_Activity ...
Load Activities
public void savePomFile(final String sortedXml){ try (FileOutputStream saveFile=new FileOutputStream(pomFile)){ IOUtils.write(sortedXml,saveFile,encoding); } catch ( IOException e) { throw new FailureException("Could not save sorted pom file: " + pomFile.getAbsolutePath(),e); } }
Saves sorted pom file.
public short readShort(){ return (short)Bytes.beS2(code,curBCI + 1); }
Reads a signed, 2-byte short for the current instruction (e.g. SIPUSH).
@Override protected void onDraw(Canvas canvas){ if (canvas != null) { super.onDraw(canvas); } mTotalWidth=0; if (mSuggestions == null) return; if (mBgPadding == null) { mBgPadding=new Rect(0,0,0,0); if (getBackground() != null) { getBackground().getPadding(mBgPadding); } } int x=0;...
If the canvas is null, then only touch calculations are performed to pick the target candidate.
protected boolean arePathsContiguous(TreePath[] paths){ if (rowMapper == null || paths.length < 2) return true; else { BitSet bitSet=new BitSet(32); int anIndex, counter, min; int pathCount=paths.length; int validCount=0; TreePath[] tempPath=new TreePath[1]; tempPath[0]=paths[0]; min=ro...
Returns true if the paths are contiguous, or this object has no RowMapper.
public int write(final Protein protein) throws IOException { return write(protein,true); }
Writes out protein view to an zipped and compressed HTML file (standalone mode by default).
void onShutdown(){ }
Performs any further cleanup following run state transition on invocation of shutdown. A no-op here, but used by ScheduledThreadPoolExecutor to cancel delayed tasks.
public boolean isUnderlineTriple(Node x,Node y,Node z){ removeTriplesNotInGraph(); return underLineTriples.contains(new Triple(x,y,z)); }
States whether r-s-r is an underline triple or not.
protected void validate_return(StorageProcessor[] param){ }
validate the array for _return
protected void assertDirectory(File file){ assertExists(file); assertTrue("File '" + file.getAbsolutePath() + "' is not a directory",file.isDirectory()); }
Asserts that a given file exists and is a directory.
private static void addParkings(MutableScenario scenario){ for ( Person person : scenario.getPopulation().getPersons().values()) { List<PlanElement> planElements=person.getSelectedPlan().getPlanElements(); List<PlanElement> newPlanElements=new LinkedList<PlanElement>(); for (int i=0; i < planElements.siz...
Returns the same population object, but added with parking act/legs. The facility is also added to the existing acts.
public boolean isLessThan(Minutes other){ if (other == null) { return getValue() < 0; } return getValue() < other.getValue(); }
Is this minutes instance less than the specified number of minutes.
public GPUImageBoxBlurFilter(){ this(1f); }
Construct new BoxBlurFilter with default blur size of 1.0.
@Override public synchronized void reset() throws IOException { in.reset(); }
Repositions this stream to the position at the time the <code>mark</code> method was last called on this input stream. <p> <p> The general contract of <code>reset</code> is: <p> <ul> <li> If the method <code>markSupported</code> returns <code>true</code>, then: <p> <ul><li> If the method <code>mark</code> has not been ...
protected final int find(char[] target,int from,int end){ while (from < end) { if (match(target,from)) { break; } from++; } return (from == end) ? -1 : from; }
Finds character buffer in some range and returns its index. Returns <code>-1</code> if character is not found.
public boolean checkForSuBinary(){ return checkForBinary("su"); }
Checks various (Const.suPaths) common locations for the SU binary
public static boolean isXSerializable(Class<?> clazz){ if (XSerializable.class.isAssignableFrom(clazz)) return true; for ( Class<?> explicitx : s_xserializable) if (explicitx.isAssignableFrom(clazz)) return true; return false; }
Returns true if classes of this object should be considered to be XML serializable.
public boolean isV3AllFlashArray(){ return (checkIfVmax3() && getModel() != null && getModel().contains("F")); }
V3 All Flash Array's model name would be like VMAX250F, VMAX250FX, VMAX450F, VMAX450FX , VMAX850F and VMAX850FX
public void printSeries(){ for (int i=0; i < this.getItemCount(); i++) { HeikinAshiItem dataItem=(HeikinAshiItem)this.getDataItem(i); _log.debug("Type: " + this.getType() + " Time: "+ dataItem.getPeriod().getStart()+ " Open: "+ dataItem.getOpen()+ " Close: "+ dataItem.getClose()+ " High: "+ dataItem.getHigh()...
Method printSeries.
public void add(Rule rule){ rules.add(rule); }
Adds a rule to this grammar.
public void updateFromPrefs(){ RaptorPreferenceStore preferences=Raptor.getInstance().getPreferences(); updateBoardFromPrefs(); Color background=preferences.getColor(BOARD_BACKGROUND_COLOR); whiteNameRatingLabel.setFont(preferences.getFont(BOARD_PLAYER_NAME_FONT)); whiteNameRatingLabel.setForeground(preferenc...
Updates all control settings to those in Raptor.getInstance().getPreferences().
public Object execute(ExecutionEvent event) throws ExecutionException { Shell parent=UIHelper.getShellProvider().getShell(); ShowDeclarationsPopupDialog popup=new ShowDeclarationsPopupDialog(parent); popup.open(); return null; }
This method is called to handle the Show Declarations operation.
public ViPRCoreClient withProxyToken(String token){ setProxyToken(token); return this; }
Sets the proxy token and returns the updated client.
public int refresh(){ if (m_lookup == null) return -1; if (!isReadWrite()) { m_lookup.removeAllElements(); return 0; } return m_lookup.refresh(); }
Refresh Query
public boolean isDuplicated(){ if (isDefault()) { return false; } List<String> list=new ArrayList<String>(); list.add(network_gateway); list.add(network_netmask); list.add(network_vip); for ( String network_addr : network_addrs) { list.add(network_addr); } Set<String> set=new HashSet<String>(...
Validate Ipv4 address duplication
public boolean addOperation(final IResource resource,final T operation){ Check.notNull(resource,"resource"); Check.notNull(operation,"operation"); final T oldOperation=operationMap.get(resource); if (oldOperation != null && oldOperation.equals(operation)) { return false; } operationMap.put(resource,oper...
Add the resource to the store with the given operation.
public static Transformer createTransformer(){ try { return getTransformerFactory().newTransformer(); } catch ( TransformerConfigurationException e) { throw new XmlException(e); } }
Creates an identity transformer.
public Builder withIndex(long index){ request.index=Assert.argNot(index,index < 0,"index must be positive"); return this; }
Sets the request index.