sortedlist


How to use SortedList in Java


I have this kind of list in C#
public SortedList<int, SortedList<int, Match>> TournamentRoundMatches { get; private set; }
How can I write it in Java ?
I try using SortedSet but it doesnt work...
SortedSet<Integer, SortedSet<Integer, Match>> TournamentRoundMatches = new SortedSet<Integer, SortedSet<Integer, Match>>(){}
Thank you
The name SortedList is actually misleading as it is not a sorted list, but actually a sorted dictionary (sorted by its keys). The best comparable Java equivalent for a SortedList is a TreeMap:
TreeMap<Integer, TreeMap<Integer, Match>> TournamentRoundMatches = new TreeMap<Integer, TreeMap<Integer, Match>>(){}

Related Links

How to use SortedList in Java

Categories

HOME
client
testng
image-processing
activiti
c#-4.0
react-router
gps
enterprise-library-5
wamp
convolution
azure-media-services
constraint-programming
cloudkit
session-variables
facebook-php-sdk
communication
here-api
nano-server
dax
quickbooks
qt-creator
postgres-xl
usergrid
fortumo
jsprit
ab-testing
ehcache
bootstrap-tour
captiveportal
firebase-crash-reporting
shopware
brunch
traffic
rst2pdf
opentype
saas
skia
karaf
catel
mmenu
hot-module-replacement
multilingual
azure-ml
ncalc
midl
gpx
angular-resource
long-polling
parentheses
atomicity
zip4j
dotnetzip
tizen-native-app
np-complete
redundancy
mediaelement
quartz-composer
eventkit
xcb
spring-android
whois
dlna
ios4
lemon
pundit
splash
unity3d-gui
mmc
iiviewdeckcontroller
composite
markers
onactivityresult
jboss-weld
hyprlinkr
ember-charts
openlaszlo
industrial
farseer
access-rights
blending
ftps
mylyn
eventlistener
itmstransporter
bitsharp
hosts-file
enter
pendrive
hgsubversion
nsdatecomponents
mod-auth
rfc1123
yui-datatable
gdlib
ncqrs
libs
eqatec
aquaticprime
.net-1.0
commodore

Resources

Encrypt Message