1 21 22 package org.armedbear.j.mail; 23 24 import org.armedbear.j.Line; 25 import org.armedbear.j.TextLine; 26 27 public final class MailboxLine extends TextLine implements Line 28 { 29 private final MailboxEntry entry; 30 private final int depth; 31 32 public MailboxLine(MailboxEntry entry) 33 { 34 super(entry.toString()); 35 this.entry = entry; 36 this.depth = 1; 37 } 38 39 public MailboxLine(MailboxEntry entry, int depth) 40 { 41 super(entry.toString(depth)); 42 this.entry = entry; 43 this.depth = depth; 44 } 45 46 public final MailboxEntry getMailboxEntry() 47 { 48 return entry; 49 } 50 51 public final int getDepth() 52 { 53 return depth; 54 } 55 } 56 | Popular Tags |