net.sf.gridarta.model.index
private static class MapsIndexTest.Listener extends Object implements IndexListener<File>
IndexListener
that records a text representation of all
generated events.Modifier and Type | Field and Description |
---|---|
private StringBuilder |
stringBuilder
The recorded events in text representation.
|
Modifier | Constructor and Description |
---|---|
private |
MapsIndexTest.Listener() |
Modifier and Type | Method and Description |
---|---|
String |
getAndClearEvents()
Returns the accumulated events.
|
void |
indexingFinished()
Called after indexing has finished.
|
void |
nameChanged()
A name mapping has changed.
|
void |
pendingChanged()
At least one pending value has become available.
|
void |
valueAdded(File value)
A new value has been added to the index.
|
void |
valueRemoved(File value)
A value has been removed from the index.
|
@NotNull private final StringBuilder stringBuilder
private MapsIndexTest.Listener()
public void valueAdded(@NotNull File value)
IndexListener
valueAdded
in interface IndexListener<File>
value
- the valuepublic void valueRemoved(@NotNull File value)
IndexListener
valueRemoved
in interface IndexListener<File>
value
- the valuepublic void nameChanged()
IndexListener
nameChanged
in interface IndexListener<File>
public void pendingChanged()
IndexListener
pendingChanged
in interface IndexListener<File>
public void indexingFinished()
IndexListener
indexingFinished
in interface IndexListener<File>
@NotNull public String getAndClearEvents()
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.