public class BeaconRegionDecorator extends RegionDecorator
Modifier and Type | Field and Description |
---|---|
BeaconRegion |
region
Which region this data structure is describing.
|
Constructor and Description |
---|
BeaconRegionDecorator(BeaconRegion region) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getRegionIdentifier()
Returns unique identifier of werapped
Region objects; |
java.util.List<Beacon> |
getSortedBeacons()
Returns sorted list of current beacons
|
int |
hashCode() |
boolean |
isBeaconInThisRegion(Beacon beacon)
Tells if given beacon is in this region.
|
void |
processFoundPackets(java.util.Collection<Beacon> beaconsFoundInScanCycle)
Processes beacons found in single scan cycle.
|
didJustExit, isInside, markAsSeen
public final BeaconRegion region
public BeaconRegionDecorator(BeaconRegion region)
public final void processFoundPackets(java.util.Collection<Beacon> beaconsFoundInScanCycle)
beaconsFoundInScanCycle
- Map of beacons along with their last seen time.public final boolean isBeaconInThisRegion(Beacon beacon)
beacon
- beacon to checkpublic final java.util.List<Beacon> getSortedBeacons()
public java.lang.String getRegionIdentifier()
RegionDecorator
Region
objects;getRegionIdentifier
in class RegionDecorator
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object