Make List type safe. Remove/suppress all warnings.
[marc4j.git] / src / org / marc4j / marc / Record.java
index 62b5aca..a4453fb 100644 (file)
@@ -90,21 +90,21 @@ public interface Record extends Serializable {
      * \r
      * @return List - the variable fields\r
      */\r
-    public List getVariableFields();\r
+    public List<VariableField> getVariableFields();\r
 \r
     /**\r
      * Returns a list of control fields\r
      * \r
      * @return List - the control fields\r
      */\r
-    public List getControlFields();\r
+    public List<ControlField> getControlFields();\r
 \r
     /**\r
      * Returns a list of data fields\r
      * \r
      * @return List - the data fields\r
      */\r
-    public List getDataFields();\r
+    public List<DataField> getDataFields();\r
 \r
     /**\r
      * Returns the control number field or <code>null</code> if no control\r
@@ -137,7 +137,7 @@ public interface Record extends Serializable {
      * \r
      * @return List - the variable fields\r
      */\r
-    public List getVariableFields(String tag);\r
+    public List<VariableField> getVariableFields(String tag);\r
 \r
     /**\r
      * Returns a list of variable fields for the given tags.\r
@@ -153,7 +153,7 @@ public interface Record extends Serializable {
      * \r
      * @return List - the variable fields\r
      */\r
-    public List getVariableFields(String[] tag);\r
+    public List<VariableField> getVariableFields(String[] tag);\r
 \r
     /**\r
      * Returns the <code>Leader</code>.\r
@@ -183,7 +183,7 @@ public interface Record extends Serializable {
      *            the regular expression\r
      * @return List - the result list\r
      */\r
-    public List find(String pattern);\r
+    public List<VariableField> find(String pattern);\r
 \r
     /**\r
      * Returns a List of VariableField objects with the given tag that have a\r
@@ -200,7 +200,7 @@ public interface Record extends Serializable {
      *            the regular expression\r
      * @return List - the result list\r
      */\r
-    public List find(String tag, String pattern);\r
+    public List<VariableField> find(String tag, String pattern);\r
 \r
     /**\r
      * Returns a List of VariableField objects with the given tags that have a\r
@@ -217,6 +217,6 @@ public interface Record extends Serializable {
      *            the regular expression\r
      * @return List - the result list\r
      */\r
-    public List find(String[] tag, String pattern);\r
+    public List<VariableField> find(String[] tag, String pattern);\r
 \r
 }
\ No newline at end of file