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, markAsSeenpublic 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()
RegionDecoratorRegion objects;getRegionIdentifier in class RegionDecoratorpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object