
com.carrotsearch.hppcrt.sets.FloatSet Maven / Gradle / Ivy
package com.carrotsearch.hppcrt.sets;
import java.util.Set;
import com.carrotsearch.hppcrt.FloatCollection;
/**
* A set of float
s.
*/
//
@javax.annotation.Generated(date = "2014-08-19T19:56:38+0200", value = "HPPC-RT generated from: FloatSet.java")
public interface FloatSet extends FloatCollection
{
/**
* Adds k
to the set.
*
* @return Returns true
if this element was not part of the set before. Returns
* false
if an equal element is already part of the set, and leaves the set unchanged. .
*/
public boolean add(float k);
/**
* Compares the specified object with this set for equality. Returns
* true if and only if the specified object is also a
* {@link ObjectSet} and both objects contains exactly the same objects.
*/
@Override
public boolean equals(Object obj);
/**
* @return A hash code of elements stored in the set. The hash code
* is defined identically to {@link Set#hashCode()} (sum of hash codes of elements
* within the set). Because sum is commutative, this ensures that different order
* of elements in a set does not affect the hash code.
*/
@Override
public int hashCode();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy