com.starteam
Class File.Compression

java.lang.Object
  extended by com.starteam.EnumeratedValue
      extended by com.starteam.File.Compression
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
File

public static final class File.Compression
extends EnumeratedValue

File compression level.

See Also:
Serialized Form

Field Summary
static File.Compression[] ALL
          All supported compression values.
static File.Compression DEFAULT
          Default compression algorithm is a compromise between speed and size.
static File.Compression FAST
          Compression algorithm that maximizes speed.
static File.Compression NONE
          No compression.
static File.Compression SMALL
          Compression algorithm that minimizes size of the compressed file.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Compression instance with the object O
static File.Compression fromID(int id)
          Gets the Compression value corresponding to the given ID.
static File.Compression fromValue(EnumeratedValue value)
          Gets the Compression value corresponding to the given EnumeratedValue.
 int getCode()
          Return the enum code for this object.
 int getID()
          The ID of the corresponding EnumeratedValue, as defined in CompressionProperty.
 int hashCode()
          Returns a hashCode for this object
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayName, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, isClosedState, isDisabled, isEnabled, isEqualTo, isLeafValue, isRootValue, isSelectable, setAfter, setChildValues, setClosedState, setDisplayName, setDisplayNameTranslations, setEnabled, setInternalName, setSelectable, setSortOrder, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final File.Compression NONE
No compression.


FAST

public static final File.Compression FAST
Compression algorithm that maximizes speed.


DEFAULT

public static final File.Compression DEFAULT
Default compression algorithm is a compromise between speed and size.


SMALL

public static final File.Compression SMALL
Compression algorithm that minimizes size of the compressed file.


ALL

public static final File.Compression[] ALL
All supported compression values.

Method Detail

getID

public int getID()
The ID of the corresponding EnumeratedValue, as defined in CompressionProperty.

Returns:
The ID of this Compression value.
See Also:
File.Type.CompressionProperty

getCode

public int getCode()
Return the enum code for this object.

Overrides:
getCode in class EnumeratedValue
Returns:
the enum code for this object.

fromValue

public static File.Compression fromValue(EnumeratedValue value)
Gets the Compression value corresponding to the given EnumeratedValue.

Parameters:
value - One of the EnumeratedValues of a CompressionProperty.
Returns:
The corresponding Compression value, or null.

fromID

public static File.Compression fromID(int id)
Gets the Compression value corresponding to the given ID.

Parameters:
id - The ID of a Compression value.
Returns:
The corresponding Compression value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this Compression instance with the object O

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare for equality
Returns:
true if this Compression instance is the same as Object o

hashCode

public int hashCode()
Returns a hashCode for this object

Overrides:
hashCode in class EnumeratedValue
Returns:
a hashCode for this object instance


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.