code
stringlengths
10
174k
nl
stringlengths
3
129k
@KnownFailure("not supported") public void testUpdate4() throws SQLException { DatabaseCreator.fillFKStrictTable(conn); try { statement.executeUpdate("UPDATE " + DatabaseCreator.FKSTRICT_TABLE + " SET name_id = 6 WHERE name_id = 2"); fail("expecting SQLException"); } catch ( SQLException ex) { } }
UpdateFunctionalityTest2#testUpdate4(). Attempts to set incorrect foreign key value - expecting SQLException TODO foreign key functionality is not supported
private Query generateResourcePoolQuery(ResourcePoolState initState){ Query query=Query.Builder.create().addKindFieldClause(ComputeState.class).addFieldClause(ComputeState.FIELD_NAME_RESOURCE_POOL_LINK,getSelfLink()).build(); return query; }
Generates a query that finds all computes which resource pool link points to this resource pool. Applicable to non-elastic pools only.
public String format(DateTimeFormatter formatter){ Objects.requireNonNull(formatter,"formatter"); return formatter.format(this); }
Formats this date-time using the specified formatter. <p> This date-time will be passed to the formatter to produce a string.
public static String encodeJavaOpts(String javaOpts){ String javaOptsBase64=DatatypeConverter.printBase64Binary(javaOpts.getBytes(Charset.forName("UTF-8"))); return String.format("\"%s\"",javaOptsBase64.replace("=","&equals;")); }
Encode the JVM options <br> 1. Convert it into Base64 format <br> 2. Add \" at the start and at the end <br> 3. replace "=" with "&amp;equals;"
public static DataRowReader createDataRowReader(int size,Attribute[] attributes){ Random random=new Random(0); List<DataRow> dataRows=new LinkedList<DataRow>(); for (int i=0; i < size; i++) { double[] data=new double[attributes.length]; for (int j=0; j < data.length; j++) { if (attributes[j].isNomin...
Returns a DataRowReader returning random values (generated with fixed random seed).
private String openFileChooser(){ String fileName=null; ExampleFileFilter filter=new ExampleFileFilter(new String[]{"csv"},"Portfolio Files"); if (null == m_csvDefaultDir) { m_csvDefaultDir=System.getProperty("user.dir"); } JFileChooser filer1=new JFileChooser(m_csvDefaultDir); ExampleFileChooser fileVi...
Method openFileChooser.
private Joiner joiner(){ return Joiner.on("\r\n"); }
Create a joiner for a header.
public void reclaim(Spring s){ s.item1=null; s.item2=null; if (springs.size() < maxSprings) springs.add(s); }
Reclaim a Spring into the object pool.
public int size(){ return components.size(); }
Gets the size of the stack.
public Integer loadIdNameValues(DbOutputStatement statement,Integer idx) throws Exception { int index=idx.intValue(); if (_logger.isDebugEnabled()) _logger.debug("loadIdNameValues"); _id=statement.getLongInteger(index++); _name=statement.getShortText(index++); return new Integer(index); }
Recupera el identificador y el nombre del grupo.
protected void executeTasks(final AccessPathTask[] tasks) throws Exception { if (executor == null) { for ( AccessPathTask task : tasks) { task.call(); } return; } final List<FutureTask<Void>> futureTasks=new LinkedList<FutureTask<Void>>(); for ( AccessPathTask task : tasks) { final Fut...
Either execute the tasks in the caller's thread or schedule them for execution on the supplied service.
public void addActionListener(ActionListener l){ dispatcher.addListener(l); }
Adds a listener to the Points Layer which will cause an event to dispatch on click the ActionEvent will contain the pressed PointLayer unprojected
private static void updateRecordStatus(Context context,RemoteViews remoteViews,boolean isRecording,boolean recordingTrackPaused){ String status; int colorId; if (isRecording) { status=context.getString(recordingTrackPaused ? R.string.generic_paused : R.string.generic_recording); colorId=recordingTrackPaus...
Updates recording status.
public Boolean isIpV6Supported(){ return ipV6Supported; }
Gets the value of the ipV6Supported property.
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:00:49.824 -0500",hash_original_method="D831304643C6F5E396859CE263E8CD25",hash_generated_method="B7D291EEFF0635366305D2FB3943B22D") public SAXException(){ this.exception=null; }
Create a new SAXException.
public static BucketReplicationProgress parseGetBucketReplicationProgress(InputStream responseBody) throws ResponseParseException { try { BucketReplicationProgress progress=new BucketReplicationProgress(); Element root=getXmlRootElement(responseBody); Element ruleElem=root.getChild("Rule"); progress.s...
Unmarshall get bucket replication response body to replication progress.
@SuppressWarnings("unchecked") public <T>void moveBean(@Nonnull T oldBean,@Nonnull T newBean,@Nonnull String name){ NamedBeanHandle<T> oldNamedBean=new NamedBeanHandle<>(name,oldBean); for ( NamedBeanHandle<T> h : namedBeanHandles) { if (oldNamedBean.equals(h)) { h.setBean(newBean); } } moveListe...
A method to effectivily move a name from one bean to another. This method only updates the references to point to the new bean It does not move the name provided from one bean to another.
public void traverse(Node pos) throws org.xml.sax.SAXException { this.m_contentHandler.startDocument(); traverseFragment(pos); this.m_contentHandler.endDocument(); }
Perform a pre-order traversal non-recursive style. Note that TreeWalker assumes that the subtree is intended to represent a complete (though not necessarily well-formed) document and, during a traversal, startDocument and endDocument will always be issued to the SAX listener.
public Hours plus(Hours hours){ if (hours == null) { return this; } return plus(hours.getValue()); }
Returns a new instance with the specified number of hours added. <p> This instance is immutable and unaffected by this method call.
public static <U>Stream<U> cycle(final Streamable<U> s){ return Stream.iterate(s.stream(),null).flatMap(Function.identity()); }
Create a Stream that infiniteable cycles the provided Streamable
protected void invalidateGeometryCache(){ if (parent != null) { parent.invalidateGeometryCache(); } bounds=null; }
Invalidates the cached geometric bounds. This method is called each time an attribute that affects the bounds of this node changed.
public synchronized void useApple(Apple apple) throws RemoteException { String threadName=Thread.currentThread().getName(); logger.log(Level.FINEST,threadName + ": AppleUserImpl.useApple(): BEGIN"); AppleUserThread t=new AppleUserThread("AppleUserThread-" + (++threadNum),apple); t.start(); logger.log(Level.FI...
"Use" supplied apple object. Create an AppleUserThread to stress it out.
public String sqlAD_getCustomColumnsWithoutElement(String vendorName,String catalogName,String schemaName,ArrayList<String> customEntities){ String tableName="AD_Column"; String tableAlias="c"; ArrayList<String> columnNames=new ArrayList<String>(); columnNames.add("ColumnName"); columnNames.add("Name"); col...
gets the database specific SQL command to find custom columns which have no base element
public String toString(){ String result="Notification Name: " + getName() + " Body:"; if (body != null) result+=body.toString() + " Type:"; else result+="null Type:"; if (type != null) result+=type; else result+="null "; return result; }
Get the string representation of the <code>Notification</code> instance.
public void runTest() throws Throwable { Document doc; NodeList genderList; Node genderNode; Node entElement; Node entElementContent; Node entReference; int nodeType; doc=(Document)load("staff",true); genderList=doc.getElementsByTagName("gender"); genderNode=genderList.item(2); entReference=gender...
Runs the test case.
private void selectClicked(MouseEvent e,boolean onlyOutside){ int index=list.locationToIndex(e.getPoint()); Rectangle bounds=list.getCellBounds(index,index); if (bounds != null && bounds.contains(e.getPoint())) { if (!onlyOutside) { if (list.isSelectedIndex(index)) { list.addSelectionInterval(in...
Adds selection of the clicked element, or removes selection if no element was clicked.
public static Value Print(Value v1,Value v2){ Value v1c=v1.deepCopy(); Value v2c=v2.deepCopy(); v1c.deepNormalize(); v2c.deepNormalize(); if (OUTPUT == null) { ToolIO.out.println(Value.ppr(v1c.toString()) + " " + Value.ppr(v2c.toString())); } else { try { OUTPUT.write(Value.ppr(v1c.toString(...
Prints to standard error the string (v1 + " " + v2), and returns the value v2. Modified on 22 June 2011 by LL to call deepNormalize() on the values before printing. This fixes the same bug that caused PrintT({"a", "a"}) to print {"a", "a"} instead of {"a"}. For safety, the values are copied before normalizing, tho...
public Executor checkpointEveryIteration(){ return withCheckpointFrequency(1); }
Enables this executor to save checkpoints after every iteration of the algorithm.
int[][] invMatrix(int[][] a){ int[][] A=new int[mDegree][mDegree]; A=a; int[][] inv=new int[mDegree][mDegree]; for (int i=0; i < mDegree; i++) { inv[i][i]=1; } for (int i=0; i < mDegree; i++) { for (int j=i; j < mDegree; j++) { A[mDegree - 1 - i][j]=A[i][i]; } } return null; }
Compute the inverse of a matrix <tt>a</tt>.
public void deserializeCurrentDirectory() throws RuntimeException { System.out.println("Deserializing files in " + getCurrentDirectory()); File directory=new File(getCurrentDirectory()); if (!directory.exists() || !directory.isDirectory()) { throw new IllegalArgumentException("There is no " + directory + " di...
Deserializes all files in the given directory, as a test to make sure they can all be deserialized.
public RegressionEvoOptimization(ExampleSet exampleSet,Kernel kernel,double c,double epsilon,int initType,int maxIterations,int generationsWithoutImprovement,int popSize,int selectionType,double tournamentFraction,boolean keepBest,int mutationType,double crossoverProb,boolean showConvergencePlot,boolean showPopulationP...
Creates a new evolutionary SVM optimization.
public void paintDirtyRegions(){ synchronized (this) { Map<Component,Rectangle> tmp=tmpDirtyComponents; tmpDirtyComponents=dirtyComponents; dirtyComponents=tmp; dirtyComponents.clear(); } paintDirtyRegions(tmpDirtyComponents); }
Paint all of the components that have been marked dirty.
private void showFeedback(String message){ if (myHost != null) { myHost.showFeedback(message); } else { System.out.println(message); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
public HtmlCode addElement(String hashcode,Element element){ addElementToRegistry(hashcode,element); return (this); }
Adds an Element to the element.
public JSONArray put(int index,int value) throws JSONException { this.put(index,new Integer(value)); return this; }
Put or replace an int value. If the index is greater than the length of the JSONArray, then null elements will be added as necessary to pad it out.
private void applyIncludes(Node source,final Properties variablesContext){ if (source.getNodeName().equals("include")) { Properties fullContext; String refId=getStringAttribute(source,"refid"); refId=PropertyParser.parse(refId,variablesContext); Node toInclude=findSqlFragment(refId); Properties ne...
Recursively apply includes through all SQL fragments.
public Integer executeUpdate(Statement stmt,String sqlCommand,boolean useInlineSavepoint,boolean isAllowInterruption){ if (isSource() && !isAllowInterruption) return null; if (s_dbEngine.isDBError()) return null; if (stmt == null) return null; if (sqlCommand == null || sqlCommand.length() == 0) return n...
run an SQL update command
@Override public void createGroupClone(StorageSystem storage,List<URI> cloneList,Boolean createInactive,TaskCompleter taskCompleter) throws DeviceControllerException { log.info("START create group clone operation"); List<String> targetDeviceIds=null; String sourceGroupName=null; try { final Volume first=_db...
Should implement create of a clone from a source volume that is part of a consistency group. Implementation note: In this method we will kick of the asynchronous creation of the target devices required for the CG clones. Upon the successful device creation, the post operations will take place, which will include the cr...
public List<T2<K,V>> toList(){ return root.toList(null); }
Retrieves a list of all entries of the map, ordered by keys.
public SignificantTermsBuilder minDocCount(int minDocCount){ bucketCountThresholds.setMinDocCount(minDocCount); return this; }
Only return significant terms that belong to at least <code>minDocCount</code> documents.
protected final void init(XCreateWindowParams params){ awtLock(); initialising=InitialiseState.INITIALISING; awtUnlock(); try { if (!Boolean.TRUE.equals(params.get(DELAYED))) { preInit(params); create(params); postInit(params); } else { instantPreInit(params); delayedParam...
Creates window using parameters <code>params</code> If params contain flag DELAYED doesn't do anything. Note: Descendants can call this method to create the window at the time different to instance construction.
public static int binarySearch(double[] array,double value,double tolerance){ if (array.length == 0) { return -1; } return binarySearch(array,0,array.length,value,tolerance); }
Return the index of <code>value</code> in <code>array</code>, or <tt>-1</tt> if there is no such index. If there are several values that are within <code>tolerance</code> or less of <code>value</code>, this method will return the index of the closest value. In case of several values being as close ot <code>value</code>...
float readBoost(Element el){ NodeList list=el.getElementsByTagName("boost"); if (list == null || list.getLength() == 0) return DomainSuffix.DEFAULT_BOOST; return Float.parseFloat(list.item(0).getFirstChild().getNodeValue()); }
read optional field boost
public BERSequence(ASN1EncodableVector v){ super(v); }
create a sequence containing a vector of objects.
public static JPanel createDialogButtonPanel(JButton jbPositive,JButton jbNegative){ JPanel panel=new JPanel(new MigLayout("insets 0, nogrid, fillx, aligny 100%")); if (jbPositive != null) { panel.add(jbPositive,"tag ok"); } if (jbNegative != null) { panel.add(jbNegative,"tag cancel"); } return pane...
Create a dialog button panel with the order and alignment dependent on the platform. <br> This method creates zero spacing around the buttons.
public void showPropertiesDialog(){ ReflectivePropertyEditor editor=(new ReflectivePropertyEditor(model)); JDialog dialog=editor.getDialog(); dialog.setModal(true); dialog.pack(); dialog.setLocationRelativeTo(null); dialog.setVisible(true); }
Show properties dialog.
public Task<BlockSnapshotSessionRestRep> unlinkTargets(URI snapshotSessionId,SnapshotSessionUnlinkTargetsParam unlinkTargetsParam){ return postTask(unlinkTargetsParam,getIdUrl() + "/unlink-targets",snapshotSessionId); }
Unlink target volumes from an existing BlockSnapshotSession instance and optionally delete those target volumes. <p> API Call: <tt>POST /block/snapshot-sessions/{id}/unlink-targets</tt>
protected void initPaint(){ mTimeTextPaint=new Paint(Paint.ANTI_ALIAS_FLAG); mTimeTextPaint.setColor(mTimeTextColor); mTimeTextPaint.setTextAlign(Paint.Align.CENTER); mTimeTextPaint.setTextSize(mTimeTextSize); if (isTimeTextBold) { mTimeTextPaint.setFakeBoldText(true); } mSuffixTextPaint=new Paint(Pai...
initialize Paint
@Deprecated public FileTransfer transferFile(ContactId contact,Uri file,boolean attachFileIcon) throws RcsPersistentStorageException, RcsServiceNotAvailableException, RcsGenericException { return transferFile(contact,file,Disposition.ATTACH,attachFileIcon); }
Transfers a file to a contact. The parameter file contains the URI of the file to be transferred (for a local or a remote file). The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception i...
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case TypesPackage.TSETTER__FPAR: return getFpar(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void addArc(Node<Label> destination,float weight,Label label){ outgoingArcs.add(new Arc<>(this,destination,weight,label)); }
Adds a new outgoing arc to this node that points to the specified destination. The new arc will have the specified weight and specified label.
private static int[][] incidenceMatrix(Graph graph) throws IllegalArgumentException { List<Node> nodes=graph.getNodes(); int[][] m=new int[nodes.size()][nodes.size()]; for ( Edge edge : graph.getEdges()) { if (!Edges.isDirectedEdge(edge)) { throw new IllegalArgumentException("Not a directed graph."); ...
A standard matrix graph representation for directed graphs. a[i][j] = 1 is j-->i and -1 if i-->j.
public GuacamoleUpstreamTimeoutException(Throwable cause){ super(cause); }
Creates a new GuacamoleUpstreamException with the given cause.
public Date initiated(){ return DateFormat.RESPONSE_DATE_FORMAT.parseDateTime(initiated).toDate(); }
Returns initated time.
public boolean isNull(int index){ return JSONObject.NULL.equals(this.opt(index)); }
Determine if the value is null.
static XDropTargetProtocol createInstance(XDropTargetProtocolListener listener){ return new XDnDDropTargetProtocol(listener); }
Creates an instance associated with the specified listener.
public SearchRequest requestCache(Boolean requestCache){ this.requestCache=requestCache; return this; }
Sets if this request should use the request cache or not, assuming that it can (for example, if "now" is used, it will never be cached). By default (not set, or null, will default to the index level setting if request cache is enabled or not).
private static boolean moveFile(Path oldFilename,Path newFilename){ try { if (!Files.exists(newFilename.getParent())) { Files.createDirectory(newFilename.getParent()); } boolean ok=Utils.moveFileSafe(oldFilename,newFilename); if (ok) { return true; } else { LOGGER.error("Could n...
MOVIES file.
protected Caret createCaret(){ return new WindowsTextUI.WindowsCaret(); }
Creates the object to use for a caret. By default an instance of WindowsCaret is created. This method can be redefined to provide something else that implements the InputPosition interface or a subclass of DefaultCaret.
@SuppressWarnings("unused") private static byte[] createByteArray(ImageIcon icon){ java.awt.Image image=icon.getImage(); try { int[] pix=new int[image.getWidth(null) * image.getHeight(null)]; PixelGrabber pg=new PixelGrabber(image,0,0,image.getWidth(null),image.getHeight(null),pix,0,image.getWidth(null)); ...
Crea un byte[] de un icono
public static void addGem(Entity entity,CircleGemType gemType,CircleGem.CombatType combatType){ if (entity.hasCapability(CapabilityRegistry.CAPABILITY_ENTITY_CIRCLE_GEM,null)) { ICircleGemCapability capability=entity.getCapability(CapabilityRegistry.CAPABILITY_ENTITY_CIRCLE_GEM,null); CircleGem gem=new Circle...
Adds a gem to the specified entity
public boolean isOverwriteOnConflict(){ return overwriteOnConflict; }
Flag to control if existing file with same name should be overwritten
private Iso639(String engName,String two,String term,String bib,int classify){ name=engName; twoCharCode=two; terminologyCode=term; bibliographicCode=bib; classification=classify | LT_ISO639; put(two,this); put(term,this); put(bib,this); }
Creates new Iso639
void fireMonitorsUpdatedEvents(){ VmEvent ev=null; ArrayList<VmListener> registered=null; synchronized (listeners) { registered=cast(listeners.clone()); } for ( VmListener l : registered) { if (ev == null) { ev=new VmEvent(this); } l.monitorsUpdated(ev); } }
Fire MonitoredUpdated events.
public ImageIcon loadImage(String imageName){ try { ClassLoader classloader=getClass().getClassLoader(); java.net.URL url=classloader.getResource(imageName); if (url != null) { ImageIcon icon=new ImageIcon(url); return icon; } } catch ( Exception e) { e.printStackTrace(); } thr...
Helper method to load an image file from the CLASSPATH
V peek(K key){ kvUtil.verifyKeyNotNull(key); AccessTimeObjectHolder<V> holder=gatedHolder(objects.get(key)); return holder == null ? null : holder.peek(); }
Returns the value if this Cache contains a mapping for the specified key. Does not have any side effects like statistics or changing metadata like access time.
public Action<T> whenPermissionsResultReceived(PermissionsResultListener listener){ this.permissionsResultRef=new WeakReference<>(listener); return this; }
Registers a callback for both granted and refused permissions. The callback is always called and provides a combined result of checking permissions.
public WFNode(MWFNode node){ m_node=node; m_icon=new WFIcon(node.getAction()); m_bounds=new Rectangle(m_node.getXPosition(),m_node.getYPosition(),s_size.width,s_size.height); }
Create WF Node
public Icon(String id,String sourcePath){ this.id=id; this.sourcePath=sourcePath; this.svgResource=null; this.imageResource=null; }
Create a new icon based on the specified image path.
protected Postcondition_Impl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public boolean is_terminal(MethodOrMethodContext mc){ Stack<SootMethod> sys_stack=new Stack<SootMethod>(); boolean result; if (!is_system(mc.method())) result=false; else { if (!process_callbacks) result=true; else { if ((stack.size() > 0) && is_system(stack.peek())) result=!calls_app_meth...
Returns true if the specified method should terminate the call graph The call graph is terminated on system calls that do not have callbacks into application code.
private void returnData(Object ret){ if (myHost != null) { myHost.returnData(ret); } }
Used to communicate a return object from a plugin tool to the main Whitebox user-interface.
@Override public synchronized boolean retainAll(Collection<?> collection){ return super.retainAll(collection); }
Removes all objects from this vector that are not contained in the specified collection.
@Override public void validate() throws ConfigException { for (int i=0; i < _jarList.size(); i++) { _jarList.get(i).validate(); } }
Validates the loader.
public void startPrefixMapping(String prefix,String uri) throws SAXException { if (DEBUG) System.out.println("TransformerHandlerImpl#startPrefixMapping: " + prefix + ", "+ uri); if (m_contentHandler != null) { m_contentHandler.startPrefixMapping(prefix,uri); } }
Filter a start Namespace prefix mapping event.
private void mark(){ theLastColumn=theCurrentColumn; theLastLine=theCurrentLine; }
Mark the current scan position as a "point of interest" - start of a tag, cdata, processing instruction etc.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:01:19.365 -0500",hash_original_method="888FC51886C6044A7D8C9FF6C24BD9F3",hash_generated_method="2BD935C62418A5B02B2F993978154287") public static String combineStrings(Object[] list){ int listLength=list.length; switch (listLength) { ...
Combine a list of strings in an <code>Object[]</code> into a single string.
public final RowHandleMap result() throws InterruptedException, ExecutionException { return this.result.get(); }
this must be called after a finish() was called. this method blocks until all entries had been processed, and the content was sorted. It returns the HandleMap that the user wanted to initialize
public ActiveInfoStorageCalculatorKraskov() throws InstantiationException, IllegalAccessException, ClassNotFoundException { super(MI_CALCULATOR_KRASKOV2); }
Creates a new instance of the Kraskov-Stoegbauer-Grassberger style AIS calculator. Uses algorithm 2 by default.
private static void validate(VOUserDetails userDetails) throws ValidationException { BLValidator.isName(FIELD_NAME_ADDITIONAL_NAME,userDetails.getAdditionalName(),false); BLValidator.isDescription(FIELD_NAME_ADDRESS,userDetails.getAddress(),false); BLValidator.isId(FIELD_NAME_ORGANIZATION_ID,userDetails.getOrgani...
Validate a user details value object.
public boolean isEmpty(){ return size == 0; }
Return whether the list is empty.
private void paintCornerEnabled(Graphics2D g,int width,int height){ Shape s=decodeCornerBorder(width,height); s=decodeCornerInside(width,height); g.setPaint(decodeCornerGradient(s)); g.fill(s); }
DOCUMENT ME!
@SuppressWarnings("deprecation") static HttpUriRequest createHttpRequest(Request<?> request,Map<String,String> additionalHeaders) throws AuthFailureError { switch (request.getMethod()) { case Method.GET: return new HttpGet(request.getUrl()); case Method.DELETE: return new HttpDelete(request.getUrl()); case Method...
Creates the appropriate subclass of HttpUriRequest for passed in request.
public boolean isCrippled(){ if (destroyed || jammed || missing|| useless|| fired) { return true; } if ((type instanceof AmmoWeapon) || (type instanceof AmmoBayWeapon)) { if ((getLinked() == null) || (entity.getTotalAmmoOfType(getLinked().getType()) < 1)) { return true; } } if (isDWPMounted ...
Determines whether this weapon should be considered crippled for damage level purposes.
public ValueModelUserPresence(String name,UserPresence defaultValue){ super(name,defaultValue); }
Create ValueModel
public Criteria createCriteria(){ Criteria criteria=createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
This method was generated by MyBatis Generator. This method corresponds to the database table bug
void update(BroadphaseKey key,SapProxy<E,T> proxy,E collidable,T fixture){ Transform tx=collidable.getTransform(); AABB aabb=fixture.getShape().createAABB(tx); if (proxy.aabb.contains(aabb)) { return; } aabb.expand(this.expansion); this.tree.remove(proxy); proxy.aabb=aabb; this.tree.insert(proxy); }...
Internal update method. <p> This method assumes the given arguments are all non-null.
public void dropTables(DatabaseSession session,JPAMSchemaManager schemaManager){ dropTables(session,schemaManager,true); }
Drop the tables from the database.
@PUT public void updateObject(ExternalType modifiedObject) throws GuacamoleException { if (modifiedObject == null) throw new GuacamoleClientException("Data must be submitted when updating objects."); translator.applyExternalChanges(object,modifiedObject); directory.update(object); }
Updates an existing object. The changes to be made to the corresponding object within the directory indicated by the provided data.
public boolean isSetter(){ return type == Token.SET; }
Returns true if this is a setter function.
public Criteria createCriteria(){ Criteria criteria=createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
This method was generated by MyBatis Generator. This method corresponds to the database table PUBLIC.SAMPLETABLE1
@Override final public GroupNodeBase<?> visit(final ASTGraphPatternGroup node,Object data) throws VisitorException { if (log.isInfoEnabled()) { log.info("\ndepth=" + depth(node) + ", parentGP(in)="+ graphPattern+ "\n"+ node.dump(indent(node))); } final GroupGraphPattern parentGP=graphPattern; graphPattern=n...
<code>( SelectQuery | GraphPattern )</code> - this is the common path for SubSelect and graph patterns. <p> Note: (NOT) EXISTS uses a temporary graph pattern in order to avoid the side-effect on the parent's graph pattern. Other value functions with inner graph patterns should do this as well.
private void createLiveModeEvent(){ Map<IPreferenceGroup,Object> livePreference=new HashMap<>(); livePreference.put(PreferenceId.LiveMode.BUTTON_LIVE_ID,switchLiveMode.isChecked()); PreferenceEvent event=new PreferenceEvent(PreferenceId.LIVEMODE); event.setPreferenceMap(livePreference); fireEvent(event); }
Creates and fires a new live mode event.
@Override public InetAddress addressRemote(){ SocketChannel s=_channel; if (s != null) { try { InetSocketAddress addr=(InetSocketAddress)s.getRemoteAddress(); return addr.getAddress(); } catch ( IOException e) { throw new RuntimeException(e); } } else { return null; } }
Returns the remote client's inet address.
public Rule removeRandomRule(final EvolutionState state,final int thread){ if (numRules <= 0) return null; else return removeRule(state.random[thread].nextInt(numRules)); }
Removes a randomly-chosen rule from the rule set and returns it. If there are no rules to remove, this method returns null.
public static GenericPK create(ModelEntity modelEntity){ GenericPK newPK=new GenericPK(); newPK.init(modelEntity); return newPK; }
Creates new GenericPK
public boolean isLazy_1(){ return lazy_1; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static Object convertToWrappedPrimitive(Object source,Class<?> wrapper){ if (source == null || wrapper == null) { return null; } if (wrapper.isInstance(source)) { return source; } if (wrapper.isAssignableFrom(source.getClass())) { return source; } if (source instanceof Number) { ret...
Convert to wrapped primitive
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:19.940 -0500",hash_original_method="8EA3BFAB97A4D4877FC2554FB493C6C0",hash_generated_method="91E7B8B05EA1C3F175A3139FD889C65C") public boolean regionMatches(int thisStart,S...
Compares the specified string to this string and compares the specified range of characters to determine if they are the same.
public SurefireScalaSensor(Settings settings,FileSystem fileSystem,SurefireScalaConfiguration configuration,PathResolver pathResolver){ this.settings=settings; this.fileSystem=fileSystem; this.configuration=configuration; this.pathResolver=pathResolver; }
Use of IoC to get Settings and FileSystem