Loading pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ <groupId>messif</groupId> <artifactId>messif</artifactId> <version>2.3.6-DEVEL</version> <version>2.3.7-DEVEL</version> <packaging>jar</packaging> <url>http://disa.fi.muni.cz/trac/messif/</url> Loading src/main/java/messif/objects/impl/MetaObjectFixedMap.java +8 −4 Original line number Diff line number Diff line Loading @@ -169,9 +169,9 @@ public class MetaObjectFixedMap extends MetaObject { * @throws IOException when an error appears during reading from given stream, * EOFException is returned if end of the given stream is reached. */ public MetaObjectFixedMap(BufferedReader stream, Set<String> restrictNames) throws IOException { public MetaObjectFixedMap(BufferedReader stream, Set<String> restrictNames, DistanceFunction<MetaObject> distance) throws IOException { this.objects = new ArrayMap(readObjects(stream, restrictNames, readObjectsHeader(stream), new HashMap<String, LocalAbstractObject>())); this.distance = null; this.distance = distance; } /** Loading @@ -183,7 +183,7 @@ public class MetaObjectFixedMap extends MetaObject { * EOFException is returned if end of the given stream is reached. */ public MetaObjectFixedMap(BufferedReader stream, String[] restrictNames) throws IOException { this(stream, (restrictNames == null)?null:new HashSet<>(Arrays.asList(restrictNames))); this(stream, (restrictNames == null)?null:new HashSet<>(Arrays.asList(restrictNames)), null); } /** Loading @@ -193,7 +193,11 @@ public class MetaObjectFixedMap extends MetaObject { * EOFException is returned if end of the given stream is reached. */ public MetaObjectFixedMap(BufferedReader stream) throws IOException { this(stream, (Set<String>)null); this(stream, (Set<String>)null, null); } public MetaObjectFixedMap(BufferedReader stream, DistanceFunction<MetaObject> distance) throws IOException { this(stream, (Set<String>)null, distance); } // ******************** Getters & setters ************************** // Loading Loading
pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ <groupId>messif</groupId> <artifactId>messif</artifactId> <version>2.3.6-DEVEL</version> <version>2.3.7-DEVEL</version> <packaging>jar</packaging> <url>http://disa.fi.muni.cz/trac/messif/</url> Loading
src/main/java/messif/objects/impl/MetaObjectFixedMap.java +8 −4 Original line number Diff line number Diff line Loading @@ -169,9 +169,9 @@ public class MetaObjectFixedMap extends MetaObject { * @throws IOException when an error appears during reading from given stream, * EOFException is returned if end of the given stream is reached. */ public MetaObjectFixedMap(BufferedReader stream, Set<String> restrictNames) throws IOException { public MetaObjectFixedMap(BufferedReader stream, Set<String> restrictNames, DistanceFunction<MetaObject> distance) throws IOException { this.objects = new ArrayMap(readObjects(stream, restrictNames, readObjectsHeader(stream), new HashMap<String, LocalAbstractObject>())); this.distance = null; this.distance = distance; } /** Loading @@ -183,7 +183,7 @@ public class MetaObjectFixedMap extends MetaObject { * EOFException is returned if end of the given stream is reached. */ public MetaObjectFixedMap(BufferedReader stream, String[] restrictNames) throws IOException { this(stream, (restrictNames == null)?null:new HashSet<>(Arrays.asList(restrictNames))); this(stream, (restrictNames == null)?null:new HashSet<>(Arrays.asList(restrictNames)), null); } /** Loading @@ -193,7 +193,11 @@ public class MetaObjectFixedMap extends MetaObject { * EOFException is returned if end of the given stream is reached. */ public MetaObjectFixedMap(BufferedReader stream) throws IOException { this(stream, (Set<String>)null); this(stream, (Set<String>)null, null); } public MetaObjectFixedMap(BufferedReader stream, DistanceFunction<MetaObject> distance) throws IOException { this(stream, (Set<String>)null, distance); } // ******************** Getters & setters ************************** // Loading