fork download
  1. class LdapConfig {
  2.  
  3. public static final String DEFAULT_URL = 'ldap://localhost:389'
  4.  
  5. String url = DEFAULT_URL
  6.  
  7. public boolean isDefault() {
  8. if (url == DEFAULT_URL) {
  9. return true
  10. } else {
  11. return false
  12. }
  13. }
  14. }
  15.  
  16. println new LdapConfig().default
Success #stdin #stdout 1.09s 216832KB
stdin
Standard input is empty
stdout
true