~berthold-daum/zora/trunk

« back to all changes in this revision

Viewing changes to com.bdaum.zoom.model/src/com/bdaum/zoom/cat/model/SlideShow_typeImpl.java

  • Committer: bdaum
  • Date: 2015-12-26 10:21:51 UTC
  • Revision ID: berthold.daum@bdaum.de-20151226102151-44f1j5113167thb9
VersionĀ 2.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
         * @param titleContent - Property
36
36
         * @param adhoc - Property
37
37
         * @param skipDublettes - Property
 
38
         * @param voiceNotes - Property
38
39
         * @param lastAccessDate - Property
 
40
         * @param perspective - Property
39
41
         */
40
42
        public SlideShow_typeImpl(String name, String description,
41
43
                        boolean fromPreview, int duration, int effect, int fading,
42
44
                        int titleDisplay, int titleContent, boolean adhoc,
43
 
                        boolean skipDublettes, Date lastAccessDate) {
 
45
                        boolean skipDublettes, boolean voiceNotes, Date lastAccessDate,
 
46
                        String perspective) {
44
47
                super();
45
48
                this.name = name;
46
49
                this.description = description;
52
55
                this.titleContent = titleContent;
53
56
                this.adhoc = adhoc;
54
57
                this.skipDublettes = skipDublettes;
 
58
                this.voiceNotes = voiceNotes;
55
59
                this.lastAccessDate = lastAccessDate;
 
60
                this.perspective = perspective;
56
61
 
57
62
        }
58
63
 
284
289
                return skipDublettes;
285
290
        }
286
291
 
 
292
        /* *** Property voiceNotes *** */
 
293
 
 
294
        private boolean voiceNotes;
 
295
 
 
296
        /**
 
297
         * Set value of property voiceNotes
 
298
         *
 
299
         * @param _value - new field value
 
300
         */
 
301
        public void setVoiceNotes(boolean _value) {
 
302
                voiceNotes = _value;
 
303
        }
 
304
 
 
305
        /**
 
306
         * Get value of property voiceNotes
 
307
         *
 
308
         * @return - value of field voiceNotes
 
309
         */
 
310
        public boolean getVoiceNotes() {
 
311
                return voiceNotes;
 
312
        }
 
313
 
287
314
        /* *** Property lastAccessDate *** */
288
315
 
289
316
        private Date lastAccessDate = new Date();
309
336
                return lastAccessDate;
310
337
        }
311
338
 
 
339
        /* *** Property perspective *** */
 
340
 
 
341
        private String perspective;
 
342
 
 
343
        /**
 
344
         * Set value of property perspective
 
345
         *
 
346
         * @param _value - new field value
 
347
         */
 
348
        public void setPerspective(String _value) {
 
349
                perspective = _value;
 
350
        }
 
351
 
 
352
        /**
 
353
         * Get value of property perspective
 
354
         *
 
355
         * @return - value of field perspective
 
356
         */
 
357
        public String getPerspective() {
 
358
                return perspective;
 
359
        }
 
360
 
312
361
        /* ----- Equality ----- */
313
362
 
314
363
        /**
346
395
 
347
396
                                && getSkipDublettes() == other.getSkipDublettes()
348
397
 
 
398
                                && getVoiceNotes() == other.getVoiceNotes()
 
399
 
349
400
                                && ((getLastAccessDate() == null && other.getLastAccessDate() == null) || (getLastAccessDate() != null && getLastAccessDate()
350
401
                                                .equals(other.getLastAccessDate())))
351
402
 
 
403
                                && ((getPerspective() == null && other.getPerspective() == null) || (getPerspective() != null && getPerspective()
 
404
                                                .equals(other.getPerspective())))
 
405
 
352
406
                ;
353
407
        }
354
408
 
385
439
 
386
440
                hashCode = 31 * hashCode + (getSkipDublettes() ? 1231 : 1237);
387
441
 
 
442
                hashCode = 31 * hashCode + (getVoiceNotes() ? 1231 : 1237);
 
443
 
388
444
                hashCode = 31
389
445
                                * hashCode
390
446
                                + ((getLastAccessDate() == null) ? 0 : getLastAccessDate()
391
447
                                                .hashCode());
392
448
 
 
449
                hashCode = 31
 
450
                                * hashCode
 
451
                                + ((getPerspective() == null) ? 0 : getPerspective().hashCode());
 
452
 
393
453
                return hashCode;
394
454
        }
395
455