Examples of clone()


Examples of net.sourceforge.ganttproject.GanttCalendar.Clone()

            if (tn.isRoot())
                continue;
            GanttCalendar tnEnd = tn.getEnd();
            if (end == null || end.before(tnEnd)) {
                res.clear();
                end = tnEnd.Clone();
                res.add(tn.getUserObject());
            } else if (end.compareTo(tnEnd) == 0)
                res.add(tn.getUserObject());
        }
        return res;
View Full Code Here

Examples of net.sourceforge.jiu.data.Palette.clone()

  {
    Palette newPalette = null;
    Palette myPalette = getPalette();
    if (myPalette != null)
    {
      newPalette = (Palette)myPalette.clone();
    }
    return new MemoryPaletted8Image(width, height, newPalette);
  }

  public long getAllocatedMemory()
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry.clone()

   *
   * @param event   a BlogEntryEvent instance
   */
  public void blogEntryAdded(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();
    sendNotification((BlogEntry)blogEntry.clone());
  }

  /**
   * Called when a blog entry has been changed.
   *
 
View Full Code Here

Examples of net.sourceforge.pebble.domain.StaticPage.clone()

    } catch (PersistenceException pe) {
      throw new StaticPageServiceException(blog, pe);
    }

    if (staticPage != null) {
      staticPage = (StaticPage)staticPage.clone();
    }

    return staticPage;
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.clone()

     SessionProperties result = createMock(SessionProperties.class);
     expect(result.getSQLStatementSeparator()).andReturn(sep).anyTimes();
     expect(result.getStartOfLineComment()).andReturn(solComment).anyTimes();
     expect(result.getRemoveMultiLineComment()).andReturn(removeMultLineComments)
                                               .anyTimes();
     expect(result.clone()).andReturn(result).anyTimes();
     replay(result);
     return result;
  }

  public static SquirrelPreferences getEasyMockSquirrelPreferences(
View Full Code Here

Examples of net.sourceforge.veditor.builder.BuildConfig.clone()

       results.setName(m_NewName);
     }
     else{
       //copy a configuration
       BuildConfig source=m_SelectedConfig.clone();
       results=source.clone();
       results.setName(m_NewName);
     }
    
     return results;
   }
View Full Code Here

Examples of net.tinyportal.bean.PortletHolder.clone()

  public static PortletHolder getPortlet(HttpServletRequest request, String portletName) {
    HttpSession session = request.getSession(true);
    PortletHolder bean = (PortletHolder)session.getAttribute(portletName);
    if (bean == null) {
      PortletHolder legacy = portletPool.get(portletName);
      session.setAttribute(portletName, bean = legacy.clone());
    }
   
    return bean;
  }
 
View Full Code Here

Examples of net.yacy.kelondro.data.word.WordReferenceVars.clone()

                String dom;
                Integer count;
                final Integer int1 = 1;
                while ((iEntry = this.decodedEntries.take()) != WordReferenceVars.poison) {
                    // find min/max
                    if (ReferenceOrder.this.min == null) ReferenceOrder.this.min = iEntry.clone(); else ReferenceOrder.this.min.min(iEntry);
                    if (ReferenceOrder.this.max == null) ReferenceOrder.this.max = iEntry.clone(); else ReferenceOrder.this.max.max(iEntry);
                    this.out.put(iEntry); // must be after the min/max check to prevent that min/max is null in cardinal()
                    // update domcount
                    dom = iEntry.hosthash();
                    count = doms0.get(dom);
View Full Code Here

Examples of nexj.core.meta.persistence.AttributeMapping.clone()

                           {
                              AttributeMapping attributeMapping = baseMapping.getAttributeMapping(attribute);

                              if (attributeMapping != null)
                              {
                                 attributeMapping = (AttributeMapping)attributeMapping.clone();

                                 attributeMapping.setPersistenceMapping(mapping);
                                 attributeMapping.setAttribute(dst);

                                 ((ClassMapping)attributeMapping).setMapping(((Metaclass)dst.getType()).getPersistenceMapping());
View Full Code Here

Examples of nexj.core.meta.persistence.sql.RelationalSchema.clone()

    */
   public UpgradeState createState()
   {
      RelationalSchema schema = (RelationalSchema)m_dataSource.getSchema();

      return new RelationalSchemaUpgradeState((RelationalSchema)schema.clone(), schema, getUpgrade());
   }

   /**
    * @see nexj.core.meta.upgrade.VersionUpgrade#apply(nexj.core.meta.upgrade.UpgradeState)
    */
 
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.