com.jrockit.memleak
Enum ITruncatable.Reason

java.lang.Object
  extended by java.lang.Enum<ITruncatable.Reason>
      extended by com.jrockit.memleak.ITruncatable.Reason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ITruncatable.Reason>
Enclosing interface:
ITruncatable<T>

public static enum ITruncatable.Reason
extends java.lang.Enum<ITruncatable.Reason>

Standard reasons for truncation.

Author:
mpersson

Enum Constant Summary
CANCELED
          The operation was canceled.
COMPLEXITY_LIMIT
          The operation couldn't be completed within the allowed complexity.
ELEMENT_LIMIT
          The maximum specified number of elements was exceeded.
EMPTY_REPLY
          A temporary reason until the implementation and interface has been stabilized.
EXCEPTION
          An exception occurred.
TIMEOUT
          The operation couldn't be completed in the allowed time.
UNSUPPORTED
          The operation isn't supported.
 
Field Summary
static int ENUM_LENGTH
          The number of enum values.
 
Method Summary
 ITruncatable.Reason lowest(ITruncatable.Reason other)
           
static ITruncatable.Reason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ITruncatable.Reason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TIMEOUT

public static final ITruncatable.Reason TIMEOUT
The operation couldn't be completed in the allowed time.


COMPLEXITY_LIMIT

public static final ITruncatable.Reason COMPLEXITY_LIMIT
The operation couldn't be completed within the allowed complexity.


ELEMENT_LIMIT

public static final ITruncatable.Reason ELEMENT_LIMIT
The maximum specified number of elements was exceeded.


UNSUPPORTED

public static final ITruncatable.Reason UNSUPPORTED
The operation isn't supported. Note that this might also be indicated by using a UnsupportedOperationException instead. Currently, no way is preferred over the other, but this may change.


EMPTY_REPLY

public static final ITruncatable.Reason EMPTY_REPLY
A temporary reason until the implementation and interface has been stabilized.


EXCEPTION

public static final ITruncatable.Reason EXCEPTION
An exception occurred.


CANCELED

public static final ITruncatable.Reason CANCELED
The operation was canceled.

Field Detail

ENUM_LENGTH

public static int ENUM_LENGTH
The number of enum values. That is, values().length.

Method Detail

values

public static ITruncatable.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ITruncatable.Reason c : ITruncatable.Reason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ITruncatable.Reason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

lowest

public ITruncatable.Reason lowest(ITruncatable.Reason other)
Parameters:
other - another ITruncatable.Reason or null
Returns:
the lowest, non-null ITruncatable.Reason of this and other


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.