Print

Print


Commit in GeomConverter/src/org/lcsim/detector/identifier on MAIN
IIdentifierDictionary.java+7-11.11 -> 1.12
IdentifierDictionary.java+10-11.8 -> 1.9
+17-2
2 modified files
add access to list of field objects

GeomConverter/src/org/lcsim/detector/identifier
IIdentifierDictionary.java 1.11 -> 1.12
diff -u -r1.11 -r1.12
--- IIdentifierDictionary.java	25 Feb 2011 03:09:38 -0000	1.11
+++ IIdentifierDictionary.java	24 Jan 2013 22:26:35 -0000	1.12
@@ -7,7 +7,7 @@
  * that define the fields of an {@link IIdentifier}.
  *
  * @author Jeremy McCormick
- * @version $Id: IIdentifierDictionary.java,v 1.11 2011/02/25 03:09:38 jeremy Exp $
+ * @version $Id: IIdentifierDictionary.java,v 1.12 2013/01/24 22:26:35 jeremy Exp $
  */
 public interface IIdentifierDictionary
 {
@@ -51,6 +51,12 @@
     List<String> getFieldNames();
     
     /**
+     * Get the list of fields.
+     * @return The list of fields.
+     */
+    List<IIdentifierField> getFieldList();
+    
+    /**
      * Get the number of fields in this dictionary.     
      * @return The number of fields in the dictionary.
      */

GeomConverter/src/org/lcsim/detector/identifier
IdentifierDictionary.java 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- IdentifierDictionary.java	25 Feb 2011 03:09:38 -0000	1.8
+++ IdentifierDictionary.java	24 Jan 2013 22:26:35 -0000	1.9
@@ -1,6 +1,7 @@
 package org.lcsim.detector.identifier;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.LinkedHashMap;
 import java.util.List;
@@ -12,7 +13,7 @@
  * instead.
  * 
  * @author Jeremy McCormick
- * @version $Id: IdentifierDictionary.java,v 1.8 2011/02/25 03:09:38 jeremy Exp $
+ * @version $Id: IdentifierDictionary.java,v 1.9 2013/01/24 22:26:35 jeremy Exp $
  */
 // TODO Add ctor checks on fields: no overlapping ranges, no overflow, w/in 64 bits, no fields crossing the 32-bit boundary, etc.
 public final class IdentifierDictionary implements IIdentifierDictionary
@@ -66,6 +67,14 @@
     {
         return name;
     }
+    
+    /**
+     * Get the list of fields.
+     * @return The list of fields.s
+     */
+    public List<IIdentifierField> getFieldList() {
+        return Arrays.asList(fieldArray);
+    }
 
     /**
      * Get a field by name or <code>null</code> if it doesn't exist in this dictionary.
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1