directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject I'm confused
Date Sat, 20 Nov 2010 22:23:10 GMT
What's the meaning of this method WRT to its comment and its naming 
(value is declared as int):

/**
  * @return The hex value for this flag, in its position.
  * For instance, getting the flag 5 will return 0x0000 0010
  */
public int getHexValue()
{
     return 1 << value;
}

- IMO a hex is an alphanumeric pattern (abcdef0123456789), so how can 
this method return an int representing a hex?
- 'value' represents all set flags, nto a specific one, but no method 
parameter is given to specifiy a specific flag ...

Any ideas ?
Felix

PS
Taken from 
apacheds/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java

Mime
View raw message