[Swift-commit] r3242 - trunk/src/org/griphyn/vdl/mapping

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Feb 17 15:58:52 CST 2010


Author: hategan
Date: 2010-02-17 15:58:52 -0600 (Wed, 17 Feb 2010)
New Revision: 3242

Modified:
   trunk/src/org/griphyn/vdl/mapping/Path.java
Log:
added getLast method to path (getFirst was lonely)

Modified: trunk/src/org/griphyn/vdl/mapping/Path.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/Path.java	2010-02-17 21:58:11 UTC (rev 3241)
+++ trunk/src/org/griphyn/vdl/mapping/Path.java	2010-02-17 21:58:52 UTC (rev 3242)
@@ -177,6 +177,10 @@
 	public String getFirst() {
 		return ((Entry) elements.get(0)).name;
 	}
+	
+	public String getLast() {
+	    return ((Entry) elements.get(elements.size() - 1)).name;
+	}
 
 	public boolean isEmpty() {
 		return elements == null || elements.size() == 0;




More information about the Swift-commit mailing list