Example usage for java.util Vector clone

List of usage examples for java.util Vector clone

Introduction

In this page you can find the example usage for java.util Vector clone.

Prototype

public synchronized Object clone() 

Source Link

Document

Returns a clone of this vector.

Usage

From source file:org.sakaiproject.announcement.tool.AnnouncementActionState.java

/**
 * Set//from   w  w w. j  a  v a 2s  . co m
 */
public void setMoreAttachments(Vector moreAttachments) {
    // if there's a change
    if (moreAttachments != null) {
        m_moreAttachments = (Vector) moreAttachments.clone();
    } else {
        m_moreAttachments = null;
    }

    // remember the new

}

From source file:org.sakaiproject.announcement.tool.AnnouncementActionState.java

/**
 * Set//w  w  w .  j ava 2  s. c  om
 */
public void setTempAttachments(Vector tempAttachments) {
    // if there's a change
    if (tempAttachments != null) {
        m_tempAttachments = (Vector) tempAttachments.clone();
    } else {
        m_tempAttachments = null;
    }

    // remember the new

}

From source file:org.sakaiproject.announcement.tool.AnnouncementActionState.java

/**
 * Set//  w  ww .jav  a2  s .  c o  m
 */
public void setTempMoreAttachments(Vector tempMoreAttachments) {
    // if there's a change
    if (tempMoreAttachments != null) {
        m_tempMoreAttachments = (Vector) tempMoreAttachments.clone();
    } else {
        m_tempMoreAttachments = null;
    }

    // remember the new

}