⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customerinformationsystem.java

📁 CustomerInformationSystem 顾客的信息系统设计
💻 JAVA
字号:
package uml;

import java.util.Collection;
import java.util.Iterator;


public class CustomerInformationSystem {

		
		/**
		 */
		public void add_customer(){
		
		}

			
			/**
			 */
			public void look_up(){
			
			}


				
				/**
				 */
				public void remove(){
				
				}



				/**
				 * @uml.property  name="name"
				 */
				private String name = "";



				/**
				 * Getter of the property <tt>name</tt>
				 * @return  Returns the name.
				 * @uml.property  name="name"
				 */
				public String getName() {
					return name;
				}


				/**
				 * Setter of the property <tt>name</tt>
				 * @param name  The name to set.
				 * @uml.property  name="name"
				 */
				public void setName(String name) {
					this.name = name;
				}



				/**
				 * @uml.property  name="ID"
				 */
				private String id = "";



				/**
				 * Getter of the property <tt>ID</tt>
				 * @return  Returns the id.
				 * @uml.property  name="ID"
				 */
				public String getID() {
					return id;
				}


				/**
				 * Setter of the property <tt>ID</tt>
				 * @param ID  The id to set.
				 * @uml.property  name="ID"
				 */
				public void setID(String id) {
					this.id = id;
				}



				/**
				 * @uml.property  name="individualCustomers"
				 * @uml.associationEnd  multiplicity="(1 -1)" inverse="customerInformationSystem:uml.IndividualCustomers"
				 */
				private Collection individualCustomers;



				/**
				 * Getter of the property <tt>individualCustomers</tt>
				 * @return  Returns the individualCustomers.
				 * @uml.property  name="individualCustomers"
				 */
				public Collection getIndividualCustomers() {
					return individualCustomers;
				}


				/**
				 * Returns an iterator over the elements in this collection. 
				 * @return  an <tt>Iterator</tt> over the elements in this collection
				 * @see java.util.Collection#iterator()
				 * @uml.property  name="individualCustomers"
				 */
				public Iterator individualCustomersIterator() {
					return individualCustomers.iterator();
				}


				/**
				 * Returns <tt>true</tt> if this collection contains no elements.
				 * @return  <tt>true</tt> if this collection contains no elements
				 * @see java.util.Collection#isEmpty()
				 * @uml.property  name="individualCustomers"
				 */
				public boolean isIndividualCustomersEmpty() {
					return individualCustomers.isEmpty();
				}


				/**
				 * Returns <tt>true</tt> if this collection contains the specified element. 
				 * @param element  whose presence in this collection is to be tested.
				 * @see java.util.Collection#contains(Object)
				 * @uml.property  name="individualCustomers"
				 */
				public boolean containsIndividualCustomers(IndividualCustomers individualCustomers) {
					return this.individualCustomers.contains(individualCustomers);
				}


				/**
				 * Returns <tt>true</tt> if this collection contains all of the elements in the specified collection.
				 * @param elements  collection to be checked for containment in this collection.
				 * @see java.util.Collection#containsAll(Collection)
				 * @uml.property  name="individualCustomers"
				 */
				public boolean containsAllIndividualCustomers(Collection individualCustomers) {
					return this.individualCustomers.containsAll(individualCustomers);
				}


				/**
				 * Returns the number of elements in this collection.
				 * @return  the number of elements in this collection
				 * @see java.util.Collection#size()
				 * @uml.property  name="individualCustomers"
				 */
				public int individualCustomersSize() {
					return individualCustomers.size();
				}


				/**
				 * Returns all elements of this collection in an array.
				 * @return  an array containing all of the elements in this collection
				 * @see java.util.Collection#toArray()
				 * @uml.property  name="individualCustomers"
				 */
				public IndividualCustomers[] individualCustomersToArray() {
					return (IndividualCustomers[]) individualCustomers
							.toArray(new IndividualCustomers[individualCustomers.size()]);
				}


				/**
				 * Returns an array containing all of the elements in this collection;  the runtime type of the returned array is that of the specified array.
				 * @param a  the array into which the elements of this collection are to be stored.
				 * @return  an array containing all of the elements in this collection
				 * @see java.util.Collection#toArray(Object[])
				 * @uml.property  name="individualCustomers"
				 */
				public IndividualCustomers[] individualCustomersToArray(IndividualCustomers[] individualCustomers) {
					return (IndividualCustomers[]) this.individualCustomers
							.toArray(individualCustomers);
				}


				/**
				 * Ensures that this collection contains the specified element (optional operation). 
				 * @param element  whose presence in this collection is to be ensured.
				 * @see java.util.Collection#add(Object)
				 * @uml.property  name="individualCustomers"
				 */
				public boolean addIndividualCustomers(IndividualCustomers individualCustomers) {
					return this.individualCustomers.add(individualCustomers);
				}


				/**
				 * Setter of the property <tt>individualCustomers</tt>
				 * @param individualCustomers  the individualCustomers to set.
				 * @uml.property  name="individualCustomers"
				 */
				public void setIndividualCustomers(Collection individualCustomers) {
					this.individualCustomers = individualCustomers;
				}


