hash code and stump of map

This commit is contained in:
gnembon committed 2019-10-01 14:50:16 -03:00
1 parent b6fe264a76
commit 8b7b285503
12 files changed
+125 -5

No files matched your search

@@ -44,6 +44,12 @@ public abstract class LazyListValue extends AbstractListValue implements Iterato
{
return stepp > 0?(current < limit):(current > limit);
}
@Override
public String getString()
{
return String.format("[%d, %d, ..., %d]",start, start+stepp, limit);
}
};
}
@@ -145,4 +151,10 @@ public abstract class LazyListValue extends AbstractListValue implements Iterato
((LazyListValue)copy).reset();
return copy;
}
@Override
public int hashCode()
{
return ("i"+getString()).hashCode();
}
}