Quick question

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Minutis
Posts: 56
Joined: Thu Feb 22, 2007 2:01 pm

Quick question

Post by Minutis »

Class names in example are only for showing purpose, you can give any other classes in answers.
BiMap is interface and ImmutableBiMap is Class implementing that interface.


What is the difference between these two declarations:
[*]BiMap<type, type> name = new ImmutableBiMap<type,type>();
[*]ImmutableBiMap<type,type> name = new ImmutableBiMap<type,type>();

In what cases which declaration should be used?
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Quick question

Post by JIV »

use interface unless you need something implementation specific.
Post Reply