readded constructor

This commit is contained in:
StevenRS11 2013-09-30 00:59:59 -04:00
parent 76e564486d
commit e859d2c12e

View file

@ -15,12 +15,13 @@ public abstract class DimLink
protected DimLink(Point4D source, DimLink parent, int orientation)
{
if (parent.source.getDimension() != source.getDimension())
{
// Ban having children in other dimensions to avoid serialization issues with cross-dimensional tails
throw new IllegalArgumentException("source and parent.source must have the same dimension.");
}
this.orientation=orientation;
this.parent = parent;
this.source = source;
this.tail = parent.tail;