code
stringlengths
10
174k
nl
stringlengths
3
129k
protected boolean up(TextView widget,Spannable buffer){ return false; }
Performs an up movement action. Moves the cursor or scrolls up by one line.
public ServiceCompatibilityException(Reason reason){ super(reason.toString()); setMessageKey(getMessageKey() + "." + reason.toString()); bean.setReason(reason); }
Constructs a new exception with the specified reason set as its detail message and appended to the message key.
private Record processResponse(Record record,Future<Response> responseFuture,long maxRequestCompletionSecs) throws StageException { Response response; try { response=responseFuture.get(maxRequestCompletionSecs,TimeUnit.SECONDS); String responseBody=""; if (response.hasEntity()) { responseBody=resp...
Waits for the Jersey client to complete an asynchronous request, checks the response code and continues to parse the response if it is deemed ok.
private void mergeForceCollapse(){ while (stackSize > 1) { int n=stackSize - 2; if (n > 0 && runLen[n - 1] < runLen[n + 1]) n--; mergeAt(n); } }
Merges all runs on the stack until only one remains. This method is called once, to complete the sort.
void add(final Profile profile){ profiles.remove(profile); profiles.add(profile); }
Add a profile. This will remove duplicates.
public void showEffects(){ showTitleBlockEffect(); showMaskEffect(); }
shows both mask and title block effect
public boolean hitEntity(ItemStack stack,EntityLivingBase target,EntityLivingBase attacker){ stack.damageItem(2,attacker); return true; }
Current implementations of this method in child classes do not use the entry argument beside ev. They just raise the damage on the stack.
public void removeSFSEntryForReplicaReplicationGroup(StorageSystem system,CIMObjectPath replicationSvc,String replicaReplicationGroupName,String sourceReplicationGroupName){ List<String> sfsEntries=getEMCSFSEntries(system,replicationSvc); String entryLabel=formatReplicaLabelForSFSEntry(system.getSerialNumber(),repl...
Remove EMCSFSEntry containing the groupSynchronized information. It would find the entry using the clone/snapshot replication group name and source replication group name, then remove it. This operation is necessary before deleting an attached clone/snaphost replication group.
public static SteppedPrice updateSteppedPrice(VOSteppedPrice voSteppedPrice,SteppedPrice steppedPrice) throws ValidationException, ConcurrentModificationException { verifyVersionAndKey(steppedPrice,voSteppedPrice); validateSteppedPrice(voSteppedPrice); copyAttributes(voSteppedPrice,steppedPrice); return stepped...
Validates the value object, verifies the version and returns the updated domain object representation of it. Only the primitive typed fields will be considered.
public Image rotate180Degrees(boolean maintainOpacity){ return Display.impl.rotate180Degrees(this,maintainOpacity); }
Rotates the image by 180 degrees
public void visitEnd(){ if (mv != null) { mv.visitEnd(); } }
Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.
public void paint(Graphics2D g2d){ if (isVisible) super.paint(g2d); }
Paints this node.
public boolean isDrawInterior(){ return this.drawInterior; }
Indicates whether shape interiors are enabled.
public String base64(){ return Base64.encode(data); }
Returns this byte string encoded as <a href="http://www.ietf.org/rfc/rfc2045.txt">Base64</a>. In violation of the RFC, the returned string does not wrap lines at 76 columns.
public void add(int index,int value){ if (index > size) { throwException2(index); } ensureCapacity(size + 1); System.arraycopy(data,index,data,index + 1,size - index); data[index]=value; size++; }
Inserts the specified <code>int</code> at the specified position in this array. Shifts the <code>int</code> currently at that position (if any) and any subsequent <code>int</code>s to the right (adds one to their indices).
public void addSecretKeyEntry(String alias,SecretKeySpec key,char[] keyPassword){ if (key == null) { throw new IllegalArgumentException(String.format("'key' cannot be null." + "[Store: %s, Server: %s, User: %s]",_storeName,_serverName,_userName)); } String pemKey=VecsUtils.encodeSecretKeyToBase64String(key); ...
Adds a VecsEntryType.CERT_ENTRY_TYPE_SECRET_KEY entry to the store.
public int askControlType(String systemName){ int iType=selectOutputType(); if (iType == javax.swing.JOptionPane.CLOSED_OPTION) { iType=0; log.warn("User cancelled without selecting output type. Defaulting to 'steady state'."); } return (iType); }
Get from the user, the type of output to be used bits to control a turnout. Normally this is 0 for 'steady state' control, and the default routine returns 0 automatically. Turnout Managers for systems that can handle pulsed control as well as steady state control should override this method with one which asks the user...
public Object parseXMLObject(XMLObject xo) throws XMLParseException { SiteList patterns=(SiteList)xo.getChild(SiteList.class); int subSet=0; int subSetCount=0; if (xo.hasAttribute(SUB_SET)) { subSet=xo.getIntegerAttribute(SUB_SET) - 1; if (subSet < 0) throw new XMLParseException("illegal 'subSet' at...
Parses a patterns element and returns a patterns object.
public static JPopupButton createDrawingColorButton(DrawingEditor editor,AttributeKey<Color> attributeKey,java.util.List<ColorIcon> swatches,int columnCount,String labelKey,ResourceBundleUtil labels){ return createDrawingColorButton(editor,attributeKey,swatches,columnCount,labelKey,labels,null); }
Creates a color button, with an action region and a popup menu. The button acts on attributes of the Drawing object in the current DrawingView of the DrawingEditor.
public void endError() throws IOException { ResponseWriter writer=getWrapped(); writer.endCDATA(); writer.endElement("error-message"); writer.endElement("error"); }
<p class="changed_added_2_0">Write the end of an error.</p>
private static Date readAmfDate(ParsableByteArray data){ Date date=new Date((long)readAmfDouble(data).doubleValue()); data.skipBytes(2); return date; }
Read a date from an AMF encoded buffer.
private ResolvedMigration createAvailableMigration(String version){ ResolvedMigration migration=new ResolvedMigration(); migration.setVersion(MigrationVersion.fromVersion(version)); migration.setDescription("abc very very very very very very very very very very long"); migration.setScript("x"); migration.setT...
Creates a new available migration with this version.
protected void reportWrongNumberArgs() throws WrongNumberArgsException { throw new WrongNumberArgsException(XSLMessages.createXPATHMessage("one",null)); }
Constructs and throws a WrongNumberArgException with the appropriate message for this function object.
public EWMA(double alpha,long interval,TimeUnit intervalUnit){ this.interval=intervalUnit.toNanos(interval); this.alpha=alpha; }
Create a new EWMA with a specific smoothing constant.
public static long readHexLong(Map<String,? extends Object> map,String key,long defaultValue){ Object v=map.get(key); if (v == null) { return defaultValue; } else if (v instanceof Long) { return (Long)v; } try { return parseHexLong((String)v); } catch ( NumberFormatException e) { throw ...
Read a hex long value from a map.
public WindowSurface(EglCore eglCore,Surface surface,boolean releaseSurface){ super(eglCore); createWindowSurface(surface); mSurface=surface; mReleaseSurface=releaseSurface; }
Associates an EGL surface with the native window surface. <p> Set releaseSurface to true if you want the Surface to be released when release() is called. This is convenient, but can interfere with framework classes that expect to manage the Surface themselves (e.g. if you release a SurfaceView's Surface, the surfaceDe...
private String changeExtension(String fileName,String extension){ if (fileName == null) { return null; } int lastIndexOf=fileName.lastIndexOf("."); return lastIndexOf != -1 ? fileName.substring(0,lastIndexOf + 1) + extension : fileName + "." + extension; }
Replaces extension if there is any
public ApplicationMessage(byte[] data,InetSocketAddress peerAddress){ super(peerAddress); this.data=Arrays.copyOf(data,data.length); }
Creates a new <em>APPLICATION_DATA</em> message containing specific data.
static boolean isItemBoundToOtherPlayer(final Player player,final RPObject object){ if (object instanceof Item) { final Item item=(Item)object; if (item.isBound() && !player.isBoundTo(item)) { player.sendPrivateText("This " + item.getName() + " is a special reward for "+ item.getBoundTo()+ ". You do not...
Make sure nobody uses items bound to someone else. This also notifies the player trying to use the item, if it is not allowed.
public static String shortDebugString(final UnknownFieldSet fields){ try { final StringBuilder sb=new StringBuilder(); SINGLE_LINE_PRINTER.printUnknownFields(fields,new TextGenerator(sb)); return sb.toString().trim(); } catch ( IOException e) { throw new IllegalStateException(e); } }
Generates a human readable form of the unknown fields, useful for debugging and other purposes, with no newline characters.
public ProfileVisit gender(Gender gender){ this.gender=gender; return this; }
Sets the gender of the user.
public boolean isUseUserOrgAccess(){ Object oo=get_Value(COLUMNNAME_IsUseUserOrgAccess); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Use User Org Access.
Frame loadExpandFrame(Frame top,Frame frame) throws IOException { if (!canGrow(top)) { return null; } frame.arc=fst.readFirstRealTargetArc(top.arc.target,frame.arc,fstReader); frame.state=fsa.step(top.state,frame.arc.label); if (frame.state == -1) { return loadNextFrame(top,frame); } return frame;...
Load frame for target arc(node) on fst
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter,java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix=xmlWriter.getPrefix(namespace); if (prefix == null) { prefix=generatePrefix(namespace); while (xmlWriter.getNamespaceContext().g...
Register a namespace prefix
public static char intToHexDigit(final int nibble){ final char c=Character.forDigit(nibble,16); if (c == Character.MIN_VALUE) { throw new IllegalArgumentException("nibble value not between 0 and 15: " + nibble); } return c; }
<p> Converts the 4 lsb of an int to a hexadecimal digit. </p> <p> 0 returns '0' </p> <p> 1 returns '1' </p> <p> 10 returns 'A' and so on... </p>
@Override public void genNCollisions(int numberAttributes,StringBuilder sb,boolean useNamespace){ try { final long startTime=System.nanoTime(); final long endTime; String prefix=""; int exponent=1; while (numberAttributes > (int)Math.pow(3,exponent)) { exponent++; } if (useNamespace)...
generates n Collisions for DJBX31A and writes result to sb All collisions are written in XML-Attribute Style
public SimpleDateFormat(){ super(); }
Construct a SimpleDateFormat with no pattern.
protected void printError(HttpServletResponse response,String message) throws IOException { response.setContentType("text/html"); response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); print(response,message); }
Flushes a text output to the client with the HTTP 500 code
private void advance() throws IOException { close(); if (it.hasNext()) { in=it.next().openStream(); } }
Closes the current input stream and opens the next one, if any.
@Override public void delete(BlobPath path){ throw new UnsupportedOperationException("URL repository is read only"); }
This operation is not supported by URL Blob Store
boolean isEntranceTransitionEnabled(){ return mEntranceTransitionEnabled; }
Return true if entrance transition is enabled and not started yet. Entrance transition can only be executed once and isEntranceTransitionEnabled() is reset to false after entrance transition is started.
public static void write(CharSequence from,File to,Charset charset) throws IOException { asCharSink(to,charset).write(from); }
Writes a character sequence (such as a string) to a file using the given character set.
static NotCompliantMBeanException throwException(Class<?> notCompliant,Throwable cause) throws NotCompliantMBeanException, SecurityException { if (cause instanceof SecurityException) throw (SecurityException)cause; if (cause instanceof NotCompliantMBeanException) throw (NotCompliantMBeanException)cause; final...
Throws a NotCompliantMBeanException or a SecurityException.
@Override public boolean removeFromWorld(){ removeNPC("Susi"); final StendhalRPZone zone=SingletonRepository.getRPWorld().getZone("int_ados_ross_house"); new LittleGirlNPC().createGirlNPC(zone); return true; }
removes Susi from the Mine Town and places her back into her home in Ados.
public boolean containsRetrievalMethod(){ return this.lengthRetrievalMethod() > 0; }
Method containsRetrievalMethod
public DeleteAction(final NetworkPanel networkPanel){ super(networkPanel,"Delete",EnablingCondition.ALLITEMS); putValue(SMALL_ICON,ResourceManager.getImageIcon("DeleteNeuron.png")); putValue(SHORT_DESCRIPTION,"Delete selected node(s) (\"Backspace\" or \"Delete\")"); networkPanel.getInputMap(JComponent.WHEN_IN_F...
Create a new delete action with the specified network panel.
public void shutdown(){ }
<p> Called in order to inform the <code>SchedulerPlugin</code> that it should free up all of it's resources because the scheduler is shutting down. </p>
protected void assertEquals(boolean expected,boolean actual){ if (expected != actual) { fail("Boolean expected: " + expected + " actual: "+ actual); } }
Check if two values are equal, and if not throw an exception.
public void put(String key,Object value){ map.put(key,value); unwrappedMap=null; }
Adds a key-value entry to this hash.
protected void shutdownStore() throws Exception { store.stop(); assertTrue("Store cache must be empty after shutdown",store.writeCache().isEmpty()); }
Shutdowns store.
@Override public synchronized void connectionNotification(String eventName,Object source){ if (connectionAllowed(eventName)) { if (eventName.compareTo("dataSet") == 0) { m_dataProvider=source; } } m_connectedFormat=null; }
Notify this object that it has been registered as a listener with a source with respect to the supplied event name
private static int pack7Oid(int input,byte[] out,int ooffset){ byte[] b=new byte[4]; b[0]=(byte)(input >> 24); b[1]=(byte)(input >> 16); b[2]=(byte)(input >> 8); b[3]=(byte)(input); return pack7Oid(b,0,4,out,ooffset); }
Pack the int into a OID sub-identifier DER encoding
public TokenStream tokenStreamValue(){ return tokenStream; }
The TokenStream for this field to be used when indexing, or null. If null, the Reader value or String value is analyzed to produce the indexed tokens.
public static double abs(double a){ return 0.0d; }
Returns the absolute value of a double value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. Special cases: If the argument is positive zero or negative zero, the result is positive zero. If the argument is infinite, the result is positi...
public EstadoImpl(){ }
Creates a new instance of EstadoImpl
public boolean isSearcherCurrent() throws IOException { final IndexSearcher searcher=acquire(); try { final IndexReader r=searcher.getIndexReader(); assert r instanceof DirectoryReader : "searcher's IndexReader should be a DirectoryReader, but got " + r; return ((DirectoryReader)r).isCurrent(); } fi...
Returns <code>true</code> if no changes have occured since this searcher ie. reader was opened, otherwise <code>false</code>.
protected double compare(final int p1,final int p2,Stack<d_node> cover_set){ return cover_set.element(p1).dist - cover_set.element(p2).dist; }
Returns the difference of two given nodes distance to the query. It is used in half-sorting a cover set.
public void initDiskCache(){ if (DEBUG) { Log.d(TAG,"initDiskCache " + this); } synchronized (mDiskCacheLock) { if (mDiskLruCache == null || mDiskLruCache.isClosed()) { if (mDiskCacheDir != null) { if (!mDiskCacheDir.exists()) { mDiskCacheDir.mkdirs(); } if (FileUtil....
Initializes the disk cache. Note that this includes disk access so this should not be executed on the main/UI thread. By default an ImageProvider does not initialize the disk cache when it is created, instead you should call initDiskCache() to initialize it on a background thread.
public void removeFloor(Floor floor){ LOGGER.debug("BuildUpFloor.removeFloor"); getFloorDetails().remove(floor); noofFloors=getFloorDetails().size(); }
This method removes the Floor Object from the Set view of the Floor
public void run(){ log.info(m_cmd); try { m_child=Runtime.getRuntime().exec(m_cmd); m_outStream=m_child.getInputStream(); m_errStream=m_child.getErrorStream(); m_inStream=m_child.getOutputStream(); if (checkInterrupted()) return; m_outReader.start(); m_errReader.start(); try { ...
Execute it
public Map<String,String> tags(){ return Collections.unmodifiableMap(new LinkedHashMap<>(this.tags)); }
Get tag data associated with this span (read only) <p/> <p/> Will never be null.
public boolean annotationTextContainsWord(String word){ return getTextAnnotationWords().contains(word); }
Determine whether or not the annotation text contains the given word.
public QuadBuilder addVertexInferUV(double x,double y,double z){ return this.addVertexInferUV(new Vec3d(x,y,z)); }
Adds a vertex and infers the UV coordinates from the vertex index
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); }
Adds semantic checks to the default deserialization method. This method must have the standard signature for a readObject method, and the body of the method must begin with "s.defaultReadObject();". Other than that, any semantic checks can be specified and do not need to stay the same from version to version. A readObj...
public static void putLongLE(long addr,long val){ if (UNALIGNED) UNSAFE.putLong(addr,Long.reverseBytes(val)); else putLongByByte(addr,val,false); }
Stores given integer value assuming that value should be stored in little-endian byte order and native byte order is big-endian. Alignment aware.
public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { log.info("From " + request.getRemoteHost() + " - "+ request.getRemoteAddr()); HttpSession session=request.getSession(true); Properties ctx=JSPEnv.getCtx(request); MLocation loc=new MLocation(ctx,0,...
Process the HTTP Post request.
public Shape inverseTransform(Shape shape){ float[] coords=new float[6]; GeneralPath path=new GeneralPath(GeneralPath.WIND_EVEN_ODD); PathIterator pi=shape.getPathIterator(getInverseRotationTransform()); while (!pi.isDone()) { int type=pi.currentSegment(coords); if (type == PathIterator.SEG_MOVETO) { ...
Returns a transformed version of the Shape, unrotated into the projected pixel space of the layer OMGraphics.
public void addObserver(FindToolbarObserver observer){ mObservers.addObserver(observer); }
Add an observer for find in page changes.
@Override public void clearRangeCrosshairs(){ for ( List<Crosshair> crosshairsForRange : rangeCrosshairs) { for ( Crosshair crosshair : crosshairsForRange) { crosshair.removePropertyChangeListener(this); } } rangeCrosshairs.clear(); }
Clears all range crosshairs on all axes.
public Tuple2<T1,Double> asTuple(){ return Tuple.tuple(v1,v2); }
Converts the tuple into a jOOL tuple.
public Promise<List<ConflictImportDTO>> organizeImports(String projectPath,String fqn){ String url=appContext.getDevMachine().getWsAgentBaseUrl() + CODE_ASSIST_URL_PREFIX + "/organize-imports?projectpath="+ projectPath+ "&fqn="+ fqn; return asyncRequestFactory.createPostRequest(url,null).loader(loader).send(unmarsh...
Organizes the imports of a compilation unit.
public SIMD512(){ super(); }
Create the engine.
public static Bitmap decodeSampledBitmapFromFile(String filename,int reqWidth,int reqHeight,ImageCache cache){ final BitmapFactory.Options options=new BitmapFactory.Options(); options.inJustDecodeBounds=true; BitmapFactory.decodeFile(filename,options); options.inSampleSize=calculateInSampleSize(options,reqWidth...
Decode and sample down a bitmap from a file to the requested width and height.
public void infoSQL(String sql,String params,int count,long time){ if (!isEnabled(TraceSystem.INFO)) { return; } StringBuilder buff=new StringBuilder(sql.length() + params.length() + 20); buff.append(lineSeparator).append("/*SQL"); boolean space=false; if (params.length() > 0) { space=true; buff...
Write a SQL statement with trace level INFO to the trace system.
public String toXML(boolean header){ XmlTextBuilder bdr; String tagName="Perfil"; bdr=new XmlTextBuilder(); if (header) bdr.setStandardHeader(); bdr.addOpeningTag(tagName); bdr.addSimpleElement("Aplicacion",idAplicacion); bdr.addSimpleElement("Usuario",idUsuario); bdr.addSimpleElement("Entidad",idEnti...
Recoge los valores de la instancia en una cadena xml
private String updateCodeOnly(String functionName,FunctionCode functionCode,Boolean publish) throws IOException { UpdateFunctionCodeRequest updateFunctionCodeRequest=new UpdateFunctionCodeRequest().withFunctionName(functionName).withZipFile(functionCode.getZipFile()).withS3Bucket(functionCode.getS3Bucket()).withS3Key...
This method includes the Publish flag when there is a need to create a new version of the service
public ParsePosition(int index){ this.index=index; }
Create a new ParsePosition with the given initial index.
protected BookMetaBuilder(){ this.meta=Diorite.getCore().getItemFactory().construct(BookMeta.class); }
Construct new meta builder.
@Override public void add(int location,E object){ insertElementAt(object,location); }
Adds the specified object into this vector at the specified location. The object is inserted before any element with the same or a higher index increasing their index by 1. If the location is equal to the size of this vector, the object is added at the end.
@Override public void visit(NodeVisitor v){ if (v.visit(this)) { variables.visit(v); if (body != null) { body.visit(v); } } }
Visits this node, the variable list, and if present, the body expression or statement.
private void closeDialog(java.awt.event.WindowEvent evt){ closeDialog(); }
Closes the dialog
public static String construct(String... urlParts){ if (urlParts == null || urlParts.length == 0) { return ""; } StringBuilder builder=new StringBuilder(); String startingPart=removeStartingDash(urlParts[0]); startingPart=removeEndingDash(startingPart); if (!startingPart.startsWith("http")) { builde...
Construct url from the provided paths. Doesn't support url parameters. Only file path
public static void main(String[] argv){ String version=null; try { final Properties pomProperties=new Properties(); pomProperties.load(JmDNSImpl.class.getResourceAsStream("/META-INF/maven/javax.jmdns/jmdns/pom.properties")); version=pomProperties.getProperty("version"); } catch ( Exception e) { ...
Main method to display API information if run from java -jar
public static <T extends DataObjectRestRep>void applyFilter(Collection<T> resources,ResourceFilter<T> filter){ if (filter != null) { Iterator<T> iter=resources.iterator(); while (iter.hasNext()) { T resource=iter.next(); if (!filter.accept(resource)) { iter.remove(); } } } }
Applies a resource filter to the collection of resources.
@Override public void addEventListener(IRcsServiceRegistrationListener listener){ synchronized (mLock) { mRcsServiceRegistrationEventBroadcaster.addEventListener(listener); } }
Registers a listener on service registration events
public static SpeechletResponse buildSpeechletResponse(String output){ Properties props=new Properties(); output=parseProps(output,props); SimpleCard card=new SimpleCard(); if (props.containsKey("title")) card.setTitle(props.getProperty("title")); if (props.containsKey("card")) { String cardText=props.g...
Creates and returns the visual and spoken response with shouldEndSession flag.
public IntSet(){ this(10); }
Creates a new ResArray containing no mappings.
public T caseNamedElement(NamedElement object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
public static ListFragment newInstance(){ ListFragment fragment=new ListFragment(); Bundle args=new Bundle(); fragment.setArguments(args); return fragment; }
Use this factory method to create a new instance of this fragment using the provided parameters.
private int computeFlags(int curFlags){ curFlags&=~(WindowManager.LayoutParams.FLAG_IGNORE_CHEEK_PRESSES | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE| WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS| WindowManager...
I'm NOT completely sure how all this bitwise things work...
public void endVisit(ForStatement node){ }
End of visit the given type-specific AST node. <p> The default implementation does nothing. Subclasses may reimplement. </p>
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:27:58.536 -0500",hash_original_method="FCE3F0DACA962344761C11774B544CCF",hash_generated_method="942ABB0BCF583B3FE6A77B7D88C3097A") public static void startSelecting(View view,...
Start selecting text.
public boolean isMonitoredEditable(){ return origin != RepFolderOrigin.REP_BACKUP_FOLDER; }
Tells if the monitored property is editable.
public FieldGet(AccessibleField field){ this.field=field; }
FieldGetter sets the public field for the getter statement.
public boolean considerSegmentXRegion(GeoSegment seg,GeoRegion region){ return region.isSegmentNear(seg,filter.getHRange()); }
Returns true if the segment intersects with the region. The range of the query is determined by the filter set on this Intersection object.
private void resetTransformAttr(){ x=0.0; y=0.0; scaleX=1.0; scaleY=1.0; rotation=0.0; translateSet=false; scaleSet=false; rotationSet=false; }
Reset discreet transform attributes to their default value. This allows child matrix can be set instead.
public boolean isStateActive(State state){ switch (state) { case mainRegion_State1: return stateVector[0] == State.mainRegion_State1; case mainRegion_State2: return stateVector[0].ordinal() >= State.mainRegion_State2.ordinal() && stateVector[0].ordinal() <= State.mainRegion_State2__region0_State5.ordinal(); case ...
Returns true if the given state is currently active otherwise false.
public boolean updateAllTypes(){ return updateAllTypes; }
True if all fields that span multiple types should be updated, false otherwise
public static double regularizedGammaP(double a,double x){ return regularizedGammaP(a,x,DEFAULT_EPSILON,Integer.MAX_VALUE); }
Returns the regularized gamma function P(a, x).
private long readChangesetId(){ String changesetIdAttribute; changesetIdAttribute=reader.getAttributeValue(null,ATTRIBUTE_NAME_CHANGESET_ID); if (changesetIdAttribute != null) { return Long.parseLong(changesetIdAttribute); } else { return 0; } }
Parses a changeset id from the current entity.