kodkod.engine.config
Enum Options.IntEncoding

java.lang.Object
  extended by java.lang.Enum<Options.IntEncoding>
      extended by kodkod.engine.config.Options.IntEncoding
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Options.IntEncoding>
Enclosing class:
Options

public static enum Options.IntEncoding
extends java.lang.Enum<Options.IntEncoding>

Integer encoding options for the translation of int expressions.


Enum Constant Summary
BINARY
          Two's-complement encoding of integers supports comparisons, addition, subtraction, multiplication, and division.
UNARY
          Unary encoding of integers supports comparisons and addition of non-negative numbers.
 
Method Summary
static Options.IntEncoding valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Options.IntEncoding[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNARY

public static final Options.IntEncoding UNARY
Unary encoding of integers supports comparisons and addition of non-negative numbers.


BINARY

public static final Options.IntEncoding BINARY
Two's-complement encoding of integers supports comparisons, addition, subtraction, multiplication, and division.

Method Detail

values

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

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

valueOf

public static Options.IntEncoding 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