All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eg.agent.android.measurement.ThreadInfo Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package com.eg.agent.android.measurement;

public class ThreadInfo {
    private long id;
    private String name;

    public ThreadInfo() {
        this(Thread.currentThread());
    }

    public ThreadInfo(long id, String name) {
        this.id = id;
        this.name = name;
    }

    public ThreadInfo(Thread thread) {
        this(thread.getId(), thread.getName());
    }

    public static ThreadInfo fromThread(Thread thread) {
        return new ThreadInfo(thread);
    }

    public long getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "ThreadInfo{id=" + this.id + ", name='" + this.name + '\'' + '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy