Package com.iggroup.oss.sample.domain.exception

Examples of com.iggroup.oss.sample.domain.exception.DuplicateReferenceException


    *
    * @param sample the sample to be created
    */
   public void createSample(Sample sample) {
      if (database.containsKey(sample.getReference())) {
         throw new DuplicateReferenceException(sample.getReference());
      }
      database.put(sample.getReference(), sample);
   }
View Full Code Here

TOP

Related Classes of com.iggroup.oss.sample.domain.exception.DuplicateReferenceException

Copyright © 2018 www.massapicom. 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.