package com.aaaaahhhhhhh.bananapuncher714.mesh; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Chain { protected List< Point > points = new ArrayList< Point >(); protected List< Chain > intersections = new ArrayList< Chain >(); public Point getStart() { return points.get( 0 ); } public Point getEnd() { return points.get( points.size() - 1 ); } public List< Point > getPoints() { return Collections.unmodifiableList( points ); } public List< Chain > getIntersections() { return Collections.unmodifiableList( intersections ); } }