/**
 * Copyright Notice
 *
 * This is a work of the U.S. Government and is not subject to copyright 
 * protection in the United States. Foreign copyrights may apply.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package gov.va.isaac.gui.dragAndDrop;

import java.util.UUID;
import gov.va.isaac.util.Utility;

/**
 * {@link ConceptIdProvider}
 *
 * @author <a href="mailto:daniel.armbrust.list@gmail.com">Dan Armbrust</a> 
 */
public abstract class ConceptIdProvider
{
	/**
	 * Implementers of this should return a UUID, or a NID - which we would expect most drop targets to handle.
	 * @return
	 */
	public abstract String getConceptId();
	
	/**
	 * Convenience method
	 * @return
	 */
	public boolean isNid()
	{
		return Utility.isInt(getConceptId());
	}
	
	/**
	 * Convenience method
	 * @return
	 */
	public boolean isUUID()
	{
		return Utility.isUUID(getConceptId());
	}
	
	/**
	 * Convenience method that simply parses the UUID from {@code #getConceptId}
	 * Will fail if it isn't a UUID (but this may be overridden to be smarter by implementations)
	 */
	public UUID getConceptUUID()
	{
		return UUID.fromString(getConceptId());
	}
	
	/**
	 * Convenience method that simply parses the UUID from {@code #getConceptId}
	 * Will fail if it isn't an int (but this may be overridden to be smarter by implementations)
	 */
	public int getNid()
	{
		return Integer.parseInt(getConceptId());
	}
}

@@ -941,29 +941,45 @@
  */%0A
-public abstract class
+@FunctionalInterface%0Apublic interface
  Con
@@ -1138,17 +1138,8 @@
 lic 
-abstract 
 Stri
@@ -1197,32 +1197,40 @@
 * @return%0A%09 */%0A%09
+default 
 public boolean i
@@ -1326,24 +1326,32 @@
 eturn%0A%09 */%0A%09
+default 
 public boole
@@ -1591,24 +1591,32 @@
 ions)%0A%09 */%0A%09
+default 
 public UUID 
@@ -1861,25 +1861,33 @@
 tions)%0A%09 */%0A
-
 %09
+default 
 public int g

convert to a functional interface to you can use Lambdas when calling