org.jboss.deployment
Class SuffixOrderHelper.EnhancedSuffix

java.lang.Object
  extended by org.jboss.deployment.SuffixOrderHelper.EnhancedSuffix
Enclosing class:
SuffixOrderHelper

public static final class SuffixOrderHelper.EnhancedSuffix
extends Object

Inner class that encapsulates an enhanceSuffix consisting of suffix + order


Field Summary
 int order
          The order, by convention a 3 digit number, e.g.
 String suffix
          The suffix, e.g.
 
Constructor Summary
SuffixOrderHelper.EnhancedSuffix(String enhancedSuffix)
          CTOR that parses an enhancedSuffix string of the form: [order:]suffix If the optional 'order' is missing, use DEFAULT_RELATIVE_ORDER
SuffixOrderHelper.EnhancedSuffix(String suffix, int order)
          Simple CTOR
 
Method Summary
 boolean equals(Object other)
          Override equals to allow EnhancedSuffix to be searchable using ArrayList.indexOf()/ArrayList.lastIndexOf() Base equality on both suffix and order
 int hashCode()
          Use both fields
 String toString()
          Pretty print
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

suffix

public String suffix
The suffix, e.g. .sar


order

public int order
The order, by convention a 3 digit number, e.g. 100

Constructor Detail

SuffixOrderHelper.EnhancedSuffix

public SuffixOrderHelper.EnhancedSuffix(String suffix,
                                        int order)
Simple CTOR


SuffixOrderHelper.EnhancedSuffix

public SuffixOrderHelper.EnhancedSuffix(String enhancedSuffix)
                                 throws IllegalArgumentException
CTOR that parses an enhancedSuffix string of the form: [order:]suffix If the optional 'order' is missing, use DEFAULT_RELATIVE_ORDER

Throws:
IllegalArgumentException
Method Detail

equals

public boolean equals(Object other)
Override equals to allow EnhancedSuffix to be searchable using ArrayList.indexOf()/ArrayList.lastIndexOf() Base equality on both suffix and order

Overrides:
equals in class Object

hashCode

public int hashCode()
Use both fields

Overrides:
hashCode in class Object

toString

public String toString()
Pretty print

Overrides:
toString in class Object


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.