Pentomino.Piece (Hadoop 1.2.1 API)
Date: 2013-07-22

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.examples.dancing
Class Pentomino.Piece

    java.lang.Object
      org.apache.hadoop.examples.dancing.Pentomino.Piece

All Implemented Interfaces:
  Pentomino.ColumnName

Enclosing class:
  Pentomino

    protected static class Pentomino.Piece

extends Object
implements Pentomino.ColumnName

Maintain information about a puzzle piece.

Constructor Summary
`Pentomino.Piece(String name, String shape, boolean flippable, int[] rotations)`

Method Summary
`boolean` | `getFlippable()`
`String` | `getName()`
`int[]` | `getRotations()`
`boolean[][]` | `getShape(boolean flip, int rotate)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Pentomino.Piece

    public Pentomino.Piece(String name,
                           String shape,
                           boolean flippable,
                           int[] rotations)

Method Detail

### getName

    public String getName()

### getRotations

    public int[] getRotations()

### getFlippable

    public boolean getFlippable()

### getShape

    public boolean[][] getShape(boolean flip,
                                int rotate)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation