public boolean isPartOf(final Outfit other){
  boolean partOf;
  partOf=((detail == null) || detail.equals(other.detail)) && ((hair == null) || hair.equals(other.hair)) && ((head == null) || head.equals(other.head))&& ((dress == null) || dress.equals(other.dress))&& ((body == null) || body.equals(other.body));
  return partOf;
}

public boolean isPartOf ( final Outfit other ) { boolean partOf ; partOf = ( ( detail == null ) || detail . equals ( other . detail ) ) && ( ( hair == null ) || hair . equals ( other . hair ) ) && ( ( head == null ) || head . equals ( other . head ) ) && ( ( dress == null ) || dress . equals ( other . dress ) ) && ( ( body == null ) || body . equals ( other . body ) ) ; return partOf ; }
checks whether this outfit is equal to or part of another outfit .
