code
stringlengths
10
174k
nl
stringlengths
3
129k
public ArrayLongCompressed(int size,int leadingClearBits,int trailingClearBits){ init(size,BIT_LENGTH - leadingClearBits - trailingClearBits,trailingClearBits); }
Create <code>LongArrayCompressed</code> from number of longs to be stored, the number of leading and trailing clear bits. Everything else is stored in the internal data structure.
public DevModeServiceClient(MessageTransport transport){ this.transport=transport; }
Create a new instance bound to the given transport.
public boolean add(E o){ ensureCapacity(size + 1); elementData[size++]=o; return true; }
Appends the specified element to the end of this list.
public BreakpointAddress(final INaviModule module,final UnrelocatedAddress address){ unrelocatedBreakpointAddress=Preconditions.checkNotNull(address,"IE00234: Address argument can not be null"); this.module=Preconditions.checkNotNull(module,"IE01693: Module arguemnt can not be null"); }
Creates a new breakpoint object.
public void sort(){ }
This sort method is a place-holder for OMGraphicList extensions to implement their own particular criteria for sorting an OMGraphicList. Does nothing for a generic OMGraphicList.
public Segment(double x1,double y1,double z1,double x2,double y2,double z2){ this(new Coordinate(x1,y1,z1),new Coordinate(x2,y2,z2)); }
Creates a new instance for the given ordinates.
public JLifeFormattedTextArea(){ }
Creates new instance.
protected boolean isPrimitive(Type type){ requireNonNull(type); switch (type.getName()) { case "byte": case "short": case "int": case "long": case "float": case "double": case "boolean": case "char": return true; default : return false; } }
Returns <code>true</code> if the specified type is a primitive type.
public void dispose(){ m_searchPanel.dispose(); m_settings.getSearchSettings().removeListener(m_internalSearchListener); }
Frees allocated resources.
@Override public void sendSqsTextMessage(AwsParamsDto awsParamsDto,String queueName,String messageText){ ClientConfiguration clientConfiguration=new ClientConfiguration(); if (StringUtils.isNotBlank(awsParamsDto.getHttpProxyHost())) { clientConfiguration.setProxyHost(awsParamsDto.getHttpProxyHost()); } if (...
Sends a text message to the specified AWS SQS queue.
public static void main(String[] args){ try { FileInputStream fis=new FileInputStream(args[0]); SimpleCharStream scs=new SimpleCharStream(fis,1,1); TLAplusParserTokenManager tmgr=new TLAplusParserTokenManager(scs,2); Token t=getNextToken(tmgr); while (t.kind != 0) { System.err.println(t); ...
Testing method of the parser
public static float[] newCubeToBounds(float x,float y,float z,float w,float d,float h){ final float[] result=newBoundsArray(); return cubeToBounds(result,x,y,z,w,d,h); }
Creates a new Cuboid bounding box
public DefaultHttpHeaders(){ this(true); }
Creates a new instance.
public static int displacement(final long index){ return (int)(index & SEGMENT_MASK); }
Computes the displacement associated with a given index.
protected final JsonToken _handleUnexpectedValue(int i) throws IOException, JsonParseException { switch (i) { case '\'': if (isEnabled(Feature.ALLOW_SINGLE_QUOTES)) { return _handleApostropheValue(); } break; case 'N': _matchToken("NaN",1); if (isEnabled(Feature.ALLOW_NON_NUMERIC_NUMBERS)) { return rese...
Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.
private boolean advanceRpts(PhrasePositions pp) throws IOException { if (pp.rptGroup < 0) { return true; } PhrasePositions[] rg=rptGroups[pp.rptGroup]; FixedBitSet bits=new FixedBitSet(rg.length); int k0=pp.rptInd; int k; while ((k=collide(pp)) >= 0) { pp=lesser(pp,rg[k]); if (!advancePP(pp)) ...
pp was just advanced. If that caused a repeater collision, resolve by advancing the lesser of the two colliding pps. Note that there can only be one collision, as by the initialization there were no collisions before pp was advanced.
@Override public void eUnset(int featureID){ switch (featureID) { case UmplePackage.ASSOCIATION___MODIFIER_1: setModifier_1(MODIFIER_1_EDEFAULT); return; case UmplePackage.ASSOCIATION___ASSOCIATION_END_1: getAssociationEnd_1().clear(); return; case UmplePackage.ASSOCIATION___ARROW_1: setArrow_1(ARROW_1_EDEFAULT);...
<!-- begin-user-doc --> <!-- end-user-doc -->
private void checkMemberAccess(int type){ SecurityManager security=System.getSecurityManager(); if (security != null) { security.checkMemberAccess(this,type); String packageName=getPackageName(); if (!packageName.isEmpty()) { security.checkPackageAccess(packageName); } } }
Utility for security checks
private void createSampler(){ this.sampler=glGenSamplers(); glSamplerParameteri(this.sampler,GL_TEXTURE_MIN_FILTER,GL_NEAREST); glSamplerParameteri(this.sampler,GL_TEXTURE_MAG_FILTER,GL_NEAREST); }
Create the sampler to sample the framebuffer texture within the shader.
private void _writeShort(final int value) throws IOException { this.outStream.writeShort(value,this.byteOrder); }
Inside auxiliary method to write a short value into the session stream
public void encode(OutputStream out) throws IOException { DerOutputStream tmp=new DerOutputStream(); dnName.encode(tmp); out.write(tmp.toByteArray()); }
Encode the name in DER form to the stream.
public NumberTextField(double initialValue){ this(null,initialValue,0,0); }
Creates a NumberTextField which does not display the belly button or arrows.
private static void validate(File file,byte[] actual) throws IOException { String mode=Settings.getFileProtectionMode(); File digestFile=getDigestFile(file); if (digestFile.exists()) { byte[] expected=loadDigest(file); if (!MessageDigest.isEqual(actual,expected)) { throw new ValidationException(file...
Validates the file.
public void testDoublesCount(){ LongAdder counter=new LongAdder(); ThreadLocalRandom r=ThreadLocalRandom.current(); long size=0; for (int reps=0; reps < REPS; ++reps) { counter.reset(); r.doubles(size).parallel().forEach(null); assertEquals(counter.sum(),size); size+=524959; } }
A parallel sized stream of doubles generates the given number of values
public static byte[] toByteArray2(String filename) throws IOException { File f=new File(filename); if (!f.exists()) { throw new FileNotFoundException(filename); } FileChannel channel=null; FileInputStream fs=null; try { fs=new FileInputStream(f); channel=fs.getChannel(); ByteBuffer byteBuffe...
NIO way
public List discover(String identifier) throws DiscoveryException { return _discovery.discover(identifier); }
Does discovery on an identifier. It delegates the call to its discovery manager.
static public Automaton concatenate(List<Automaton> l){ Automaton result=new Automaton(); for ( Automaton a : l) { if (a.getNumStates() == 0) { result.finishState(); return result; } int numStates=a.getNumStates(); for (int s=0; s < numStates; s++) { result.createState(); } ...
Returns an automaton that accepts the concatenation of the languages of the given automata. <p> Complexity: linear in total number of states.
private void reconfigurePipeline(){ if (fDTDValidator == null) { fBindNamespaces=true; } else if (!fDTDValidator.hasGrammar()) { fBindNamespaces=true; fPerformValidation=fDTDValidator.validate(); XMLDocumentSource source=fDTDValidator.getDocumentSource(); XMLDocumentHandler handler=fDTDValida...
Re-configures pipeline by removing the DTD validator if no DTD grammar exists. If no validator exists in the pipeline or there is no DTD grammar, namespace binding is performed by the scanner in the enclosing class.
synchronized public void sendX10Sequence(X10Sequence s,SerialListener l){ s.reset(); X10Sequence.Command c; while ((c=s.getCommand()) != null) { SpecificMessage m; if (c.isAddress()) { m=SpecificMessage.getX10Address(c.getHouseCode(),((X10Sequence.Address)c).getAddress()); } else { X10Seq...
Send a sequence of X10 messages <p> Makes them into the local messages and then queues in order
public AttributeConverter putAttributeConverter(final Class<?> clazz,final AttributeConverter converter){ return this.converters.put(clazz.getCanonicalName(),converter); }
Sets the converter for reading attributes of the specified class.
public double put(int key,double value){ double previous=0; int index=insertionIndex(key); boolean isNewMapping=true; if (index < 0) { index=-index - 1; previous=_values[index]; isNewMapping=false; } byte previousState=_states[index]; _set[index]=key; _states[index]=FULL; _values[index]=va...
Inserts a key/value pair into the map.
public void sendMx1Message(Mx1Message m,Mx1Listener reply){ byte msg[]; if (protocol) { processPacketForSending(m); msg=m.getRawPacket(); if (m.replyL1Expected()) { xmtPackets.put(m.getSequenceNo(),new MessageQueued(m,reply)); } } else { int len=m.getNumDataElements(); m.setElement(...
Forward a preformatted Mx1Message to the actual interface. End of Message is added here, then the message is converted to a byte array and queued for transmission
public CatalogServiceRestRep service(){ if (segments.isEmpty()) { return null; } CatalogCategoryRestRep parent=catalog.categories().getRootCatalogCategory(tenantId); for (Iterator<String> iter=segments.iterator(); iter.hasNext(); ) { String segment=iter.next(); if (iter.hasNext()) { parent=get...
Searches the build path and returns a service at this location.
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos=0; return buffer[bufpos]; } char c; if (++bufpos == available) AdjustBuffSize(); if ((buffer[bufpos]=c=ReadByte()) == '\\') { if (trackLineColumn) { UpdateLineColumn(c); ...
Read a character.
public GifImageButton(Context context,AttributeSet attrs,int defStyle){ super(context,attrs,defStyle); postInit(GifViewUtils.initImageView(this,attrs,defStyle,0)); }
Like equivalent from superclass but also try to interpret src and background attributes as GIFs.
public void dispose(){ view.getConfiguration().getModule().getContent().getTypeInstanceContainer().removeListener(typeInstanceContainerListener); view.getConfiguration().getModule().getTypeManager().removeListener(typeChangedListener); view.getConfiguration().getModule().getTypeManager().removeListener(typeSubsti...
Frees allocated resources.
public synchronized void updateIconsForPkg(String packageName,UserHandleCompat user){ removeIconsForPkg(packageName,user); try { PackageInfo info=mPackageManager.getPackageInfo(packageName,PackageManager.GET_UNINSTALLED_PACKAGES); long userSerial=mUserManager.getSerialNumberForUser(user); for ( Launc...
Updates the entries related to the given package in memory and persistent DB.
@Override public void acceptTrainingSet(TrainingSetEvent e){ Instances trainingSet=e.getTrainingSet(); DataSetEvent dse=new DataSetEvent(this,trainingSet); acceptDataSet(dse); }
Accept a training set
public static <T>Observable.Transformer<T,T> applyComputationSchedulers(){ return (Observable.Transformer<T,T>)computationTransformer; }
Don't break the chain: use RxJava's compose() operator
public boolean isFixedAssetInvoice(){ Object oo=get_Value(COLUMNNAME_IsFixedAssetInvoice); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get IsFixedAssetInvoice.
private void myAdd(LinkedList<Integer> l,int i){ l.add(i); }
For debugging purposes, it's useful to insert print statements here.
public MySqlBinLogSpout(MySqlSpoutConfig spoutConfig,ClientFactory clientFactory){ this.spoutConfig=spoutConfig; this.clientFactory=clientFactory; }
Initialize the MySql Spout, with provided client factories. This will mostly be used in unit testing.
public String toStringRanking(){ int biggest; int width; String result; int[] ranking; int i; int curr; if (m_RankingWins == null) return "-ranking data not set-"; biggest=Math.max(m_RankingWins[Utils.maxIndex(m_RankingWins)],m_RankingLosses[Utils.maxIndex(m_RankingLosses)]); width=Math.max(2 + (int...
returns the ranking in a string representation.
private void handleListenerUnregistration(final HttpServerRequest request){ log.debug("handleListenerUnregistration > " + request.uri()); final String listenerStorageUri=hookRootUri + HOOK_LISTENER_STORAGE_PATH + getUniqueListenerId(request.uri()); storage.delete(listenerStorageUri,null); }
This method is called after an incoming listener unregistration is detected. This method deletes the listener from the resource storage.
private int RS_MDS_Encode(int k0,int k1){ int r=k1; for (int i=0; i < 4; i++) { r=RS_rem(r); } r^=k0; for (int i=0; i < 4; i++) { r=RS_rem(r); } return r; }
Use (12, 8) Reed-Solomon code over GF(256) to produce a key S-box 32-bit entity from 2 key material 32-bit entities.
public boolean drawImage(Image img,int x,int y,int width,int height,Color bg,ImageObserver observer){ if (img == null) { return true; } if ((width == 0) || (height == 0)) { return true; } final int imgW=img.getWidth(null); final int imgH=img.getHeight(null); if (isHiDPIImage(img)) { return dra...
Draws an image scaled to x,y,w,h in nonblocking mode with a solid background color and a callback object.
@Deprecated public SelfStartingMonitoringView(MonitorableRegistry registry,MonitoringView monitoringView){ dynamicMonitoringView=new DynamicMonitoringView(registry,monitoringView); }
Use <code>SelfStartingMonitoringView(DynamicMonitoringView dynamicMonitoringView)</code> instead.
public CharacterReference(String kernel,int character){ mKernel=kernel; mCharacter=character; if (null == mKernel) mKernel=""; }
Construct a <code>CharacterReference</code> with the character and kernel given.
public Object runSafely(Catbert.FastStack stack) throws Exception { Object o=stack.pop(); if (o instanceof MediaFile) return o; else return Wizard.getInstance().getFileForFilePath(getFileObj(o)); }
Returns the MediaFile from the database that corresponds to a specified file on disk
public Builder addEncodedQueryParameter(String encodedName,String encodedValue){ if (encodedName == null) throw new IllegalArgumentException("encodedName == null"); if (encodedQueryNamesAndValues == null) encodedQueryNamesAndValues=new ArrayList<>(); encodedQueryNamesAndValues.add(canonicalize(encodedName,QUE...
Adds the pre-encoded query parameter to this URL's query string.
public Maybe<A> maybeReadBefore(){ return Maybe.JustWhenTrue(!isStart(),null); }
Reads the element before the focus position, if possible.
public Iterator<E> iterator(){ return new PatchingIterator(innerChain); }
Returns an iterator over this Chain.
public String toString(){ return getClass().getName() + "[id=" + getID()+ ",offset="+ rawOffset+ ",dstSavings="+ dstSavings+ ",useDaylight="+ useDaylight+ ",startYear="+ startYear+ ",startMode="+ startMode+ ",startMonth="+ startMonth+ ",startDay="+ startDay+ ",startDayOfWeek="+ startDayOfWeek+ ",startTime="+ startTim...
Returns a string representation of this time zone.
public boolean supportsExtendedSQLGrammar() throws SQLException { return true; }
Is the ODBC Extended SQL grammar supported?
public Map<String,Object> makeValidContext(String serviceName,String mode,Map<String,? extends Object> context) throws GenericServiceException { ModelService model=getModelService(serviceName); return makeValidContext(model,mode,context); }
Uses an existing map of name value pairs and extracts the keys which are used in serviceName Note: This goes not guarantee the context will be 100% valid, there may be missing fields
public boolean isSetValue(){ return this.value != null; }
Returns true if field value is set (has been assigned a value) and false otherwise
@Override protected void onActivityResult(int requestCode,int resultCode,Intent dataIntent){ Log.v("Ringdroid","EditActivity onActivityResult"); if (requestCode == REQUEST_CODE_CHOOSE_CONTACT) { finish(); return; } }
Called with an Activity we started with an Intent returns.
private void upgradeToProtectedVolume(Volume changeVpoolVolume,VirtualPool newVpool,VirtualPoolChangeParam vpoolChangeParam,String taskId) throws InternalException { Project project=_dbClient.queryObject(Project.class,changeVpoolVolume.getProject()); if (VirtualPool.vPoolSpecifiesProtection(newVpool)) { if (!Nu...
Upgrade a local block volume to a protected RP volume
private static synchronized void broadcastEstimator(byte[] bytes){ if (null != throttlingProducer) { try { if (null != throttlingMAC) { bytes=CryptoUtils.addMAC(throttlingMAC,bytes); } KeyedMessage<byte[],byte[]> message=new KeyedMessage<byte[],byte[]>(throttlingTopic,bytes); throt...
Broadcast an estimator on Kafka if Kafka is configured.
public final String orVirgin(){ return get(Seed.PEERTYPE,Seed.PEERTYPE_VIRGIN); }
try to get the peertype<br>
public void randomize(){ int nProbs=m_fProbs[0].length; Random random=new Random(); for (int i=0; i < m_fProbs.length; i++) { for (int j=0; j < nProbs - 1; j++) { m_fProbs[i][j]=random.nextDouble(); } for (int j=0; j < nProbs - 1; j++) { for (int k=j + 1; k < nProbs - 1; k++) { if ...
method that generates random CPTs
public Builder smartFormatting(Boolean smartFormatting){ this.smartFormatting=smartFormatting; return this; }
If <code>true</code>, converts dates, times, series of digits and numbers, phone numbers, currency values, and Internet addresses into more readable, conventional representations in the final transcript of a recognition request. If <code>false</code> (the default), no formatting is performed. Applies to US English tran...
private static void sbrQmfSynthesis(FFT mdct,float out[],float X[][][],float mdctBuf[],float v0[],int vOff[],final int div){ final float sbrQmfWindow[]=div != 0 ? sbr_qmf_window_ds : sbr_qmf_window_us; final int step=128 >> div; int v; int outOffset=0; for (int i=0; i < 32; i++) { if (vOff[0] < step) { ...
Synthesis QMF Bank (14496-3 sp04 p206) and Downsampled Synthesis QMF Bank (14496-3 sp04 p206)
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
private boolean isUserAllowedToStartConfCall(){ boolean isAllowed=false; if (mRoom.isOngoingConferenceCall()) { Log.d(LOG_TAG,"## isUserAllowedToStartConfCall(): conference in progress"); isAllowed=true; } else if ((null != mRoom) && (mRoom.getActiveMembers().size() > 2)) { PowerLevels powerLevels=...
Check if the current user is allowed to perform a conf call. The user power level is checked against the invite power level. <p>To start a conf call, the user needs to invite the CFU to the room.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:02:20.380 -0500",hash_original_method="FA3DDF9B94B3CDEBE6839DEC194373B4",hash_generated_method="CC5C3CF1AA1440CDF3C238739770F717") public static MemoryMappedFile mmapRO(String path) throws ErrnoException { FileDescriptor fd=Libcore.o...
Use this to mmap the whole file read-only.
public SortedSetSortField(String field,boolean reverse,SortedSetSelector.Type selector){ super(field,SortField.Type.CUSTOM,reverse); if (selector == null) { throw new NullPointerException(); } this.selector=selector; }
Creates a sort, possibly in reverse, specifying how the sort value from the document's set is selected.
protected void removeAllNodes(){ path.clear(); }
Removes the Point2D.Double at the specified index.
public void transformValues(TFloatFunction function){ Object[] keys=_set; float[] values=_values; for (int i=values.length; i-- > 0; ) { if (keys[i] != null && keys[i] != REMOVED) { values[i]=function.execute(values[i]); } } }
Transform the values in this map using <tt>function</tt>.
public static void ensureVisible(Component c){ if (verbose) { log("ensureVisible(" + c + ")"); } Form f=Display.getInstance().getCurrent(); f.scrollComponentToVisible(c); }
Scrolls to show the component in case it is invisible currently
public boolean isSetHeader(){ return this.header != null; }
Returns true if field header is set (has been assigned a value) and false otherwise
public static void registerIslandTypeModel(IFloatingFlower.IslandType islandType,ModelResourceLocation model){ Preconditions.checkState(Loader.instance().isInState(LoaderState.PREINITIALIZATION)); islandTypeModels.put(islandType,model); }
Registers your model for island type islandType here. Call this DURING PREINIT.
public ParameterizedHashMap(Equality keyEquality){ this.loadFactor=DEFAULT_LOAD_FACTOR; threshold=(int)(DEFAULT_INITIAL_CAPACITY * DEFAULT_LOAD_FACTOR); table=new Entry[DEFAULT_INITIAL_CAPACITY]; this.keyEquality=keyEquality; init(); }
Constructs an empty <tt>ParameterizedHashMap</tt> with the specified key equality, the default initial capacity (16), and the default load factor (0.75).
public static MemcacheClientBuilder<String> newStringClient(){ return newStringClient(Charsets.UTF_8); }
Create a client builder with a basic string transcoder using the UTF-8 Charset.
public void pushRTFContext(){ m_last_pushed_rtfdtm.push(m_which_rtfdtm); if (null != m_rtfdtm_stack) ((SAX2RTFDTM)(getRTFDTM())).pushRewindMark(); }
Push the RTFDTM's context mark, to allows discarding RTFs added after this point. (If it doesn't exist we don't push, since we might still be able to get away with not creating it. That requires that excessive pops be harmless.)
@Override protected EClass eStaticClass(){ return N4JSPackage.Literals.CONDITIONAL_EXPRESSION; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static void main(String... a) throws Exception { TestBase.createCaller().init().test(); }
Run just this test.
public Builder InlineNewCssClass(String cssClass){ InlineNewCssClass=cssClass; return this; }
Set the css class used for displaying changes in the revised text.
@Deprecated public static CuboidClipboard loadSchematic(File path) throws DataException, IOException { checkNotNull(path); return SchematicFormat.MCEDIT.load(path); }
Load a .schematic file into a clipboard.
@Override public void insertElementAt(Object obj,int index){ if (!(obj instanceof CheckBoxListItem)) { super.insertElementAt(new CheckBoxListItem(obj),index); } else { super.insertElementAt(obj,index); } }
Inserts the specified object as a component in this list at the specified index.
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int size=s.readInt(); allocateElements(size); head=0; tail=size; for (int i=0; i < size; i++) elements[i]=(E)s.readObject(); }
Deserialize this deque.
@Get("json") public Map<String,Object> retrieve(){ return retrieveInternal(false); }
Retrieves information about loaded modules.
public SkyboxVisualPanel2(){ initComponents(); DefaultComboBoxModel<SkyFactory.EnvMapType> model=new DefaultComboBoxModel<SkyFactory.EnvMapType>(); for ( SkyFactory.EnvMapType value : SkyFactory.EnvMapType.values()) { model.addElement(value); } mapTypeCombo.setModel(model); }
Creates new form SkyboxVisualPanel2
public static long calculateTarSize(String path) throws IOException { return tarSize(path) + TarConstants.EOF_BLOCK; }
Determines the tar file size of the given folder/file path
public void addExtensions(){ declareExtensions(); }
Adds the Google Docs extensions.
public void add(int index,E element){ addBefore(element,(index == size ? header : entry(index))); }
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
public Object runSafely(Catbert.FastStack stack) throws Exception { Widget w=getWidget(stack); if (w != null) { Catbert.Context con=new Catbert.Context(stack.getUIMgr()); Catbert.ExecutionPosition ep=ZPseudoComp.processChain(w,con,null,null,false); if (ep != null) { ep.addToStackFinal(w); } ...
Executes a Widget and the chain of child Widgets underneath it
public void dataRefreshAll(){ dataRefreshAll(true,-1); }
Refresh all Rows - ignore changes
@Override public T defaultCase(EObject object){ return null; }
Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway. <!-- end-user-doc -->
public static void callAgentApp(Context context,String operation,int operationId,String message){ Intent intent=new Intent(Constants.AGENT_APP_SERVICE_NAME); Intent explicitIntent=createExplicitFromImplicitIntent(context,intent); if (explicitIntent != null) { intent=explicitIntent; } intent.putExtra("oper...
Call EMM agent app to send operation updates.
public void not(){ toBitVector().not(); }
Performs a logical <b>NOT</b> on the bits of the receiver.
public boolean isMandatory(){ return m_mandatory; }
Is Field mandatory
public OverpassFilterQuery tagRegexNot(String name,String value){ builder.regexDoesntMatch(name,value); return this; }
Adds a <i>["name"!~value]</i> filter tag to the current query.
protected String unescape(String value){ if (value.indexOf('\\') == -1) { return value; } return StringUtil.remove(value,'\\'); }
Unescapes CSS string by removing all backslash characters from it.
public static String longest(List61B<String> list){ int maxDex=0; for (int i=0; i < list.size(); i+=1) { String longestString=list.get(maxDex); String thisString=list.get(i); if (thisString.length() > longestString.length()) { maxDex=i; } } return list.get(maxDex); }
Returns the length of the longest word.
public int nextInt(){ throw new UnsupportedOperationException("DiscreteGenerator does not support nextInt()"); }
If the generator returns numeric (integer) values, return the next value as an int. Default is to return -1, which is appropriate for generators that do not return numeric values.
public SQLRecoverableException(String reason){ super(reason,null,0); }
Creates an SQLRecoverableException object. The Reason string is set to the given reason string, the SQLState string is set to null and the Error Code is set to 0.
public void testThrowException() throws Exception { try { CoderResult.OVERFLOW.throwException(); fail("Should throw BufferOverflowException"); } catch ( BufferOverflowException ex) { } try { CoderResult.UNDERFLOW.throwException(); fail("Should throw BufferOverflowException"); } catch ( Buf...
Test method throwException().
@Deprecated public boolean backHistory(){ if (this.appView != null) { return appView.backHistory(); } return false; }
Go to previous page in history. (We manage our own history)
public HashSet(int initialCapacity){ map=new HashMap(initialCapacity); }
Constructs a new, empty set; the backing <tt>HashMap</tt> instance has the specified initial capacity and default load factor, which is <tt>0.75</tt>.