EtchDroid/app/src/main/java/eu/depau/etchdroid/utils/PartitionBuilder.kt

16 lines
482 B
Kotlin
Raw Normal View History

2018-08-16 22:27:03 +00:00
package eu.depau.etchdroid.utils
import eu.depau.etchdroid.enums.FilesystemType
import eu.depau.etchdroid.enums.PartitionType
class PartitionBuilder {
var number: Int? = null
var offset: Int? = null
2018-08-17 20:10:17 +00:00
var size: Long? = null
2018-08-16 22:27:03 +00:00
var partType: PartitionType? = null
var partLabel: String? = null
var fsType: FilesystemType? = null
var fsLabel: String? = null
fun build(): Partition = Partition(number, offset, size, partType, partLabel, fsType, fsLabel)
}