public List<Skeleton> createSkeletons() { final List<Skeleton> result = new ArrayList<Skeleton>(); for (PinLinksContinuousSet set : sets) { result.add(set.createSkeleton()); } return Collections.unmodifiableList(result); }
private void addInternal(PinLink pinLink) { for (PinLinksContinuousSet set : sets) { if (set.doesTouch(pinLink)) { set.add(pinLink); return; } } final PinLinksContinuousSet newSet = new PinLinksContinuousSet(); newSet.add(pinLink); sets.add(newSet); }