|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.consultoriajava.browneater.Brown
public class Brown
Basic class of the package it is mainly used to create, dispatch, eat, resolve and in last term represent the killing of brown's all across the IT world.
The brown starts with the creation of a brown
and should end when a BrownEater eats the given Brown.
The next diagram summarizes the life cycle of a brown.

| Field Summary | |
|---|---|
static int |
BIG_BROWN
A brown of enought size to be considered nor standard neither a Mega Brown, for example when a PM decides to use a lot of Java API's only because he fells it must be a great idea no matter the project. |
static int |
MEGA_BROWN
An special brown, i.e. when someone cuts down the budget of a proyect to 50% of the expected cost. |
static int |
MINI_BROWN
A small brown, for example when someone codes a class with 40 methods and 30 attributes. |
static int |
NON_LUBRICATED_BROWN
A non expected brown that takes you undercover too far away from your bottle of vaseline. |
static int |
STANDARD_BROWN
A standard brown, the kind of brown you expect to receive when you are supposed to leave the office. |
static int |
WORLD_DESTROYER_BROWN
A Brown rated like the one related with the Extinction of the Dinosaurs. |
| Constructor Summary | |
|---|---|
Brown(java.lang.String name,
int size)
Build a non-solved brown from a given name and size. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
int |
getSize()
|
void |
hibernate()
Deprecated. The use of this method is not recomended as the Brown usually comes back stronger and healthier when re-activated. |
boolean |
isHibernated()
|
boolean |
isSolved()
|
void |
reBrown()
Remember when you said "That problem wont happen again, don't document it"? |
void |
setName(java.lang.String name)
|
void |
setSize(int size)
|
void |
solve()
Solving a Brown transforms the evil properties of the Brown, making it harmless. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MINI_BROWN
public static final int STANDARD_BROWN
public static final int BIG_BROWN
public static final int MEGA_BROWN
public static final int WORLD_DESTROYER_BROWN
public static final int NON_LUBRICATED_BROWN
| Constructor Detail |
|---|
public Brown(java.lang.String name,
int size)
name - Name of the Brown to be createdsize - Size of the Brown to be created| Method Detail |
|---|
public void solve()
public boolean isSolved()
public void hibernate()
public void reBrown()
public boolean isHibernated()
public java.lang.String getName()
public void setName(java.lang.String name)
public int getSize()
public void setSize(int size)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||