Line3 extends Line3Base implements ReadOnlyLine3, Poolable { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof ReadOnlyLine3)) { return false; } final ReadOnlyLine3 comp = (ReadOnlyLine3) o; return _origin.equals(comp.getOrigin()) && _direction.equals(comp.getDirection()); } Line3();  Line3(final ReadOnlyVector3 origin, final ReadOnlyVector3 direction);  Line3(final ReadOnlyLine3 source); Line3 set(final ReadOnlyLine3 source); @Override double distanceSquared(final ReadOnlyVector3 point, final Vector3 store); static boolean isValid(final ReadOnlyLine3 line); @Override String toString(); @Override boolean equals(final Object o); @Override Line3 clone(); final static Line3 fetchTempInstance(); final static void releaseTempInstance(final Line3 line);  }
@Test public void testEquals() { final Line3 line1 = new Line3(); assertEquals(line1, line1); assertFalse(line1.equals(null)); final Line3 line2 = Line3.fetchTempInstance(); line2.set(line1); assertEquals(line1, line2); assertNotSame(line1, line2); Line3.releaseTempInstance(line2); assertFalse(line1.equals(new Line3(Vector3.ZERO, Vector3.UNIT_X))); }