CubeTwister 2.0alpha141 2011-10-13

ch.randelshofer.rubik
Class CubeKind

java.lang.Object
  extended by ch.randelshofer.rubik.CubeKind

public class CubeKind
extends java.lang.Object

Typesafe Enumeration of cube kinds used by CubeModel.

Version:
2.0 2008-12-20 Moved from ch.randelshofer.cubetwister into ch.randelshofer.rubik package. Added method isNameOfKind.
1.1 2008-01-03 Added method getLayerCount.
1.0 January 9, 2006 Created.
Author:
Werner Randelshofer

Field Summary
static CubeKind BARREL
           
static CubeKind CUBE_6
           
static CubeKind CUBE_7
           
static CubeKind CUBOCTAHEDRON
           
static CubeKind DIAMOND
           
static CubeKind POCKET
          CubeKinds
static CubeKind PROFESSOR
           
static CubeKind REVENGE
           
static CubeKind RUBIK
           
static CubeKind VCUBE_6
           
static CubeKind VCUBE_7
           
 
Method Summary
static java.util.List allKinds()
           
 java.lang.String getAlternativeName(int index)
           
 java.lang.String getId()
           
static java.util.Map getKindMap()
           
 int getLayerCount()
           
 boolean isNameOfKind(java.lang.String name)
          Returns true if the provided name matches with the name or one of the alternative names of this kind.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POCKET

public static final CubeKind POCKET
CubeKinds


RUBIK

public static final CubeKind RUBIK

REVENGE

public static final CubeKind REVENGE

PROFESSOR

public static final CubeKind PROFESSOR

VCUBE_6

public static final CubeKind VCUBE_6

VCUBE_7

public static final CubeKind VCUBE_7

BARREL

public static final CubeKind BARREL

DIAMOND

public static final CubeKind DIAMOND

CUBOCTAHEDRON

public static final CubeKind CUBOCTAHEDRON

CUBE_6

public static final CubeKind CUBE_6

CUBE_7

public static final CubeKind CUBE_7
Method Detail

getAlternativeName

public java.lang.String getAlternativeName(int index)

isNameOfKind

public boolean isNameOfKind(java.lang.String name)
Returns true if the provided name matches with the name or one of the alternative names of this kind.

Parameters:
name - A name.
Returns:
True on match.

allKinds

public static java.util.List allKinds()

getKindMap

public static java.util.Map getKindMap()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getId

public java.lang.String getId()

getLayerCount

public int getLayerCount()

(c) Werner Randelshofer.
All rights reserved.