Examples of clone()


Examples of tigase.xml.Element.clone()

        roster_util.setBuddySubscription(session, SubscriptionType.both, buddy);
        Element pres = (Element)session.getSessionData(Presence.PRESENCE_KEY);
        if (pres == null) {
          pres = new Element("presence");
        } else {
          pres = pres.clone();
        }
        pres.setAttribute("to", buddy);
        pres.setAttribute("from", session.getJID());
        results.offer(new Packet(pres));
      }
View Full Code Here

Examples of trams.data.Vehicle.clone()

          vehicle = (Vehicle) theContext.getBean("tram");
        }
        vehicle.setRegistrationNumber(id);
        System.out.println("This vehicle has registration number " + vehicle.getRegistrationNumber());
      vehicle.setDeliveryDate(deliveryDate);
      return (Vehicle) vehicle.clone();
    }
   
    /**
     * Create scenario object based on type.
     * This method needs to be updated in order to add new scenarios to TraMS.
View Full Code Here

Examples of trust.jfcm.FcmConnection.clone()

   
    /* clone connections */
    Iterator<FcmConnection> iter = this.getConnectionsIterator();
    while(iter.hasNext()){
      FcmConnection old_conn = (FcmConnection) iter.next();
      WeightedConnection new_conn = (WeightedConnection) old_conn.clone();
      new_conn.setFrom(map.getConcept(old_conn.getFrom().getName()));
      new_conn.setTo(map.getConcept(old_conn.getTo().getName()));
      map.addConnection(new_conn);
      map.connect(new_conn.getFrom().getName(), new_conn.getName(), new_conn.getTo().getName());
    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.FilterImpl.clone()

    private void jMenuItemCopyFilterToAllActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItemCopyFIlterToAllActionPerformed
        FilterImpl filter = getFilter();
        Collection<ProfileForm> profileForms = droidContext.allProfiles();
        for (ProfileForm profileForm : profileForms) {
            profileForm.getProfile().setFilter((FilterImpl) filter.clone());
            ApplyFilterToTreeTableAction filterProfile = new ApplyFilterToTreeTableAction(profileForm, profileManager);
            filterProfile.applyFilter();
        }

    }// GEN-LAST:event_jMenuItemCopyFIlterToAllActionPerformed
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.clone()

              Vector3 vector = new Vector3((NBTTagCompound) nbtList.tagAt(i)).translate(0.5);

              if (type == 1)
              {
                // Blue, PREVIEW
                ModularForceFieldSystem.proxy.renderHologram(this.worldObj, vector, 1, 1, 1, 30, vector.clone().translate(this.getDirection()));
              }
              else if (type == 2)
              {
                // Green, DO MOVE
                ModularForceFieldSystem.proxy.renderHologram(this.worldObj, vector, 0, 1, 0, 30, vector.clone().translate(this.getDirection()));
View Full Code Here

Examples of universalelectricity.core.electricity.ElectricityPack.clone()

                        ElectricityPack temp = ElectricExpansionEventHandler.INSTANCE.getNetworkStat(this.network);
                        ElectricExpansionEventHandler.INSTANCE.cleanNetworkStat(this.network);
                       
                        if (temp != null)
                        {
                            this.electricityReading = temp.clone();
                            this.electricityReading.amperes *= 20.0F;
                        }
                        else
                        {
                            this.electricityReading = EMPTY_PACK.clone();
View Full Code Here

Examples of vg.core.graph.GraphNode.clone()

    return(this.dataBase.executeSQLRequest(request));
  }
  public synchronized GraphNode getGraphSkeleton(final int graphId) {   
    GraphNode node = this.graphSkeletons.get(graphId);
    if(node != null) {
      return(node.clone());
    }
    return(null)
  }
  public synchronized void quit() {
    this.dataBase.close();
View Full Code Here

Examples of voldemort.versioning.VectorClock.clone()

    private void testObsoletePutFails(String message,
                                      Store<K, V, T> store,
                                      K key,
                                      Versioned<V> versioned) {
        VectorClock clock = (VectorClock) versioned.getVersion();
        clock = clock.clone();
        try {
            store.put(key, versioned, null);
            fail(message);
        } catch(ObsoleteVersionException e) {
            // this is good, but check that we didn't fuck with the version
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.