mirror of https://github.com/apache/lucene.git
LUCENE-7936: Missed a constructor for deserialization support.
This commit is contained in:
parent
c01d692bac
commit
8fc61e5628
|
@ -16,6 +16,9 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.lucene.spatial3d.geom;
|
package org.apache.lucene.spatial3d.geom;
|
||||||
|
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GeoCompositeMembershipShape is a set of GeoMembershipShape's, treated as a unit.
|
* GeoCompositeMembershipShape is a set of GeoMembershipShape's, treated as a unit.
|
||||||
*
|
*
|
||||||
|
@ -30,6 +33,15 @@ public class GeoCompositeMembershipShape extends GeoBaseCompositeMembershipShape
|
||||||
super(planetModel);
|
super(planetModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for deserialization.
|
||||||
|
* @param planetModel is the planet model.
|
||||||
|
* @param inputStream is the input stream.
|
||||||
|
*/
|
||||||
|
public GeoCompositeMembershipShape(final PlanetModel planetModel, final InputStream inputStream) throws IOException {
|
||||||
|
super(planetModel, inputStream, GeoMembershipShape.class);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (!(o instanceof GeoCompositeMembershipShape))
|
if (!(o instanceof GeoCompositeMembershipShape))
|
||||||
|
|
Loading…
Reference in New Issue