				/**
				 * Removes a single instance of the specified element from this collection, if it is present (optional operation).
				 * @param element  to be removed from this collection, if present.
				 * @see java.util.Collection#add(Object)
				 * @uml.property  name="individualCustomers"
				 */
				public boolean removeIndividualCustomers(IndividualCustomers individualCustomers) {
					return this.individualCustomers.remove(individualCustomers);
				}


				/**
				 * Removes all of the elements from this collection (optional operation).
				 * @see java.util.Collection#clear()
				 * @uml.property  name="individualCustomers"
				 */
				public void clearIndividualCustomers() {
					this.individualCustomers.clear();
				}



				/**
				 * @uml.property  name="institutionalCustomers"
				 * @uml.associationEnd  multiplicity="(1 -1)" inverse="customerInformationSystem:uml.InstitutionalCustomers"
				 */
				private Collection institutionalCustomers;



				/**
				 * Getter of the property <tt>institutionalCustomers</tt>
				 * @return  Returns the institutionalCustomers.
				 * @uml.property  name="institutionalCustomers"
				 */
				public Collection getInstitutionalCustomers() {
					return institutionalCustomers;
				}


				/**
				 * Returns an iterator over the elements in this collection. 
				 * @return  an <tt>Iterator</tt> over the elements in this collection
				 * @see java.util.Collection#iterator()
				 * @uml.property  name="institutionalCustomers"
				 */
				public Iterator institutionalCustomersIterator() {
					return institutionalCustomers.iterator();
				}


				/**
				 * Returns <tt>true</tt> if this collection contains no elements.
				 * @return  <tt>true</tt> if this collection contains no elements
				 * @see java.util.Collection#isEmpty()
				 * @uml.property  name="institutionalCustomers"
				 */
				public boolean isInstitutionalCustomersEmpty() {
					return institutionalCustomers.isEmpty();
				}


				/**
				 * Returns <tt>true</tt> if this collection contains the specified element. 
				 * @param element  whose presence in this collection is to be tested.
				 * @see java.util.Collection#contains(Object)
				 * @uml.property  name="institutionalCustomers"
				 */
				public boolean containsInstitutionalCustomers(InstitutionalCustomers institutionalCustomers) {
					return this.institutionalCustomers.contains(institutionalCustomers);
				}


				/**
				 * Returns <tt>true</tt> if this collection contains all of the elements in the specified collection.
				 * @param elements  collection to be checked for containment in this collection.
				 * @see java.util.Collection#containsAll(Collection)
				 * @uml.property  name="institutionalCustomers"
				 */
				public boolean containsAllInstitutionalCustomers(Collection institutionalCustomers) {
					return this.institutionalCustomers.containsAll(institutionalCustomers);
				}


				/**
				 * Returns the number of elements in this collection.
				 * @return  the number of elements in this collection
				 * @see java.util.Collection#size()
				 * @uml.property  name="institutionalCustomers"
				 */
				public int institutionalCustomersSize() {
					return institutionalCustomers.size();
				}


				/**
				 * Returns all elements of this collection in an array.
				 * @return  an array containing all of the elements in this collection
				 * @see java.util.Collection#toArray()
				 * @uml.property  name="institutionalCustomers"
				 */
				public InstitutionalCustomers[] institutionalCustomersToArray() {
					return (InstitutionalCustomers[]) institutionalCustomers.toArray(new InstitutionalCustomers[institutionalCustomers.size()]);
				}


				/**
				 * Returns an array containing all of the elements in this collection;  the runtime type of the returned array is that of the specified array.
				 * @param a  the array into which the elements of this collection are to be stored.
				 * @return  an array containing all of the elements in this collection
				 * @see java.util.Collection#toArray(Object[])
				 * @uml.property  name="institutionalCustomers"
				 */
				public InstitutionalCustomers[] institutionalCustomersToArray(InstitutionalCustomers[] institutionalCustomers) {
					return (InstitutionalCustomers[]) this.institutionalCustomers.toArray(institutionalCustomers);
				}


				/**
				 * Ensures that this collection contains the specified element (optional operation). 
				 * @param element  whose presence in this collection is to be ensured.
				 * @see java.util.Collection#add(Object)
				 * @uml.property  name="institutionalCustomers"
				 */
				public boolean addInstitutionalCustomers(InstitutionalCustomers institutionalCustomers) {
					return this.institutionalCustomers.add(institutionalCustomers);
				}


				/**
				 * Setter of the property <tt>institutionalCustomers</tt>
				 * @param institutionalCustomers  the institutionalCustomers to set.
				 * @uml.property  name="institutionalCustomers"
				 */
				public void setInstitutionalCustomers(Collection institutionalCustomers) {
					this.institutionalCustomers = institutionalCustomers;
				}


				/**
				 * Removes a single instance of the specified element from this collection, if it is present (optional operation).
				 * @param element  to be removed from this collection, if present.
				 * @see java.util.Collection#add(Object)
				 * @uml.property  name="institutionalCustomers"
				 */
				public boolean removeInstitutionalCustomers(InstitutionalCustomers institutionalCustomers) {
					return this.institutionalCustomers.remove(institutionalCustomers);
				}


				/**
				 * Removes all of the elements from this collection (optional operation).
				 * @see java.util.Collection#clear()
				 * @uml.property  name="institutionalCustomers"
				 */
				public void clearInstitutionalCustomers() {
					this.institutionalCustomers.clear();
				}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -