/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The offset is initially unassigned. * * @param alignment {@code > 0;} output alignment requirement; must be a * power of 2 * @param writeSize {@code >= -1;} the size of this instance when written, * in bytes, or {@code -1} if not immediately known */ public OffsettedItem(int alignment, int writeSize) { Section.validateAlignment(alignment); if (writeSize < -1) { throw new IllegalArgumentException("writeSize < -1"); } this.alignment = alignment; this.writeSize = writeSize; this.addedTo = null; this.offset = -1; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }
/** * Constructs an instance. The file offset is initially unknown. * * @param name {@code null-ok;} the name of this instance, for annotation * purposes * @param file {@code non-null;} file that this instance is part of * @param alignment {@code > 0;} alignment requirement for the final output; * must be a power of 2 */ public Section(String name, DexFile file, int alignment) { if (file == null) { throw new NullPointerException("file == null"); } validateAlignment(alignment); this.name = name; this.file = file; this.alignment = alignment; this.fileOffset = -1; this.prepared = false; }