src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/AdbaSessionProperty.java
branchJDK-8188051-branch
changeset 56997 c9cbac2979fb
parent 56824 62e92191354d
equal deleted inserted replaced
56832:4f7713e6a308 56997:c9cbac2979fb
   137     this.validator = validator;
   137     this.validator = validator;
   138     this.defaultValue = value;
   138     this.defaultValue = value;
   139     this.isSensitive = isSensitive;
   139     this.isSensitive = isSensitive;
   140   }
   140   }
   141 
   141 
       
   142   /**
       
   143    * {@inheritDoc}
       
   144    */
   142   @Override
   145   @Override
   143   public Class<?> range() {
   146   public Class<?> range() {
   144     return range;
   147     return range;
   145   }
   148   }
   146 
   149 
       
   150   /**
       
   151    * {@inheritDoc}
       
   152    */
   147   @Override
   153   @Override
   148   public boolean validate(Object value) {
   154   public boolean validate(Object value) {
   149     return validator.apply(value);
   155     return validator.apply(value);
   150   }
   156   }
   151 
   157 
       
   158   /**
       
   159    * {@inheritDoc}
       
   160    */
   152   @Override
   161   @Override
   153   public Object defaultValue() {
   162   public Object defaultValue() {
   154     return defaultValue;
   163     return defaultValue;
   155   }
   164   }
   156 
   165 
       
   166   /**
       
   167    * {@inheritDoc}
       
   168    */
   157   @Override
   169   @Override
   158   public boolean isSensitive() {
   170   public boolean isSensitive() {
   159     return isSensitive;
   171     return isSensitive;
   160   }
   172   }
   161 
   173