Examples of clone()


Examples of org.perl6.nqp.sixmodel.SixModelObject.clone()

        P6OpaqueREPRData rd = (P6OpaqueREPRData)this.st.REPRData;
        SixModelObject av = rd.autoVivContainers[slot];
        if (av instanceof TypeObject)
            return av;
        else
            return av.clone(tc);
    }
   
    public SixModelObject clone(ThreadContext tc) {
        try {
            SixModelObject cloned;
View Full Code Here

Examples of org.pocui.example.components.Kunde.clone()

        // Check for last name and customer number ...
        if (isEqualCustomerName(getInSelection().getKundenname(),
            currentCustomer)
            && isEqualCustomerNumber(getInSelection()
                .getKundennummer(), currentCustomer)) {
          result.add((Kunde) currentCustomer.clone());
          // Check for last name ...
        } else if (isEqualCustomerName(
            getInSelection().getKundenname(), currentCustomer)
            && (getInSelection().getKundennummer() == null)) {
          result.add((Kunde) currentCustomer.clone());
View Full Code Here

Examples of org.pocui.swing.example.structure.Kunde.clone()

        // Check for last name and customer number ...
        if (isEqualCustomerName(getInSelection().getKundenname(),
            currentCustomer)
            && isEqualCustomerNumber(getInSelection()
                .getKundennummer(), currentCustomer)) {
          result.add((Kunde) currentCustomer.clone());
          // Check for last name ...
        } else if (isEqualCustomerName(
            getInSelection().getKundenname(), currentCustomer)
            && (getInSelection().getKundennummer() == null)) {
          result.add((Kunde) currentCustomer.clone());
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.statuses.StatusEffect.clone()

        List<?> statuses = target.getNormalStatuses(0);
        Iterator<?> i = statuses.iterator();
        while (i.hasNext()) {
          StatusEffect effect = (StatusEffect)i.next();
          if (effect instanceof StatChangeEffect) {
            StatChangeEffect effectClone = (StatChangeEffect)effect.clone();
            effectClone.setDescription(null);
            // TODO: Open question: does Clear Body protect
            // against lowering stats by using this move?
                user.addStatus(target, effectClone);
          }
View Full Code Here

Examples of org.powermock.classloading.spi.DeepClonerSPI.clone()

    }
  }

  private Object execute(Object instance, Method method, Object... arguments) {
        final DeepClonerSPI deepCloner = createDeepCloner(classloader);
    final Object objectLoadedWithClassloader = deepCloner.clone(instance);
    final Object[] argumentsLoadedByClassLoader = new Object[arguments.length];
    for (int i = 0; i < arguments.length; i++) {
      final Object argument = arguments[i];
      argumentsLoadedByClassLoader[i] = deepCloner.clone(argument);
    }
View Full Code Here

Examples of org.quartz.Calendar.clone()

     */
    public Calendar retrieveCalendar(SchedulingContext ctxt, String calName) {
        synchronized (lock) {
            Calendar cal = (Calendar) calendarsByName.get(calName);
            if(cal != null)
                return (Calendar) cal.clone();
            return null;
        }
    }

    /**
 
View Full Code Here

Examples of org.quartz.JobDataMap.clone()

                JobDetail jd = jw.jobDetail;

                if (jd.isStateful()) {
                    JobDataMap newData = jobDetail.getJobDataMap();
                    if (newData != null) {
                        newData = (JobDataMap)newData.clone();
                        newData.clearDirtyFlag();
                    }
                    jd.setJobDataMap(newData);
                    blockedJobs.remove(JobWrapper.getJobNameKey(jd));
                    ArrayList trigs = getTriggerWrappersForJob(jd.getName(), jd
View Full Code Here

Examples of org.red5.server.net.rtmp.message.Header.clone()

    }
    rtmp.setLastReadHeader(channelId, header);
    // check to see if this is a new packets or continue decoding an existing one
    Packet packet = rtmp.getLastReadPacket(channelId);
    if (packet == null) {
      packet = new Packet(header.clone());
      rtmp.setLastReadPacket(channelId, packet);
    }
    final IoBuffer buf = packet.getData();
    final int readRemaining = header.getSize() - buf.position();
    final int chunkSize = rtmp.getReadChunkSize();
View Full Code Here

Examples of org.sbml.jsbml.Compartment.clone()

        if (compartmentsIds != null) {
          for (int i = 0; i < compartmentsIds.length; i++) {
            Compartment relatedCompartment = model.getCompartment(compartmentsIds[i]);

            subModel.addCompartment(relatedCompartment.clone());
            processUnitsMap(unitsMap, model, relatedCompartment.getUnits());

            // check compartment type
            if ((relatedCompartment.getCompartmentTypeInstance() != null)
               && (subModel.getCompartmentType(relatedCompartment.getCompartmentType()) == null)) {
View Full Code Here

Examples of org.sbml.jsbml.Reaction.clone()

        if (reactsIds != null) {
          for (int i = 0; i < reactsIds.length; i++) {
            Reaction relatedReaction = model.getReaction(reactsIds[i]);

            subModel.addReaction(relatedReaction.clone());

            if (relatedReaction.getKineticLaw() != null) {
              // TODO: Parameters!
              getRelatedFunctionsId(relatedFunctionsIdSet, allFunctionsIdSet, relatedReaction.getKineticLaw().getMath());
              processUnitsMap(unitsMap, model, relatedReaction.getKineticLaw());
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.