public void isBuyAfterOtherAction(Consts.ActionType type) {
		int counter = 0;
		int buyCounter = 0;
		for (int i = 0; i < brands.size(); i++) {
			BrandExtend brand = brands.get(i);
			Collections.sort(brand.getBehaviors(), comparatorAsc);
			int j = 0;
			while (j < brand.getBehaviors().size()) {
				long uid = 0;
				for (; j < brand.getBehaviors().size(); j++) {
					if (brand.getBehaviors().get(j).getType() == type) {
						uid = brand.getBehaviors().get(j).getUid();
						counter++;
						break;
					}
				}
				
				if (uid != 0) {
					for (; j < brand.getBehaviors().size(); j++) {
						if (brand.getBehaviors().get(j).getType() == Consts.ActionType.BUY &&
								brand.getBehaviors().get(j).getUid() == uid) {
							System.out.println(brand.getId() + " be bought after " + type);
							buyCounter++;
							break;
						}
					}
				}
			}
		}
		System.out.println(buyCounter + " / " + counter);
	}