Interface constant declaration example in Java's SDK -


is there example of interface in java's built-in library (jdk) contains constant field?

from documentation, constant declaration can defined in interfaces, can't remember seeing such.

public interface operatecar {     // constant declarations, if    ... } 

for example

package java.text;  public interface characteriterator extends cloneable {     /**      * constant returned when iterator has reached either end      * or beginning of text. value '\\uffff', "not      * character" value should not occur in valid unicode string.      */     public static final char done = '\uffff'; 

but generally, hard find constants in jdk interfaces, since not fit language convention.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -