RealPair.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * Nextcloud Android client application
  3. *
  4. * @author Mario Danic
  5. * Copyright (C) 2017 Mario Danic
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. package com.owncloud.android.datamodel;
  21. import org.apache.commons.io.monitor.FileEntry;
  22. import java.io.Serializable;
  23. /**
  24. * Pair that we can serialize
  25. */
  26. public class RealPair implements Serializable {
  27. private static final long serialVersionUID = 3823582869520000090L;
  28. private SyncedFolder syncedFolder;
  29. private FileEntry fileEntry;
  30. public RealPair() {
  31. }
  32. public RealPair(SyncedFolder syncedFolder, FileEntry fileEntry) {
  33. this.syncedFolder = syncedFolder;
  34. this.fileEntry = fileEntry;
  35. }
  36. public static long getSerialVersionUID() {
  37. return serialVersionUID;
  38. }
  39. public SyncedFolder getSyncedFolder() {
  40. return syncedFolder;
  41. }
  42. public void setSyncedFolder(SyncedFolder syncedFolder) {
  43. this.syncedFolder = syncedFolder;
  44. }
  45. public FileEntry getFileEntry() {
  46. return fileEntry;
  47. }
  48. public void setFileEntry(FileEntry fileEntry) {
  49. this.fileEntry = fileEntry;
  50. }
  51. }