/facebook-java-api/src/main/java/com/google/code/facebookapi/IPair.java

http://facebook-java-api.googlecode.com/ · Java · 39 lines · 7 code · 6 blank · 26 comment · 0 complexity · 336deb18e2ac968bedb003a73505de1e MD5 · raw file

  1. /*
  2. * Copyright 2007, BigTribe Corporation. All rights reserved.
  3. *
  4. * This software is an unpublished work subject to a confidentiality agreement
  5. * and protected by copyright and trade secret law. Unauthorized copying,
  6. * redistribution or other use of this work is prohibited. All copies must
  7. * retain this copyright notice. Any use or exploitation of this work without
  8. * authorization could subject the perpetrator to criminal and civil liability.
  9. *
  10. * The information in this software is subject to change without notice
  11. * and should not be construed as a commitment by BigTribe Corporation.
  12. *
  13. * The above copyright notice does not indicate actual or intended publication
  14. * of this source code.
  15. *
  16. * $Id: bigtribetemplates.xml 5524 2006-04-06 09:40:52 -0700 (Thu, 06 Apr 2006) greening $
  17. */
  18. package com.google.code.facebookapi;
  19. /**
  20. * This interface provides backwards compatibility between Pair<URL, URL> and IFeedImage instances used in feed.* API calls, so that code that was written using the
  21. * former method is not forced to be rewritten in order to conform to the latter.
  22. *
  23. * @param <N>
  24. * The type of the first object in the pair.
  25. * @param <V>
  26. * The type of the second object in the pair.
  27. */
  28. public interface IPair<N,V> {
  29. public void setFirst( N first );
  30. public N getFirst();
  31. public void setSecond( V second );
  32. public V getSecond();
  33. }