Hi
I have a project which uses a 2 Maps.
Map 1 has a key (numerical id) and a value which is a URL. Map 2 has a key (the URL from map 1) and then a custom type/structure. I have some custom functions which can get and remove items from both maps at the same time.
The reason I use 2 maps is so that I can quickly look up values based on the numerical id or the URL.
Now I'm thinking I should put this in a class but wanted to check if;
1) Has someone already done something like this as a class?
2) Is there a better way to do this?
Thanks
I have a project which uses a 2 Maps.
Map 1 has a key (numerical id) and a value which is a URL. Map 2 has a key (the URL from map 1) and then a custom type/structure. I have some custom functions which can get and remove items from both maps at the same time.
The reason I use 2 maps is so that I can quickly look up values based on the numerical id or the URL.
Now I'm thinking I should put this in a class but wanted to check if;
1) Has someone already done something like this as a class?
2) Is there a better way to do this?
Thanks