13 Commits

Author SHA1 Message Date
Gabriel Tofvesson
b89ed6bf77 Minor update
- Started creating a new revision of the ShiftingList
  - Populated entries are shifted to the end of the array
  - Shifting is done in blocks
  - Referring to indexes is more secure now
- Added final collection helper class
- Started adding ShiftingMap based on ShiftingList
- Made SafeReflection helper class final
2016-12-22 17:38:19 +01:00
a4d412c5ca Minor Update
- Added getCallerClass() to SafeReflection to get caller class
2016-12-15 16:42:24 +04:00
5909e2ca0a Major Update
- Fixed Iterator and added remove()
- Added support for dispatching batch Async operations
- Rewrote lots of code to support lower language levels (java 5+)
2016-12-15 14:40:26 +04:00
5796fc3c87 Major update
- Fix major bug causing storing elements at a given index to crash
2016-12-06 11:14:48 +04:00
4233b856ba Minor update
- Added method to allow users to get Async object from thread
2016-11-24 17:31:31 +04:00
Gabriel Tofvesson
fec11f3a47 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/com/tofvesson/reflection/SafeReflection.java
2016-11-13 15:19:53 +01:00
Gabriel Tofvesson
32c8712607 Major fix
- Fixed fatal but with foreach on ShiftingList
2016-11-13 15:17:06 +01:00
1321d49f8c Major update
- Fixed prominent bugs in ShiftingList
  - Fixed shifting of data in the internal array
  - Fixed retainAll()
  - Fixed add(int, collection)
  - Fixed much more
- Changed name of enqueue() method in WorkerThread to push()
- Moved Enum reflection code to SafeReflection class
- Moved class instantiation (bypass construction) code to SafeReflection and optimized code
- Moved EnumDefinition class into SafeReflection as a static class
2016-11-12 01:28:54 +04:00
Gabriel Tofvesson
3a1b73061e Minor improvements 2016-11-01 21:32:36 +01:00
Gabriel Tofvesson
d7660799be Removed ShiftingMap (project for another day)
Removed Shifting Set
Removed Shifting Entry
Added Shifting List inheriting most of it's functionality from the Shifting Set
Optimized load balancing algorithm to ensure that array isn't unnecessarily resized
Optimized load balancing algorithm by simplifying load calculation
Added new List Iterator in addition to regular Iterator
2016-10-31 22:12:39 +01:00
4b0a7d6627 ShiftingList -> ShiftingMap
ShiftingMap: Fixed bug causing maps added to Map to become misaligned.
2016-10-26 13:21:17 +04:00
Gabriel Tofvesson
294b29d839 - Added ShiftingList
Features:
 - Fixed size
 - Load prediction and memory allocation optimization
   - Uses previous input to estimate future load
   - Allocates memory according to previous input and a user-changeable constant
 - Custom data handling with optimization for this specific case
2016-10-24 21:54:38 +02:00
Gabriel Tofvesson
33e4010db0 Removed bad files 2016-10-23 22:20:05 +02:00