YANG string restriction listener + YANG Range restriction listener review comment fix

Change-Id: I9e7af9c67f8fbf918d4e0d8ff147a560889ff264
diff --git a/utils/yangutils/src/main/java/org/onosproject/yangutils/datamodel/YangRangeInterval.java b/utils/yangutils/src/main/java/org/onosproject/yangutils/datamodel/YangRangeInterval.java
index 442cda0..9ccd5ff 100644
--- a/utils/yangutils/src/main/java/org/onosproject/yangutils/datamodel/YangRangeInterval.java
+++ b/utils/yangutils/src/main/java/org/onosproject/yangutils/datamodel/YangRangeInterval.java
@@ -13,12 +13,14 @@
 limitations under the License.*/
 package org.onosproject.yangutils.datamodel;
 
+import org.onosproject.yangutils.utils.builtindatatype.YangBuiltInDataTypeInfo;
+
 /**
  * Represents single interval information of a range.
  *
- * @param <T> range type based on the data type.
+ * @param <T> range type based on the data type
  */
-public class YangRangeInterval<T extends Comparable<T>> {
+public class YangRangeInterval<T extends YangBuiltInDataTypeInfo<T>> {
 
     /**
      * Starting value of the range interval.
@@ -39,7 +41,7 @@
     /**
      * Returns the starting value of the range interval.
      *
-     * @return the starting value of the range interval.
+     * @return the starting value of the range interval
      */
     public T getStartValue() {
         return startValue;
@@ -48,7 +50,7 @@
     /**
      * Sets the starting value of the range interval.
      *
-     * @param startValue the starting value of the range interval.
+     * @param startValue the starting value of the range interval
      */
     public void setStartValue(T startValue) {
         this.startValue = startValue;
@@ -57,7 +59,7 @@
     /**
      * Returns the last value of the range interval.
      *
-     * @return last value of the range interval.
+     * @return last value of the range interval
      */
     public T getEndValue() {
         return endValue;
@@ -66,7 +68,7 @@
     /**
      * Sets the last value of the range interval.
      *
-     * @param endValue last value of the range interval.
+     * @param endValue last value of the range interval
      */
     public void setEndValue(T endValue) {
         this.endValue = endValue;