-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
part of hive; | ||
|
||
abstract class HiveCollection<E extends HiveObject> implements List<E> { | ||
/// The box which contains all the objects in this collection | ||
BoxBase get box; | ||
|
||
/// The keys of all the objects in this collection. | ||
Iterable<dynamic> get keys; | ||
|
||
/// Delete all objects in this collection from Hive. | ||
Future<void> deleteAllFromHive(); | ||
|
||
/// Delete the first object in this collection from Hive. | ||
Future<void> deleteFirstFromHive(); | ||
|
||
/// Delete the last object in this collection from Hive. | ||
Future<void> deleteLastFromHive(); | ||
|
||
/// Delete the object at [index] from Hive. | ||
Future<void> deleteFromHive(int index); | ||
|
||
/// Converts this collection to a Map. | ||
Map<dynamic, E> toMap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters