add toString, equals, and hashCode to BitmapSerdeFactory

This commit is contained in:
Xavier Léauté 2015-04-13 23:21:48 -07:00
parent d20128b89b
commit bafc5114b4
2 changed files with 36 additions and 0 deletions

View File

@ -97,4 +97,22 @@ public class ConciseBitmapSerdeFactory implements BitmapSerdeFactory
return conciseComparator.compare((WrappedImmutableConciseBitmap) o1, (WrappedImmutableConciseBitmap) o2);
}
}
@Override
public String toString()
{
return "ConciseBitmapSerdeFactory{}";
}
@Override
public boolean equals(Object o)
{
return this == o || o instanceof ConciseBitmapSerdeFactory;
}
@Override
public int hashCode()
{
return 0;
}
}

View File

@ -98,4 +98,22 @@ public class RoaringBitmapSerdeFactory implements BitmapSerdeFactory
return roaringComparator.compare((WrappedImmutableRoaringBitmap) o1, (WrappedImmutableRoaringBitmap) o2);
}
}
@Override
public String toString()
{
return "RoaringBitmapSerdeFactory{}";
}
@Override
public boolean equals(Object o)
{
return this == o || o instanceof RoaringBitmapSerdeFactory;
}
@Override
public int hashCode()
{
return 0;
}
}