@Override public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    Sublayer sublayer = (Sublayer) o;

    return depth == sublayer.depth && !(drawable != null ? !drawable.equals(sublayer.drawable)
        : sublayer.drawable != null);
  }
Representation of a drawable inside a single item.
It holds a depth value to make layer overriding possible.
dividers/src/main/java/com/karumi/dividers/Sublayer.java